mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Convert SandboxingFlagSet into a enum class
Instead of having a nested enum within a struct, use the macro AK_ENUM_BITWISE_OPERATORS to add all the convienent has_flag free functions and such for ease of use.
This commit is contained in:
committed by
Alexander Kalenik
parent
967cb86c5b
commit
d97b09693e
@@ -74,7 +74,7 @@ WebIDL::ExceptionOr<void> HTMLFormElement::submit_form(JS::NonnullGCPtr<HTMLElem
|
||||
auto* form_browsing_context = form_document->browsing_context();
|
||||
|
||||
// 4. If form document's active sandboxing flag set has its sandboxed forms browsing context flag set, then return.
|
||||
if (form_document->active_sandboxing_flag_set().flags & HTML::SandboxingFlagSet::Flag::SandboxedForms)
|
||||
if (has_flag(form_document->active_sandboxing_flag_set(), HTML::SandboxingFlagSet::SandboxedForms))
|
||||
return {};
|
||||
|
||||
// 5. If the submitted from submit() method flag is not set, then:
|
||||
|
||||
Reference in New Issue
Block a user