mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibIDL: Make ExposedTo an enum class
This commit is contained in:
committed by
Jelle Raaijmakers
parent
c369f68eff
commit
80a6dc4da0
Notes:
github-actions[bot]
2025-08-15 07:22:48 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/80a6dc4da06 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5853 Reviewed-by: https://github.com/gmta ✅
@@ -521,16 +521,16 @@ ErrorOr<void> add_to_interface_sets(IDL::Interface& interface, InterfaceSets& in
|
||||
|
||||
interface_sets.intrinsics.append(interface);
|
||||
|
||||
if (whom & IDL::ExposedTo::Window)
|
||||
if (has_flag(whom, IDL::ExposedTo::Window))
|
||||
interface_sets.window_exposed.append(interface);
|
||||
|
||||
if (whom & IDL::ExposedTo::DedicatedWorker)
|
||||
if (has_flag(whom, IDL::ExposedTo::DedicatedWorker))
|
||||
interface_sets.dedicated_worker_exposed.append(interface);
|
||||
|
||||
if (whom & IDL::ExposedTo::SharedWorker)
|
||||
if (has_flag(whom, IDL::ExposedTo::SharedWorker))
|
||||
interface_sets.shared_worker_exposed.append(interface);
|
||||
|
||||
if (whom & IDL::ExposedTo::ShadowRealm)
|
||||
if (has_flag(whom, IDL::ExposedTo::ShadowRealm))
|
||||
interface_sets.shadow_realm_exposed.append(interface);
|
||||
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user