mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
LibIDL: Add LayoutWorklet and PaintWorklet parsing
We don't support these yet, but this avoids having to comment out IDL definitions that are exposed to them.
This commit is contained in:
parent
24c5dc2f7f
commit
6be9f0757f
Notes:
github-actions[bot]
2025-08-15 07:22:34 +00:00
Author: https://github.com/AtkinsSJ
Commit: 6be9f0757f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5853
Reviewed-by: https://github.com/gmta ✅
2 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,10 @@ ErrorOr<ExposedTo> parse_exposure_set(StringView interface_name, StringView expo
|
|||
return ExposedTo::ServiceWorker;
|
||||
if (string == "AudioWorklet"sv)
|
||||
return ExposedTo::AudioWorklet;
|
||||
if (string == "LayoutWorklet"sv)
|
||||
return ExposedTo::LayoutWorklet;
|
||||
if (string == "PaintWorklet"sv)
|
||||
return ExposedTo::PaintWorklet;
|
||||
if (string == "Worklet"sv)
|
||||
return ExposedTo::Worklet;
|
||||
if (string == "ShadowRealm"sv)
|
||||
|
|
|
@ -19,6 +19,9 @@ enum class ExposedTo {
|
|||
Window = 0x10,
|
||||
ShadowRealm = 0x20,
|
||||
Worklet = 0x40,
|
||||
PaintWorklet = 0x80,
|
||||
LayoutWorklet = 0x100,
|
||||
// FIXME: Categorize PaintWorklet and LayoutWorklet once we have them and know what they are.
|
||||
AllWorkers = DedicatedWorker | SharedWorker | ServiceWorker | AudioWorklet, // FIXME: Is "AudioWorklet" a Worker? We'll assume it is for now (here, and line below)
|
||||
All = AllWorkers | Window | ShadowRealm | Worklet,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue