diff --git a/Libraries/LibWeb/Animations/Animation.cpp b/Libraries/LibWeb/Animations/Animation.cpp index e85db81d071..2005d9d9e4f 100644 --- a/Libraries/LibWeb/Animations/Animation.cpp +++ b/Libraries/LibWeb/Animations/Animation.cpp @@ -1343,8 +1343,8 @@ Animation::Animation(JS::Realm& realm) void Animation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Animation); + Base::initialize(realm); } void Animation::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Animations/AnimationEffect.cpp b/Libraries/LibWeb/Animations/AnimationEffect.cpp index 772e7480cb4..4912446489e 100644 --- a/Libraries/LibWeb/Animations/AnimationEffect.cpp +++ b/Libraries/LibWeb/Animations/AnimationEffect.cpp @@ -616,8 +616,8 @@ AnimationEffect::AnimationEffect(JS::Realm& realm) void AnimationEffect::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AnimationEffect); + Base::initialize(realm); } void AnimationEffect::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp b/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp index ca762783f20..9618d61e2c2 100644 --- a/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp +++ b/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp @@ -32,8 +32,8 @@ AnimationPlaybackEvent::AnimationPlaybackEvent(JS::Realm& realm, FlyString const void AnimationPlaybackEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AnimationPlaybackEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Animations/AnimationTimeline.cpp b/Libraries/LibWeb/Animations/AnimationTimeline.cpp index f906a5810b8..8fe0dbed0b1 100644 --- a/Libraries/LibWeb/Animations/AnimationTimeline.cpp +++ b/Libraries/LibWeb/Animations/AnimationTimeline.cpp @@ -61,8 +61,8 @@ void AnimationTimeline::finalize() void AnimationTimeline::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AnimationTimeline); + Base::initialize(realm); } void AnimationTimeline::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Animations/DocumentTimeline.cpp b/Libraries/LibWeb/Animations/DocumentTimeline.cpp index 9f2a74ff5c4..5bcd0831e99 100644 --- a/Libraries/LibWeb/Animations/DocumentTimeline.cpp +++ b/Libraries/LibWeb/Animations/DocumentTimeline.cpp @@ -84,8 +84,8 @@ DocumentTimeline::DocumentTimeline(JS::Realm& realm, DOM::Document& document, Hi void DocumentTimeline::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DocumentTimeline); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Animations/KeyframeEffect.cpp b/Libraries/LibWeb/Animations/KeyframeEffect.cpp index 023ef1ddb99..4eccfde0381 100644 --- a/Libraries/LibWeb/Animations/KeyframeEffect.cpp +++ b/Libraries/LibWeb/Animations/KeyframeEffect.cpp @@ -885,8 +885,8 @@ KeyframeEffect::KeyframeEffect(JS::Realm& realm) void KeyframeEffect::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(KeyframeEffect); + Base::initialize(realm); } void KeyframeEffect::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Bindings/Intrinsics.h b/Libraries/LibWeb/Bindings/Intrinsics.h index d2140b5618e..e4ab1850d52 100644 --- a/Libraries/LibWeb/Bindings/Intrinsics.h +++ b/Libraries/LibWeb/Bindings/Intrinsics.h @@ -14,10 +14,12 @@ #include #include -#define WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(interface_class, interface_name) \ - do { \ - static auto name = #interface_name##_fly_string; \ - set_prototype(&Bindings::ensure_web_prototype(realm, name)); \ +#define WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(interface_class, interface_name) \ + do { \ + static auto name = #interface_name##_fly_string; \ + if (!shape().prototype()) { \ + set_prototype(&Bindings::ensure_web_prototype(realm, name)); \ + } \ } while (0) #define WEB_SET_PROTOTYPE_FOR_INTERFACE(interface_name) WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(interface_name, interface_name) diff --git a/Libraries/LibWeb/CSS/AnimationEvent.cpp b/Libraries/LibWeb/CSS/AnimationEvent.cpp index b5afefb4e84..4cbc5c501d9 100644 --- a/Libraries/LibWeb/CSS/AnimationEvent.cpp +++ b/Libraries/LibWeb/CSS/AnimationEvent.cpp @@ -32,8 +32,8 @@ AnimationEvent::AnimationEvent(JS::Realm& realm, FlyString const& type, Animatio void AnimationEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AnimationEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CSS/CSSAnimation.cpp b/Libraries/LibWeb/CSS/CSSAnimation.cpp index 19a66c2e86d..9565e166f79 100644 --- a/Libraries/LibWeb/CSS/CSSAnimation.cpp +++ b/Libraries/LibWeb/CSS/CSSAnimation.cpp @@ -75,8 +75,8 @@ CSSAnimation::CSSAnimation(JS::Realm& realm) void CSSAnimation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSAnimation); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CSS/CSSConditionRule.cpp b/Libraries/LibWeb/CSS/CSSConditionRule.cpp index 319c55fb641..db1a2d3c1d9 100644 --- a/Libraries/LibWeb/CSS/CSSConditionRule.cpp +++ b/Libraries/LibWeb/CSS/CSSConditionRule.cpp @@ -24,8 +24,8 @@ void CSSConditionRule::for_each_effective_rule(TraversalOrder order, Function d void CSSImportRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSImportRule); + Base::initialize(realm); } void CSSImportRule::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp b/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp index f057bf38405..9bed9465657 100644 --- a/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp +++ b/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp @@ -34,8 +34,8 @@ void CSSKeyframeRule::visit_edges(Visitor& visitor) void CSSKeyframeRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSKeyframeRule); + Base::initialize(realm); } String CSSKeyframeRule::serialized() const diff --git a/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp b/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp index 06a2c9c6e4f..83bbf1814aa 100644 --- a/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp +++ b/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp @@ -36,8 +36,8 @@ void CSSKeyframesRule::visit_edges(Visitor& visitor) void CSSKeyframesRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSKeyframesRule); + Base::initialize(realm); } String CSSKeyframesRule::serialized() const diff --git a/Libraries/LibWeb/CSS/CSSLayerBlockRule.cpp b/Libraries/LibWeb/CSS/CSSLayerBlockRule.cpp index cb7b750a8a8..4d7625c0cbc 100644 --- a/Libraries/LibWeb/CSS/CSSLayerBlockRule.cpp +++ b/Libraries/LibWeb/CSS/CSSLayerBlockRule.cpp @@ -37,8 +37,8 @@ CSSLayerBlockRule::CSSLayerBlockRule(JS::Realm& realm, FlyString name, CSSRuleLi void CSSLayerBlockRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSLayerBlockRule); + Base::initialize(realm); } String CSSLayerBlockRule::serialized() const diff --git a/Libraries/LibWeb/CSS/CSSLayerStatementRule.cpp b/Libraries/LibWeb/CSS/CSSLayerStatementRule.cpp index 76a1a146c15..ac1a923754d 100644 --- a/Libraries/LibWeb/CSS/CSSLayerStatementRule.cpp +++ b/Libraries/LibWeb/CSS/CSSLayerStatementRule.cpp @@ -26,8 +26,8 @@ CSSLayerStatementRule::CSSLayerStatementRule(JS::Realm& realm, Vector void CSSLayerStatementRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSLayerStatementRule); + Base::initialize(realm); } String CSSLayerStatementRule::serialized() const diff --git a/Libraries/LibWeb/CSS/CSSMediaRule.cpp b/Libraries/LibWeb/CSS/CSSMediaRule.cpp index 3458cde09ea..58949218f24 100644 --- a/Libraries/LibWeb/CSS/CSSMediaRule.cpp +++ b/Libraries/LibWeb/CSS/CSSMediaRule.cpp @@ -27,8 +27,8 @@ CSSMediaRule::CSSMediaRule(JS::Realm& realm, MediaList& media, CSSRuleList& rule void CSSMediaRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSMediaRule); + Base::initialize(realm); } void CSSMediaRule::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp b/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp index 684d6421086..191a232d353 100644 --- a/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp +++ b/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp @@ -30,8 +30,8 @@ GC::Ref CSSNamespaceRule::create(JS::Realm& realm, Optional CSSPropertyRule::initial_value() const void CSSPropertyRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSPropertyRule); + Base::initialize(realm); } // https://www.w3.org/TR/cssom-1/#serialize-a-css-rule diff --git a/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Libraries/LibWeb/CSS/CSSRuleList.cpp index 3685755da37..7bacce4673c 100644 --- a/Libraries/LibWeb/CSS/CSSRuleList.cpp +++ b/Libraries/LibWeb/CSS/CSSRuleList.cpp @@ -42,8 +42,8 @@ GC::Ref CSSRuleList::create_empty(JS::Realm& realm) void CSSRuleList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSRuleList); + Base::initialize(realm); } void CSSRuleList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp b/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp index c562ae3f90e..aecb60a3d30 100644 --- a/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp +++ b/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp @@ -29,8 +29,8 @@ CSSStyleDeclaration::CSSStyleDeclaration(JS::Realm& realm, Computed computed, Re void CSSStyleDeclaration::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSStyleDeclaration); + Base::initialize(realm); } // https://drafts.csswg.org/cssom/#update-style-attribute-for diff --git a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp index 05e40ffe860..6850a3f7e4f 100644 --- a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp +++ b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp @@ -77,8 +77,8 @@ CSSStyleProperties::CSSStyleProperties(JS::Realm& realm, Computed computed, Read void CSSStyleProperties::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSStyleProperties); + Base::initialize(realm); } void CSSStyleProperties::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Libraries/LibWeb/CSS/CSSStyleRule.cpp index be1b266ceff..d42f6a942bb 100644 --- a/Libraries/LibWeb/CSS/CSSStyleRule.cpp +++ b/Libraries/LibWeb/CSS/CSSStyleRule.cpp @@ -32,8 +32,8 @@ CSSStyleRule::CSSStyleRule(JS::Realm& realm, SelectorList&& selectors, CSSStyleP void CSSStyleRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSStyleRule); + Base::initialize(realm); } void CSSStyleRule::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Libraries/LibWeb/CSS/CSSStyleSheet.cpp index 34d6194ca59..6e2b61d9e66 100644 --- a/Libraries/LibWeb/CSS/CSSStyleSheet.cpp +++ b/Libraries/LibWeb/CSS/CSSStyleSheet.cpp @@ -114,8 +114,8 @@ CSSStyleSheet::CSSStyleSheet(JS::Realm& realm, CSSRuleList& rules, MediaList& me void CSSStyleSheet::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSStyleSheet); + Base::initialize(realm); } void CSSStyleSheet::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/CSSSupportsRule.cpp b/Libraries/LibWeb/CSS/CSSSupportsRule.cpp index 765bcd8ed06..6dc57fbfdcf 100644 --- a/Libraries/LibWeb/CSS/CSSSupportsRule.cpp +++ b/Libraries/LibWeb/CSS/CSSSupportsRule.cpp @@ -26,8 +26,8 @@ CSSSupportsRule::CSSSupportsRule(JS::Realm& realm, NonnullRefPtr&& sup void CSSSupportsRule::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSSupportsRule); + Base::initialize(realm); } String CSSSupportsRule::condition_text() const diff --git a/Libraries/LibWeb/CSS/CSSTransition.cpp b/Libraries/LibWeb/CSS/CSSTransition.cpp index 3e36c09cdf4..94b38bc56a3 100644 --- a/Libraries/LibWeb/CSS/CSSTransition.cpp +++ b/Libraries/LibWeb/CSS/CSSTransition.cpp @@ -126,8 +126,8 @@ CSSTransition::CSSTransition(JS::Realm& realm, DOM::Element& element, PropertyID void CSSTransition::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSTransition); + Base::initialize(realm); } void CSSTransition::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/FontFace.cpp b/Libraries/LibWeb/CSS/FontFace.cpp index 4cf9f189e5d..15ad26de8c7 100644 --- a/Libraries/LibWeb/CSS/FontFace.cpp +++ b/Libraries/LibWeb/CSS/FontFace.cpp @@ -186,9 +186,8 @@ FontFace::~FontFace() = default; void FontFace::initialize(JS::Realm& realm) { - Base::initialize(realm); - WEB_SET_PROTOTYPE_FOR_INTERFACE(FontFace); + Base::initialize(realm); } void FontFace::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/FontFaceSet.cpp b/Libraries/LibWeb/CSS/FontFaceSet.cpp index b2d9bd81c54..de8ae8337f2 100644 --- a/Libraries/LibWeb/CSS/FontFaceSet.cpp +++ b/Libraries/LibWeb/CSS/FontFaceSet.cpp @@ -56,9 +56,8 @@ FontFaceSet::FontFaceSet(JS::Realm& realm, GC::Ref ready_promis void FontFaceSet::initialize(JS::Realm& realm) { - Base::initialize(realm); - WEB_SET_PROTOTYPE_FOR_INTERFACE(FontFaceSet); + Base::initialize(realm); } void FontFaceSet::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/MediaList.cpp b/Libraries/LibWeb/CSS/MediaList.cpp index 2bce5d162f7..2369183c786 100644 --- a/Libraries/LibWeb/CSS/MediaList.cpp +++ b/Libraries/LibWeb/CSS/MediaList.cpp @@ -30,8 +30,8 @@ MediaList::MediaList(JS::Realm& realm, Vector>&& media void MediaList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaList); + Base::initialize(realm); } void MediaList::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/MediaQueryList.cpp b/Libraries/LibWeb/CSS/MediaQueryList.cpp index de3acc23795..32ad3db71c3 100644 --- a/Libraries/LibWeb/CSS/MediaQueryList.cpp +++ b/Libraries/LibWeb/CSS/MediaQueryList.cpp @@ -32,8 +32,8 @@ MediaQueryList::MediaQueryList(DOM::Document& document, Vector ScreenOrientation::create(JS::Realm& realm) diff --git a/Libraries/LibWeb/CSS/StyleSheetList.cpp b/Libraries/LibWeb/CSS/StyleSheetList.cpp index 6cc06989cd9..69c47a9de29 100644 --- a/Libraries/LibWeb/CSS/StyleSheetList.cpp +++ b/Libraries/LibWeb/CSS/StyleSheetList.cpp @@ -155,8 +155,8 @@ StyleSheetList::StyleSheetList(GC::Ref document_or_shadow_root) void StyleSheetList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(StyleSheetList); + Base::initialize(realm); } void StyleSheetList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/CSS/TransitionEvent.cpp b/Libraries/LibWeb/CSS/TransitionEvent.cpp index 6eaaad214a8..bc8982b1bf4 100644 --- a/Libraries/LibWeb/CSS/TransitionEvent.cpp +++ b/Libraries/LibWeb/CSS/TransitionEvent.cpp @@ -36,8 +36,8 @@ TransitionEvent::~TransitionEvent() = default; void TransitionEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TransitionEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CSS/VisualViewport.cpp b/Libraries/LibWeb/CSS/VisualViewport.cpp index 90217d881a2..b6a67b1a77b 100644 --- a/Libraries/LibWeb/CSS/VisualViewport.cpp +++ b/Libraries/LibWeb/CSS/VisualViewport.cpp @@ -30,8 +30,8 @@ VisualViewport::VisualViewport(DOM::Document& document) void VisualViewport::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(VisualViewport); + Base::initialize(realm); } void VisualViewport::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Clipboard/Clipboard.cpp b/Libraries/LibWeb/Clipboard/Clipboard.cpp index 917e66cacab..76f4b58907d 100644 --- a/Libraries/LibWeb/Clipboard/Clipboard.cpp +++ b/Libraries/LibWeb/Clipboard/Clipboard.cpp @@ -35,8 +35,8 @@ Clipboard::~Clipboard() = default; void Clipboard::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Clipboard); + Base::initialize(realm); } // https://w3c.github.io/clipboard-apis/#os-specific-well-known-format diff --git a/Libraries/LibWeb/Clipboard/ClipboardEvent.cpp b/Libraries/LibWeb/Clipboard/ClipboardEvent.cpp index 98e4ca3665b..eba0adc030c 100644 --- a/Libraries/LibWeb/Clipboard/ClipboardEvent.cpp +++ b/Libraries/LibWeb/Clipboard/ClipboardEvent.cpp @@ -28,8 +28,8 @@ ClipboardEvent::~ClipboardEvent() = default; void ClipboardEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ClipboardEvent); + Base::initialize(realm); } void ClipboardEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Clipboard/ClipboardItem.cpp b/Libraries/LibWeb/Clipboard/ClipboardItem.cpp index b060238c7f6..39261f4cc63 100644 --- a/Libraries/LibWeb/Clipboard/ClipboardItem.cpp +++ b/Libraries/LibWeb/Clipboard/ClipboardItem.cpp @@ -193,8 +193,8 @@ ClipboardItem::~ClipboardItem() = default; void ClipboardItem::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ClipboardItem); + Base::initialize(realm); } void ClipboardItem::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Compression/CompressionStream.cpp b/Libraries/LibWeb/Compression/CompressionStream.cpp index 3bd7fd06875..b2821a3b1d7 100644 --- a/Libraries/LibWeb/Compression/CompressionStream.cpp +++ b/Libraries/LibWeb/Compression/CompressionStream.cpp @@ -94,8 +94,8 @@ CompressionStream::~CompressionStream() = default; void CompressionStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CompressionStream); + Base::initialize(realm); } void CompressionStream::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Compression/DecompressionStream.cpp b/Libraries/LibWeb/Compression/DecompressionStream.cpp index ad9dcf4fff9..60540e4ebda 100644 --- a/Libraries/LibWeb/Compression/DecompressionStream.cpp +++ b/Libraries/LibWeb/Compression/DecompressionStream.cpp @@ -94,8 +94,8 @@ DecompressionStream::~DecompressionStream() = default; void DecompressionStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DecompressionStream); + Base::initialize(realm); } void DecompressionStream::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/ContentSecurityPolicy/SecurityPolicyViolationEvent.cpp b/Libraries/LibWeb/ContentSecurityPolicy/SecurityPolicyViolationEvent.cpp index 805b71c17bc..9836548f6b9 100644 --- a/Libraries/LibWeb/ContentSecurityPolicy/SecurityPolicyViolationEvent.cpp +++ b/Libraries/LibWeb/ContentSecurityPolicy/SecurityPolicyViolationEvent.cpp @@ -43,8 +43,8 @@ SecurityPolicyViolationEvent::~SecurityPolicyViolationEvent() = default; void SecurityPolicyViolationEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SecurityPolicyViolationEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CredentialManagement/Credential.cpp b/Libraries/LibWeb/CredentialManagement/Credential.cpp index 24b5802bbe1..820c2fab8e8 100644 --- a/Libraries/LibWeb/CredentialManagement/Credential.cpp +++ b/Libraries/LibWeb/CredentialManagement/Credential.cpp @@ -32,7 +32,7 @@ Credential::Credential(JS::Realm& realm) void Credential::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Credential); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CredentialManagement/CredentialsContainer.cpp b/Libraries/LibWeb/CredentialManagement/CredentialsContainer.cpp index bea22e9248a..abb370599e2 100644 --- a/Libraries/LibWeb/CredentialManagement/CredentialsContainer.cpp +++ b/Libraries/LibWeb/CredentialManagement/CredentialsContainer.cpp @@ -52,8 +52,8 @@ CredentialsContainer::CredentialsContainer(JS::Realm& realm) void CredentialsContainer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CredentialsContainer); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CredentialManagement/FederatedCredential.cpp b/Libraries/LibWeb/CredentialManagement/FederatedCredential.cpp index a7e0adee95f..94fd33e4aa5 100644 --- a/Libraries/LibWeb/CredentialManagement/FederatedCredential.cpp +++ b/Libraries/LibWeb/CredentialManagement/FederatedCredential.cpp @@ -33,8 +33,8 @@ FederatedCredential::FederatedCredential(JS::Realm& realm) void FederatedCredential::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FederatedCredential); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp b/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp index b7d207ab6e6..53edbf30502 100644 --- a/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp +++ b/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp @@ -38,8 +38,8 @@ PasswordCredential::PasswordCredential(JS::Realm& realm) void PasswordCredential::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PasswordCredential); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Crypto/Crypto.cpp b/Libraries/LibWeb/Crypto/Crypto.cpp index ee73298152e..beb26ba4d33 100644 --- a/Libraries/LibWeb/Crypto/Crypto.cpp +++ b/Libraries/LibWeb/Crypto/Crypto.cpp @@ -34,8 +34,8 @@ Crypto::~Crypto() = default; void Crypto::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Crypto); + Base::initialize(realm); m_subtle = SubtleCrypto::create(realm); } diff --git a/Libraries/LibWeb/Crypto/CryptoKey.cpp b/Libraries/LibWeb/Crypto/CryptoKey.cpp index 8c55b975173..eefd7402c51 100644 --- a/Libraries/LibWeb/Crypto/CryptoKey.cpp +++ b/Libraries/LibWeb/Crypto/CryptoKey.cpp @@ -52,8 +52,8 @@ CryptoKey::~CryptoKey() void CryptoKey::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CryptoKey); + Base::initialize(realm); } void CryptoKey::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/Crypto/SubtleCrypto.cpp b/Libraries/LibWeb/Crypto/SubtleCrypto.cpp index 4fb748f40ff..59cdb938a5a 100644 --- a/Libraries/LibWeb/Crypto/SubtleCrypto.cpp +++ b/Libraries/LibWeb/Crypto/SubtleCrypto.cpp @@ -58,8 +58,8 @@ SubtleCrypto::~SubtleCrypto() = default; void SubtleCrypto::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SubtleCrypto); + Base::initialize(realm); } // https://w3c.github.io/webcrypto/#dfn-normalize-an-algorithm diff --git a/Libraries/LibWeb/DOM/AbortController.cpp b/Libraries/LibWeb/DOM/AbortController.cpp index c777002b520..c2446b35280 100644 --- a/Libraries/LibWeb/DOM/AbortController.cpp +++ b/Libraries/LibWeb/DOM/AbortController.cpp @@ -30,8 +30,8 @@ AbortController::~AbortController() = default; void AbortController::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AbortController); + Base::initialize(realm); } void AbortController::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/AbortSignal.cpp b/Libraries/LibWeb/DOM/AbortSignal.cpp index 60c24678d20..fa489c51058 100644 --- a/Libraries/LibWeb/DOM/AbortSignal.cpp +++ b/Libraries/LibWeb/DOM/AbortSignal.cpp @@ -30,8 +30,8 @@ AbortSignal::AbortSignal(JS::Realm& realm) void AbortSignal::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AbortSignal); + Base::initialize(realm); } // https://dom.spec.whatwg.org/#abortsignal-add diff --git a/Libraries/LibWeb/DOM/AbstractRange.cpp b/Libraries/LibWeb/DOM/AbstractRange.cpp index 5336432c493..60fef611e69 100644 --- a/Libraries/LibWeb/DOM/AbstractRange.cpp +++ b/Libraries/LibWeb/DOM/AbstractRange.cpp @@ -24,8 +24,8 @@ AbstractRange::~AbstractRange() = default; void AbstractRange::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AbstractRange); + Base::initialize(realm); } void AbstractRange::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/Attr.cpp b/Libraries/LibWeb/DOM/Attr.cpp index f045261cc1c..985bd2c8f7f 100644 --- a/Libraries/LibWeb/DOM/Attr.cpp +++ b/Libraries/LibWeb/DOM/Attr.cpp @@ -44,8 +44,8 @@ Attr::Attr(Document& document, QualifiedName qualified_name, String value, Eleme void Attr::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Attr); + Base::initialize(realm); } void Attr::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/CDATASection.cpp b/Libraries/LibWeb/DOM/CDATASection.cpp index 69e2f636fb7..baae6304d82 100644 --- a/Libraries/LibWeb/DOM/CDATASection.cpp +++ b/Libraries/LibWeb/DOM/CDATASection.cpp @@ -21,8 +21,8 @@ CDATASection::~CDATASection() = default; void CDATASection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CDATASection); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOM/CharacterData.cpp b/Libraries/LibWeb/DOM/CharacterData.cpp index 663d3b1b428..d57dfacde0f 100644 --- a/Libraries/LibWeb/DOM/CharacterData.cpp +++ b/Libraries/LibWeb/DOM/CharacterData.cpp @@ -27,8 +27,8 @@ CharacterData::~CharacterData() = default; void CharacterData::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CharacterData); + Base::initialize(realm); } // https://dom.spec.whatwg.org/#dom-characterdata-data diff --git a/Libraries/LibWeb/DOM/Comment.cpp b/Libraries/LibWeb/DOM/Comment.cpp index 04919cad9c8..79c2a13e0e2 100644 --- a/Libraries/LibWeb/DOM/Comment.cpp +++ b/Libraries/LibWeb/DOM/Comment.cpp @@ -27,8 +27,8 @@ WebIDL::ExceptionOr> Comment::construct_impl(JS::Realm& realm, void Comment::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Comment); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOM/CustomEvent.cpp b/Libraries/LibWeb/DOM/CustomEvent.cpp index eeac13ea947..3038defe091 100644 --- a/Libraries/LibWeb/DOM/CustomEvent.cpp +++ b/Libraries/LibWeb/DOM/CustomEvent.cpp @@ -34,8 +34,8 @@ CustomEvent::~CustomEvent() = default; void CustomEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CustomEvent); + Base::initialize(realm); } void CustomEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/DOMImplementation.cpp b/Libraries/LibWeb/DOM/DOMImplementation.cpp index 1ff325a5654..dc31d69e713 100644 --- a/Libraries/LibWeb/DOM/DOMImplementation.cpp +++ b/Libraries/LibWeb/DOM/DOMImplementation.cpp @@ -37,8 +37,8 @@ DOMImplementation::~DOMImplementation() = default; void DOMImplementation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMImplementation); + Base::initialize(realm); } void DOMImplementation::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/DOMTokenList.cpp b/Libraries/LibWeb/DOM/DOMTokenList.cpp index f53cd956338..7d995f80385 100644 --- a/Libraries/LibWeb/DOM/DOMTokenList.cpp +++ b/Libraries/LibWeb/DOM/DOMTokenList.cpp @@ -75,8 +75,8 @@ DOMTokenList::DOMTokenList(Element& associated_element, FlyString associated_att void DOMTokenList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMTokenList); + Base::initialize(realm); } void DOMTokenList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index d7f6b32059f..57730fed879 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -481,8 +481,8 @@ Document::~Document() void Document::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Document); + Base::initialize(realm); Bindings::DocumentPrototype::define_unforgeable_attributes(realm, *this); m_selection = realm.create(realm, *this); diff --git a/Libraries/LibWeb/DOM/DocumentFragment.cpp b/Libraries/LibWeb/DOM/DocumentFragment.cpp index d10701ca2c6..b867e0670fd 100644 --- a/Libraries/LibWeb/DOM/DocumentFragment.cpp +++ b/Libraries/LibWeb/DOM/DocumentFragment.cpp @@ -19,8 +19,8 @@ DocumentFragment::DocumentFragment(Document& document) void DocumentFragment::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DocumentFragment); + Base::initialize(realm); } void DocumentFragment::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/DocumentType.cpp b/Libraries/LibWeb/DOM/DocumentType.cpp index 8825d736a9a..8ae25b002ce 100644 --- a/Libraries/LibWeb/DOM/DocumentType.cpp +++ b/Libraries/LibWeb/DOM/DocumentType.cpp @@ -24,8 +24,8 @@ DocumentType::DocumentType(Document& document) void DocumentType::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DocumentType); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 292e91b2cf6..53f690b14cc 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -96,8 +96,8 @@ Element::~Element() = default; void Element::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Element); + Base::initialize(realm); } void Element::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/Event.cpp b/Libraries/LibWeb/DOM/Event.cpp index 685774ea0d9..2d6e8fcc810 100644 --- a/Libraries/LibWeb/DOM/Event.cpp +++ b/Libraries/LibWeb/DOM/Event.cpp @@ -55,8 +55,8 @@ Event::Event(JS::Realm& realm, FlyString const& type, EventInit const& event_ini void Event::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Event); + Base::initialize(realm); Bindings::EventPrototype::define_unforgeable_attributes(realm, *this); } diff --git a/Libraries/LibWeb/DOM/EventTarget.cpp b/Libraries/LibWeb/DOM/EventTarget.cpp index 4650d861c34..223f25d00cd 100644 --- a/Libraries/LibWeb/DOM/EventTarget.cpp +++ b/Libraries/LibWeb/DOM/EventTarget.cpp @@ -63,12 +63,12 @@ WebIDL::ExceptionOr> EventTarget::construct_impl(JS::Realm& void EventTarget::initialize(JS::Realm& realm) { - Base::initialize(realm); - // FIXME: We can't do this for HTML::Window or HTML::WorkerGlobalScope, as this will run when creating the initial global object. // During this time, the ESO is not setup, so it will cause a nullptr dereference in host_defined_intrinsics. if (!is_window_or_worker_global_scope_mixin()) WEB_SET_PROTOTYPE_FOR_INTERFACE(EventTarget); + + Base::initialize(realm); } void EventTarget::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/HTMLCollection.cpp b/Libraries/LibWeb/DOM/HTMLCollection.cpp index b896eab4e86..fc3ede9f09e 100644 --- a/Libraries/LibWeb/DOM/HTMLCollection.cpp +++ b/Libraries/LibWeb/DOM/HTMLCollection.cpp @@ -39,8 +39,8 @@ HTMLCollection::~HTMLCollection() = default; void HTMLCollection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLCollection); + Base::initialize(realm); } void HTMLCollection::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/MutationObserver.cpp b/Libraries/LibWeb/DOM/MutationObserver.cpp index 075360e9d65..3c19f552309 100644 --- a/Libraries/LibWeb/DOM/MutationObserver.cpp +++ b/Libraries/LibWeb/DOM/MutationObserver.cpp @@ -44,8 +44,8 @@ void MutationObserver::finalize() void MutationObserver::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MutationObserver); + Base::initialize(realm); } void MutationObserver::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/MutationRecord.cpp b/Libraries/LibWeb/DOM/MutationRecord.cpp index f18091020d7..1417ce590bf 100644 --- a/Libraries/LibWeb/DOM/MutationRecord.cpp +++ b/Libraries/LibWeb/DOM/MutationRecord.cpp @@ -38,8 +38,8 @@ MutationRecord::~MutationRecord() = default; void MutationRecord::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MutationRecord); + Base::initialize(realm); } void MutationRecord::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/NamedNodeMap.cpp b/Libraries/LibWeb/DOM/NamedNodeMap.cpp index ce66fc971eb..6dba3b0419d 100644 --- a/Libraries/LibWeb/DOM/NamedNodeMap.cpp +++ b/Libraries/LibWeb/DOM/NamedNodeMap.cpp @@ -36,8 +36,8 @@ NamedNodeMap::NamedNodeMap(Element& element) void NamedNodeMap::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NamedNodeMap); + Base::initialize(realm); } void NamedNodeMap::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/NodeIterator.cpp b/Libraries/LibWeb/DOM/NodeIterator.cpp index d15386878ea..bdfb9d8ddfa 100644 --- a/Libraries/LibWeb/DOM/NodeIterator.cpp +++ b/Libraries/LibWeb/DOM/NodeIterator.cpp @@ -27,8 +27,8 @@ NodeIterator::~NodeIterator() = default; void NodeIterator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NodeIterator); + Base::initialize(realm); } void NodeIterator::finalize() diff --git a/Libraries/LibWeb/DOM/NodeList.cpp b/Libraries/LibWeb/DOM/NodeList.cpp index e07e843628e..5b969f2cfa0 100644 --- a/Libraries/LibWeb/DOM/NodeList.cpp +++ b/Libraries/LibWeb/DOM/NodeList.cpp @@ -21,8 +21,8 @@ NodeList::~NodeList() = default; void NodeList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NodeList); + Base::initialize(realm); } Optional NodeList::item_value(size_t index) const diff --git a/Libraries/LibWeb/DOM/ProcessingInstruction.cpp b/Libraries/LibWeb/DOM/ProcessingInstruction.cpp index 7dd87e0b727..feeb6e7dd11 100644 --- a/Libraries/LibWeb/DOM/ProcessingInstruction.cpp +++ b/Libraries/LibWeb/DOM/ProcessingInstruction.cpp @@ -22,8 +22,8 @@ ProcessingInstruction::ProcessingInstruction(Document& document, String const& d void ProcessingInstruction::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ProcessingInstruction); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOM/Range.cpp b/Libraries/LibWeb/DOM/Range.cpp index 9cc417a057c..6b96daa49f2 100644 --- a/Libraries/LibWeb/DOM/Range.cpp +++ b/Libraries/LibWeb/DOM/Range.cpp @@ -78,8 +78,8 @@ Range::~Range() void Range::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Range); + Base::initialize(realm); } void Range::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/ShadowRoot.cpp b/Libraries/LibWeb/DOM/ShadowRoot.cpp index 20d699abe9b..fadf42941af 100644 --- a/Libraries/LibWeb/DOM/ShadowRoot.cpp +++ b/Libraries/LibWeb/DOM/ShadowRoot.cpp @@ -33,8 +33,8 @@ void ShadowRoot::finalize() void ShadowRoot::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ShadowRoot); + Base::initialize(realm); } // https://dom.spec.whatwg.org/#dom-shadowroot-onslotchange diff --git a/Libraries/LibWeb/DOM/StaticRange.cpp b/Libraries/LibWeb/DOM/StaticRange.cpp index 2b3303ea690..9af9c645c96 100644 --- a/Libraries/LibWeb/DOM/StaticRange.cpp +++ b/Libraries/LibWeb/DOM/StaticRange.cpp @@ -40,8 +40,8 @@ WebIDL::ExceptionOr> StaticRange::construct_impl(JS::Realm& void StaticRange::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(StaticRange); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOM/Text.cpp b/Libraries/LibWeb/DOM/Text.cpp index 66affd6ad76..5c3412fa7fc 100644 --- a/Libraries/LibWeb/DOM/Text.cpp +++ b/Libraries/LibWeb/DOM/Text.cpp @@ -29,8 +29,8 @@ Text::Text(Document& document, NodeType type, String const& data) void Text::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Text); + Base::initialize(realm); } void Text::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/TreeWalker.cpp b/Libraries/LibWeb/DOM/TreeWalker.cpp index ee4f0bf8850..9a7d851adc8 100644 --- a/Libraries/LibWeb/DOM/TreeWalker.cpp +++ b/Libraries/LibWeb/DOM/TreeWalker.cpp @@ -28,8 +28,8 @@ TreeWalker::~TreeWalker() = default; void TreeWalker::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TreeWalker); + Base::initialize(realm); } void TreeWalker::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOM/XMLDocument.cpp b/Libraries/LibWeb/DOM/XMLDocument.cpp index c757ae2eb4c..82dcd3e7532 100644 --- a/Libraries/LibWeb/DOM/XMLDocument.cpp +++ b/Libraries/LibWeb/DOM/XMLDocument.cpp @@ -23,8 +23,8 @@ XMLDocument::XMLDocument(JS::Realm& realm, URL::URL const& url) void XMLDocument::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLDocument); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/DOMURL/DOMURL.cpp b/Libraries/LibWeb/DOMURL/DOMURL.cpp index 7b6d3aaae71..fd79e5f4be8 100644 --- a/Libraries/LibWeb/DOMURL/DOMURL.cpp +++ b/Libraries/LibWeb/DOMURL/DOMURL.cpp @@ -109,8 +109,8 @@ DOMURL::~DOMURL() = default; void DOMURL::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(DOMURL, URL); + Base::initialize(realm); } void DOMURL::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOMURL/URLSearchParams.cpp b/Libraries/LibWeb/DOMURL/URLSearchParams.cpp index 9dac122d356..2589fe9699e 100644 --- a/Libraries/LibWeb/DOMURL/URLSearchParams.cpp +++ b/Libraries/LibWeb/DOMURL/URLSearchParams.cpp @@ -31,8 +31,8 @@ URLSearchParams::~URLSearchParams() = default; void URLSearchParams::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(URLSearchParams); + Base::initialize(realm); } void URLSearchParams::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/DOMURL/URLSearchParamsIterator.cpp b/Libraries/LibWeb/DOMURL/URLSearchParamsIterator.cpp index a530736301c..743d334c6ff 100644 --- a/Libraries/LibWeb/DOMURL/URLSearchParamsIterator.cpp +++ b/Libraries/LibWeb/DOMURL/URLSearchParamsIterator.cpp @@ -41,8 +41,8 @@ URLSearchParamsIterator::~URLSearchParamsIterator() = default; void URLSearchParamsIterator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(URLSearchParamsIterator); + Base::initialize(realm); } void URLSearchParamsIterator::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Encoding/TextDecoder.cpp b/Libraries/LibWeb/Encoding/TextDecoder.cpp index 1130f5dcd54..447d5f7710c 100644 --- a/Libraries/LibWeb/Encoding/TextDecoder.cpp +++ b/Libraries/LibWeb/Encoding/TextDecoder.cpp @@ -61,8 +61,8 @@ TextDecoder::~TextDecoder() = default; void TextDecoder::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextDecoder); + Base::initialize(realm); } // https://encoding.spec.whatwg.org/#dom-textdecoder-decode diff --git a/Libraries/LibWeb/Encoding/TextEncoder.cpp b/Libraries/LibWeb/Encoding/TextEncoder.cpp index bc59b9e8ebc..c5ca65277fb 100644 --- a/Libraries/LibWeb/Encoding/TextEncoder.cpp +++ b/Libraries/LibWeb/Encoding/TextEncoder.cpp @@ -28,8 +28,8 @@ TextEncoder::~TextEncoder() = default; void TextEncoder::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextEncoder); + Base::initialize(realm); } // https://encoding.spec.whatwg.org/#dom-textencoder-encode diff --git a/Libraries/LibWeb/Encoding/TextEncoderStream.cpp b/Libraries/LibWeb/Encoding/TextEncoderStream.cpp index ab0abdd04e1..5aa87b37a64 100644 --- a/Libraries/LibWeb/Encoding/TextEncoderStream.cpp +++ b/Libraries/LibWeb/Encoding/TextEncoderStream.cpp @@ -76,8 +76,8 @@ TextEncoderStream::~TextEncoderStream() = default; void TextEncoderStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextEncoderStream); + Base::initialize(realm); } void TextEncoderStream::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/EntriesAPI/FileSystemEntry.cpp b/Libraries/LibWeb/EntriesAPI/FileSystemEntry.cpp index ed450a2a93e..0891736d6f7 100644 --- a/Libraries/LibWeb/EntriesAPI/FileSystemEntry.cpp +++ b/Libraries/LibWeb/EntriesAPI/FileSystemEntry.cpp @@ -27,8 +27,8 @@ FileSystemEntry::FileSystemEntry(JS::Realm& realm, EntryType entry_type, ByteStr void FileSystemEntry::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FileSystemEntry); + Base::initialize(realm); } // https://wicg.github.io/entries-api/#dom-filesystementry-isfile diff --git a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp index cd0d3567d3e..fb9fbf3d965 100644 --- a/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp +++ b/Libraries/LibWeb/EventTiming/PerformanceEventTiming.cpp @@ -112,8 +112,8 @@ PerformanceTimeline::ShouldAddEntry PerformanceEventTiming::should_add_entry(Opt void PerformanceEventTiming::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceEventTiming); + Base::initialize(realm); } void PerformanceEventTiming::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Fetch/Headers.cpp b/Libraries/LibWeb/Fetch/Headers.cpp index b60503d7c27..9d86ce9f343 100644 --- a/Libraries/LibWeb/Fetch/Headers.cpp +++ b/Libraries/LibWeb/Fetch/Headers.cpp @@ -43,8 +43,8 @@ Headers::~Headers() = default; void Headers::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Headers); + Base::initialize(realm); } void Headers::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Fetch/HeadersIterator.cpp b/Libraries/LibWeb/Fetch/HeadersIterator.cpp index 8279fa27cdd..5d115c0e839 100644 --- a/Libraries/LibWeb/Fetch/HeadersIterator.cpp +++ b/Libraries/LibWeb/Fetch/HeadersIterator.cpp @@ -42,8 +42,8 @@ HeadersIterator::~HeadersIterator() = default; void HeadersIterator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HeadersIterator); + Base::initialize(realm); } void HeadersIterator::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Fetch/Request.cpp b/Libraries/LibWeb/Fetch/Request.cpp index ca1a1b415de..a3631311adf 100644 --- a/Libraries/LibWeb/Fetch/Request.cpp +++ b/Libraries/LibWeb/Fetch/Request.cpp @@ -33,8 +33,8 @@ Request::~Request() = default; void Request::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Request); + Base::initialize(realm); } void Request::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Fetch/Response.cpp b/Libraries/LibWeb/Fetch/Response.cpp index 48b2af45d76..b022098ceb5 100644 --- a/Libraries/LibWeb/Fetch/Response.cpp +++ b/Libraries/LibWeb/Fetch/Response.cpp @@ -31,8 +31,8 @@ Response::~Response() = default; void Response::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Response); + Base::initialize(realm); } void Response::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/FileAPI/Blob.cpp b/Libraries/LibWeb/FileAPI/Blob.cpp index 53e75aad491..8d4d383419c 100644 --- a/Libraries/LibWeb/FileAPI/Blob.cpp +++ b/Libraries/LibWeb/FileAPI/Blob.cpp @@ -147,8 +147,8 @@ Blob::~Blob() = default; void Blob::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Blob); + Base::initialize(realm); } WebIDL::ExceptionOr Blob::serialization_steps(HTML::SerializationRecord& record, bool, HTML::SerializationMemory&) diff --git a/Libraries/LibWeb/FileAPI/File.cpp b/Libraries/LibWeb/FileAPI/File.cpp index a93094fc82d..724f044631a 100644 --- a/Libraries/LibWeb/FileAPI/File.cpp +++ b/Libraries/LibWeb/FileAPI/File.cpp @@ -31,8 +31,8 @@ File::File(JS::Realm& realm) void File::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(File); + Base::initialize(realm); } File::~File() = default; diff --git a/Libraries/LibWeb/FileAPI/FileList.cpp b/Libraries/LibWeb/FileAPI/FileList.cpp index 24bd5652bff..9017a21221c 100644 --- a/Libraries/LibWeb/FileAPI/FileList.cpp +++ b/Libraries/LibWeb/FileAPI/FileList.cpp @@ -30,8 +30,8 @@ FileList::~FileList() = default; void FileList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FileList); + Base::initialize(realm); } Optional FileList::item_value(size_t index) const diff --git a/Libraries/LibWeb/FileAPI/FileReader.cpp b/Libraries/LibWeb/FileAPI/FileReader.cpp index d225854c45a..64cbee1925d 100644 --- a/Libraries/LibWeb/FileAPI/FileReader.cpp +++ b/Libraries/LibWeb/FileAPI/FileReader.cpp @@ -43,8 +43,8 @@ FileReader::FileReader(JS::Realm& realm) void FileReader::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FileReader); + Base::initialize(realm); } void FileReader::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/FileAPI/FileReaderSync.cpp b/Libraries/LibWeb/FileAPI/FileReaderSync.cpp index be01b497fc7..3ef486769ee 100644 --- a/Libraries/LibWeb/FileAPI/FileReaderSync.cpp +++ b/Libraries/LibWeb/FileAPI/FileReaderSync.cpp @@ -29,8 +29,8 @@ FileReaderSync::FileReaderSync(JS::Realm& realm) void FileReaderSync::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FileReaderSync); + Base::initialize(realm); } GC::Ref FileReaderSync::create(JS::Realm& realm) diff --git a/Libraries/LibWeb/Geometry/DOMMatrix.cpp b/Libraries/LibWeb/Geometry/DOMMatrix.cpp index b669d3ae9f7..fdfc7ad9984 100644 --- a/Libraries/LibWeb/Geometry/DOMMatrix.cpp +++ b/Libraries/LibWeb/Geometry/DOMMatrix.cpp @@ -148,8 +148,8 @@ DOMMatrix::~DOMMatrix() = default; void DOMMatrix::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMMatrix); + Base::initialize(realm); } // https://drafts.fxtf.org/geometry/#dom-dommatrix-frommatrix diff --git a/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp b/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp index 9738ecae046..e8852eee310 100644 --- a/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp +++ b/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp @@ -154,8 +154,8 @@ DOMMatrixReadOnly::~DOMMatrixReadOnly() = default; void DOMMatrixReadOnly::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMMatrixReadOnly); + Base::initialize(realm); } // https://drafts.fxtf.org/geometry/#create-a-2d-matrix diff --git a/Libraries/LibWeb/Geometry/DOMPoint.cpp b/Libraries/LibWeb/Geometry/DOMPoint.cpp index f110a50e6dd..06696895ee8 100644 --- a/Libraries/LibWeb/Geometry/DOMPoint.cpp +++ b/Libraries/LibWeb/Geometry/DOMPoint.cpp @@ -44,8 +44,8 @@ DOMPoint::~DOMPoint() = default; void DOMPoint::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMPoint); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp b/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp index 7f686a73a52..982610447e5 100644 --- a/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp +++ b/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp @@ -62,8 +62,8 @@ WebIDL::ExceptionOr> DOMPointReadOnly::matrix_transform(DOMMat void DOMPointReadOnly::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMPointReadOnly); + Base::initialize(realm); } WebIDL::ExceptionOr DOMPointReadOnly::serialization_steps(HTML::SerializationRecord& serialized, bool, HTML::SerializationMemory&) diff --git a/Libraries/LibWeb/Geometry/DOMQuad.cpp b/Libraries/LibWeb/Geometry/DOMQuad.cpp index 09363637b01..1cc265425fa 100644 --- a/Libraries/LibWeb/Geometry/DOMQuad.cpp +++ b/Libraries/LibWeb/Geometry/DOMQuad.cpp @@ -151,8 +151,8 @@ WebIDL::ExceptionOr DOMQuad::deserialization_steps(ReadonlySpan const void DOMQuad::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMQuad); + Base::initialize(realm); } void DOMQuad::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Geometry/DOMRect.cpp b/Libraries/LibWeb/Geometry/DOMRect.cpp index 56792fec499..cfa9693fe88 100644 --- a/Libraries/LibWeb/Geometry/DOMRect.cpp +++ b/Libraries/LibWeb/Geometry/DOMRect.cpp @@ -49,8 +49,8 @@ DOMRect::~DOMRect() = default; void DOMRect::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMRect); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Geometry/DOMRectList.cpp b/Libraries/LibWeb/Geometry/DOMRectList.cpp index 2630813ae7a..fd061a6a117 100644 --- a/Libraries/LibWeb/Geometry/DOMRectList.cpp +++ b/Libraries/LibWeb/Geometry/DOMRectList.cpp @@ -34,8 +34,8 @@ DOMRectList::~DOMRectList() = default; void DOMRectList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMRectList); + Base::initialize(realm); } void DOMRectList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp b/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp index 1984432045b..76670a8bb68 100644 --- a/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp +++ b/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp @@ -47,8 +47,8 @@ DOMRectReadOnly::~DOMRectReadOnly() = default; void DOMRectReadOnly::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMRectReadOnly); + Base::initialize(realm); } // https://drafts.fxtf.org/geometry/#structured-serialization diff --git a/Libraries/LibWeb/HTML/AudioTrack.cpp b/Libraries/LibWeb/HTML/AudioTrack.cpp index 02d1c7332de..d83051835cf 100644 --- a/Libraries/LibWeb/HTML/AudioTrack.cpp +++ b/Libraries/LibWeb/HTML/AudioTrack.cpp @@ -53,8 +53,8 @@ AudioTrack::~AudioTrack() void AudioTrack::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioTrack); + Base::initialize(realm); auto id = s_audio_track_id_allocator.allocate(); m_id = String::number(id); diff --git a/Libraries/LibWeb/HTML/AudioTrackList.cpp b/Libraries/LibWeb/HTML/AudioTrackList.cpp index 5f64f632b90..ef642bf39be 100644 --- a/Libraries/LibWeb/HTML/AudioTrackList.cpp +++ b/Libraries/LibWeb/HTML/AudioTrackList.cpp @@ -22,8 +22,8 @@ AudioTrackList::AudioTrackList(JS::Realm& realm) void AudioTrackList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioTrackList); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/media.html#dom-tracklist-item diff --git a/Libraries/LibWeb/HTML/BarProp.cpp b/Libraries/LibWeb/HTML/BarProp.cpp index ee7657c5cb0..6e16cd712ce 100644 --- a/Libraries/LibWeb/HTML/BarProp.cpp +++ b/Libraries/LibWeb/HTML/BarProp.cpp @@ -41,7 +41,7 @@ bool BarProp::visible() const void BarProp::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BarProp); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/BeforeUnloadEvent.cpp b/Libraries/LibWeb/HTML/BeforeUnloadEvent.cpp index 0c50c96f956..27ad543c895 100644 --- a/Libraries/LibWeb/HTML/BeforeUnloadEvent.cpp +++ b/Libraries/LibWeb/HTML/BeforeUnloadEvent.cpp @@ -26,8 +26,8 @@ BeforeUnloadEvent::~BeforeUnloadEvent() = default; void BeforeUnloadEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BeforeUnloadEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/BroadcastChannel.cpp b/Libraries/LibWeb/HTML/BroadcastChannel.cpp index 9af6fd122d1..ba8edca4b8f 100644 --- a/Libraries/LibWeb/HTML/BroadcastChannel.cpp +++ b/Libraries/LibWeb/HTML/BroadcastChannel.cpp @@ -76,8 +76,8 @@ BroadcastChannel::BroadcastChannel(JS::Realm& realm, FlyString const& name) void BroadcastChannel::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BroadcastChannel); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/web-messaging.html#eligible-for-messaging diff --git a/Libraries/LibWeb/HTML/CanvasGradient.cpp b/Libraries/LibWeb/HTML/CanvasGradient.cpp index d15f89dfd36..2e8071fad4d 100644 --- a/Libraries/LibWeb/HTML/CanvasGradient.cpp +++ b/Libraries/LibWeb/HTML/CanvasGradient.cpp @@ -52,8 +52,8 @@ CanvasGradient::~CanvasGradient() = default; void CanvasGradient::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CanvasGradient); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop diff --git a/Libraries/LibWeb/HTML/CanvasPattern.cpp b/Libraries/LibWeb/HTML/CanvasPattern.cpp index e467d735033..681ca276027 100644 --- a/Libraries/LibWeb/HTML/CanvasPattern.cpp +++ b/Libraries/LibWeb/HTML/CanvasPattern.cpp @@ -147,8 +147,8 @@ WebIDL::ExceptionOr> CanvasPattern::create(JS::Realm& rea void CanvasPattern::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CanvasPattern); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/CloseEvent.cpp b/Libraries/LibWeb/HTML/CloseEvent.cpp index 52539532241..dd37cfc6814 100644 --- a/Libraries/LibWeb/HTML/CloseEvent.cpp +++ b/Libraries/LibWeb/HTML/CloseEvent.cpp @@ -34,8 +34,8 @@ CloseEvent::~CloseEvent() = default; void CloseEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CloseEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/CloseWatcher.cpp b/Libraries/LibWeb/HTML/CloseWatcher.cpp index 8643e8abead..f0dd01cf519 100644 --- a/Libraries/LibWeb/HTML/CloseWatcher.cpp +++ b/Libraries/LibWeb/HTML/CloseWatcher.cpp @@ -171,8 +171,8 @@ void CloseWatcher::destroy() void CloseWatcher::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CloseWatcher); + Base::initialize(realm); } void CloseWatcher::set_oncancel(WebIDL::CallbackType* event_handler) diff --git a/Libraries/LibWeb/HTML/CommandEvent.cpp b/Libraries/LibWeb/HTML/CommandEvent.cpp index b7c14ef436f..139d14430d4 100644 --- a/Libraries/LibWeb/HTML/CommandEvent.cpp +++ b/Libraries/LibWeb/HTML/CommandEvent.cpp @@ -37,8 +37,8 @@ void CommandEvent::visit_edges(Visitor& visitor) void CommandEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CommandEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp b/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp index 290d2f91da9..2471cd8a86a 100644 --- a/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp +++ b/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp @@ -32,8 +32,8 @@ CustomElementRegistry::~CustomElementRegistry() = default; void CustomElementRegistry::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CustomElementRegistry); + Base::initialize(realm); } void CustomElementRegistry::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/DOMParser.cpp b/Libraries/LibWeb/HTML/DOMParser.cpp index 8caf623ff29..7327db31d2e 100644 --- a/Libraries/LibWeb/HTML/DOMParser.cpp +++ b/Libraries/LibWeb/HTML/DOMParser.cpp @@ -32,8 +32,8 @@ DOMParser::~DOMParser() = default; void DOMParser::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMParser); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring diff --git a/Libraries/LibWeb/HTML/DOMStringList.cpp b/Libraries/LibWeb/HTML/DOMStringList.cpp index ba112438e6d..036f5174eb6 100644 --- a/Libraries/LibWeb/HTML/DOMStringList.cpp +++ b/Libraries/LibWeb/HTML/DOMStringList.cpp @@ -27,8 +27,8 @@ DOMStringList::DOMStringList(JS::Realm& realm, Vector list) void DOMStringList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMStringList); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-domstringlist-length diff --git a/Libraries/LibWeb/HTML/DOMStringMap.cpp b/Libraries/LibWeb/HTML/DOMStringMap.cpp index bdf641de153..a37419b6a26 100644 --- a/Libraries/LibWeb/HTML/DOMStringMap.cpp +++ b/Libraries/LibWeb/HTML/DOMStringMap.cpp @@ -37,8 +37,8 @@ DOMStringMap::~DOMStringMap() = default; void DOMStringMap::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMStringMap); + Base::initialize(realm); } void DOMStringMap::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/DataTransfer.cpp b/Libraries/LibWeb/HTML/DataTransfer.cpp index ca731ed030e..fc5424f1a7e 100644 --- a/Libraries/LibWeb/HTML/DataTransfer.cpp +++ b/Libraries/LibWeb/HTML/DataTransfer.cpp @@ -65,8 +65,8 @@ DataTransfer::~DataTransfer() = default; void DataTransfer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DataTransfer); + Base::initialize(realm); } void DataTransfer::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/DataTransferItem.cpp b/Libraries/LibWeb/HTML/DataTransferItem.cpp index 636c67e0ba6..6a3a3e0641e 100644 --- a/Libraries/LibWeb/HTML/DataTransferItem.cpp +++ b/Libraries/LibWeb/HTML/DataTransferItem.cpp @@ -35,8 +35,8 @@ DataTransferItem::~DataTransferItem() = default; void DataTransferItem::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DataTransferItem); + Base::initialize(realm); } void DataTransferItem::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/DataTransferItemList.cpp b/Libraries/LibWeb/HTML/DataTransferItemList.cpp index 55c574809a2..c022f3a9903 100644 --- a/Libraries/LibWeb/HTML/DataTransferItemList.cpp +++ b/Libraries/LibWeb/HTML/DataTransferItemList.cpp @@ -33,8 +33,8 @@ DataTransferItemList::~DataTransferItemList() = default; void DataTransferItemList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DataTransferItemList); + Base::initialize(realm); } void DataTransferItemList::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/DragEvent.cpp b/Libraries/LibWeb/HTML/DragEvent.cpp index dde9404a1ad..cff527f3100 100644 --- a/Libraries/LibWeb/HTML/DragEvent.cpp +++ b/Libraries/LibWeb/HTML/DragEvent.cpp @@ -32,8 +32,8 @@ DragEvent::~DragEvent() = default; void DragEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DragEvent); + Base::initialize(realm); } void DragEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/ElementInternals.cpp b/Libraries/LibWeb/HTML/ElementInternals.cpp index 81c64698e53..036534dd8c0 100644 --- a/Libraries/LibWeb/HTML/ElementInternals.cpp +++ b/Libraries/LibWeb/HTML/ElementInternals.cpp @@ -48,8 +48,8 @@ GC::Ptr ElementInternals::shadow_root() const void ElementInternals::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ElementInternals); + Base::initialize(realm); } void ElementInternals::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/ErrorEvent.cpp b/Libraries/LibWeb/HTML/ErrorEvent.cpp index dc8a3bffa82..72379c6f32f 100644 --- a/Libraries/LibWeb/HTML/ErrorEvent.cpp +++ b/Libraries/LibWeb/HTML/ErrorEvent.cpp @@ -38,8 +38,8 @@ ErrorEvent::~ErrorEvent() = default; void ErrorEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ErrorEvent); + Base::initialize(realm); } void ErrorEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/EventSource.cpp b/Libraries/LibWeb/HTML/EventSource.cpp index 324eec8ec51..aa9630e8e4d 100644 --- a/Libraries/LibWeb/HTML/EventSource.cpp +++ b/Libraries/LibWeb/HTML/EventSource.cpp @@ -173,8 +173,8 @@ EventSource::~EventSource() = default; void EventSource::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(EventSource); + Base::initialize(realm); auto& relevant_global = as(HTML::relevant_global_object(*this)); relevant_global.register_event_source({}, *this); diff --git a/Libraries/LibWeb/HTML/FormDataEvent.cpp b/Libraries/LibWeb/HTML/FormDataEvent.cpp index 0ed27240202..db8b8dc3178 100644 --- a/Libraries/LibWeb/HTML/FormDataEvent.cpp +++ b/Libraries/LibWeb/HTML/FormDataEvent.cpp @@ -27,8 +27,8 @@ FormDataEvent::~FormDataEvent() = default; void FormDataEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FormDataEvent); + Base::initialize(realm); } void FormDataEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLAllCollection.cpp b/Libraries/LibWeb/HTML/HTMLAllCollection.cpp index 02679f11459..59632cdb694 100644 --- a/Libraries/LibWeb/HTML/HTMLAllCollection.cpp +++ b/Libraries/LibWeb/HTML/HTMLAllCollection.cpp @@ -54,8 +54,8 @@ HTMLAllCollection::~HTMLAllCollection() = default; void HTMLAllCollection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAllCollection); + Base::initialize(realm); } void HTMLAllCollection::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp b/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp index e7f981aa243..ee1f926cfda 100644 --- a/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp @@ -30,8 +30,8 @@ HTMLAnchorElement::~HTMLAnchorElement() = default; void HTMLAnchorElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAnchorElement); + Base::initialize(realm); } void HTMLAnchorElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLAreaElement.cpp b/Libraries/LibWeb/HTML/HTMLAreaElement.cpp index 8449fc8b3cb..343ea5af3ef 100644 --- a/Libraries/LibWeb/HTML/HTMLAreaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLAreaElement.cpp @@ -23,8 +23,8 @@ HTMLAreaElement::~HTMLAreaElement() = default; void HTMLAreaElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAreaElement); + Base::initialize(realm); } void HTMLAreaElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLAudioElement.cpp b/Libraries/LibWeb/HTML/HTMLAudioElement.cpp index 2801234542d..f98ae17dc67 100644 --- a/Libraries/LibWeb/HTML/HTMLAudioElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLAudioElement.cpp @@ -26,8 +26,8 @@ HTMLAudioElement::~HTMLAudioElement() = default; void HTMLAudioElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAudioElement); + Base::initialize(realm); } GC::Ptr HTMLAudioElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/HTML/HTMLBRElement.cpp b/Libraries/LibWeb/HTML/HTMLBRElement.cpp index 69ec4c24043..828f5fa6d84 100644 --- a/Libraries/LibWeb/HTML/HTMLBRElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLBRElement.cpp @@ -24,8 +24,8 @@ HTMLBRElement::~HTMLBRElement() = default; void HTMLBRElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLBRElement); + Base::initialize(realm); } GC::Ptr HTMLBRElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/HTML/HTMLBaseElement.cpp b/Libraries/LibWeb/HTML/HTMLBaseElement.cpp index a7456805650..4cba0578e1e 100644 --- a/Libraries/LibWeb/HTML/HTMLBaseElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLBaseElement.cpp @@ -21,8 +21,8 @@ HTMLBaseElement::~HTMLBaseElement() = default; void HTMLBaseElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLBaseElement); + Base::initialize(realm); } void HTMLBaseElement::inserted() diff --git a/Libraries/LibWeb/HTML/HTMLBodyElement.cpp b/Libraries/LibWeb/HTML/HTMLBodyElement.cpp index ac297eaa75e..e58ff5a5fe4 100644 --- a/Libraries/LibWeb/HTML/HTMLBodyElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLBodyElement.cpp @@ -37,8 +37,8 @@ void HTMLBodyElement::visit_edges(Visitor& visitor) void HTMLBodyElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLBodyElement); + Base::initialize(realm); } bool HTMLBodyElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLButtonElement.cpp b/Libraries/LibWeb/HTML/HTMLButtonElement.cpp index 96b5b6809f3..89a55fb983f 100644 --- a/Libraries/LibWeb/HTML/HTMLButtonElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLButtonElement.cpp @@ -25,8 +25,8 @@ HTMLButtonElement::~HTMLButtonElement() = default; void HTMLButtonElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLButtonElement); + Base::initialize(realm); } HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const diff --git a/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp b/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp index 59d50fedbf6..f2ff0427ece 100644 --- a/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp @@ -45,8 +45,8 @@ HTMLCanvasElement::~HTMLCanvasElement() = default; void HTMLCanvasElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLCanvasElement); + Base::initialize(realm); } void HTMLCanvasElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLDListElement.cpp b/Libraries/LibWeb/HTML/HTMLDListElement.cpp index 3f9ca83d4f0..530db0d16e2 100644 --- a/Libraries/LibWeb/HTML/HTMLDListElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDListElement.cpp @@ -21,8 +21,8 @@ HTMLDListElement::~HTMLDListElement() = default; void HTMLDListElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDListElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLDataElement.cpp b/Libraries/LibWeb/HTML/HTMLDataElement.cpp index 7bd471d16eb..f953634b181 100644 --- a/Libraries/LibWeb/HTML/HTMLDataElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDataElement.cpp @@ -21,8 +21,8 @@ HTMLDataElement::~HTMLDataElement() = default; void HTMLDataElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDataElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLDataListElement.cpp b/Libraries/LibWeb/HTML/HTMLDataListElement.cpp index be65842b6d6..66ffb90f7f6 100644 --- a/Libraries/LibWeb/HTML/HTMLDataListElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDataListElement.cpp @@ -22,8 +22,8 @@ HTMLDataListElement::~HTMLDataListElement() = default; void HTMLDataListElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDataListElement); + Base::initialize(realm); } void HTMLDataListElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp b/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp index cc0073d1599..ab9d0078d56 100644 --- a/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp @@ -38,8 +38,8 @@ void HTMLDetailsElement::visit_edges(Cell::Visitor& visitor) void HTMLDetailsElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDetailsElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/interactive-elements.html#the-details-element:html-element-insertion-steps diff --git a/Libraries/LibWeb/HTML/HTMLDialogElement.cpp b/Libraries/LibWeb/HTML/HTMLDialogElement.cpp index af4aa372b46..9594e90fc50 100644 --- a/Libraries/LibWeb/HTML/HTMLDialogElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDialogElement.cpp @@ -31,8 +31,8 @@ HTMLDialogElement::~HTMLDialogElement() = default; void HTMLDialogElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDialogElement); + Base::initialize(realm); } void HTMLDialogElement::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp b/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp index 122a77d0594..3f6d51090f6 100644 --- a/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp @@ -21,8 +21,8 @@ HTMLDirectoryElement::~HTMLDirectoryElement() = default; void HTMLDirectoryElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDirectoryElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLDivElement.cpp b/Libraries/LibWeb/HTML/HTMLDivElement.cpp index f68683a08c2..cae2caf7dd4 100644 --- a/Libraries/LibWeb/HTML/HTMLDivElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLDivElement.cpp @@ -48,8 +48,8 @@ void HTMLDivElement::apply_presentational_hints(GC::Ref void HTMLDivElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDivElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLDocument.cpp b/Libraries/LibWeb/HTML/HTMLDocument.cpp index 3080ce306be..f2ee88b4d7e 100644 --- a/Libraries/LibWeb/HTML/HTMLDocument.cpp +++ b/Libraries/LibWeb/HTML/HTMLDocument.cpp @@ -30,8 +30,8 @@ GC::Ref HTMLDocument::create(JS::Realm& realm, URL::URL const& url void HTMLDocument::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLDocument); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLElement.cpp b/Libraries/LibWeb/HTML/HTMLElement.cpp index 98b3cf127ee..2db3c5e8567 100644 --- a/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -58,8 +58,8 @@ HTMLElement::~HTMLElement() = default; void HTMLElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLElement); + Base::initialize(realm); } void HTMLElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp b/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp index 6539f9d000f..a7cc343a601 100644 --- a/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp @@ -25,8 +25,8 @@ HTMLEmbedElement::~HTMLEmbedElement() = default; void HTMLEmbedElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLEmbedElement); + Base::initialize(realm); } bool HTMLEmbedElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp b/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp index 38a72357f0c..4a092310791 100644 --- a/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp @@ -29,8 +29,8 @@ HTMLFieldSetElement::~HTMLFieldSetElement() = default; void HTMLFieldSetElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFieldSetElement); + Base::initialize(realm); } void HTMLFieldSetElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLFontElement.cpp b/Libraries/LibWeb/HTML/HTMLFontElement.cpp index b70399a8eb2..efaafad42f4 100644 --- a/Libraries/LibWeb/HTML/HTMLFontElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFontElement.cpp @@ -107,8 +107,8 @@ HTMLFontElement::~HTMLFontElement() = default; void HTMLFontElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFontElement); + Base::initialize(realm); } bool HTMLFontElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLFormControlsCollection.cpp b/Libraries/LibWeb/HTML/HTMLFormControlsCollection.cpp index 1fe841c6e4c..8d5fa8ffd09 100644 --- a/Libraries/LibWeb/HTML/HTMLFormControlsCollection.cpp +++ b/Libraries/LibWeb/HTML/HTMLFormControlsCollection.cpp @@ -30,8 +30,8 @@ HTMLFormControlsCollection::~HTMLFormControlsCollection() = default; void HTMLFormControlsCollection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFormControlsCollection); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-htmlformcontrolscollection-nameditem diff --git a/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Libraries/LibWeb/HTML/HTMLFormElement.cpp index 435db909f87..373e1c5c4fb 100644 --- a/Libraries/LibWeb/HTML/HTMLFormElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFormElement.cpp @@ -54,8 +54,8 @@ HTMLFormElement::~HTMLFormElement() = default; void HTMLFormElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFormElement); + Base::initialize(realm); } void HTMLFormElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLFrameElement.cpp b/Libraries/LibWeb/HTML/HTMLFrameElement.cpp index 8e59d69738b..45a5aac519b 100644 --- a/Libraries/LibWeb/HTML/HTMLFrameElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFrameElement.cpp @@ -31,8 +31,8 @@ HTMLFrameElement::~HTMLFrameElement() = default; void HTMLFrameElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFrameElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/obsolete.html#frames:html-element-insertion-steps diff --git a/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp b/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp index 48b60ef4867..48aefa6c7e0 100644 --- a/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp @@ -31,8 +31,8 @@ void HTMLFrameSetElement::adjust_computed_style(CSS::ComputedProperties& style) void HTMLFrameSetElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLFrameSetElement); + Base::initialize(realm); } void HTMLFrameSetElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/HTML/HTMLHRElement.cpp b/Libraries/LibWeb/HTML/HTMLHRElement.cpp index c392494a9b4..dcfd9b05f40 100644 --- a/Libraries/LibWeb/HTML/HTMLHRElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLHRElement.cpp @@ -27,8 +27,8 @@ HTMLHRElement::~HTMLHRElement() = default; void HTMLHRElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLHRElement); + Base::initialize(realm); } bool HTMLHRElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLHeadElement.cpp b/Libraries/LibWeb/HTML/HTMLHeadElement.cpp index bc0ba06760a..acad9058ada 100644 --- a/Libraries/LibWeb/HTML/HTMLHeadElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLHeadElement.cpp @@ -21,8 +21,8 @@ HTMLHeadElement::~HTMLHeadElement() = default; void HTMLHeadElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLHeadElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp b/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp index 50cdd0fc438..0c428d1fa83 100644 --- a/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp @@ -23,8 +23,8 @@ HTMLHeadingElement::~HTMLHeadingElement() = default; void HTMLHeadingElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLHeadingElement); + Base::initialize(realm); } bool HTMLHeadingElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp b/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp index d1e18704fff..4e0765a97b3 100644 --- a/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp @@ -24,8 +24,8 @@ HTMLHtmlElement::~HTMLHtmlElement() = default; void HTMLHtmlElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLHtmlElement); + Base::initialize(realm); } bool HTMLHtmlElement::should_use_body_background_properties() const diff --git a/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp index 185594cad35..a9cbc1ca59d 100644 --- a/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp @@ -33,8 +33,8 @@ HTMLIFrameElement::~HTMLIFrameElement() = default; void HTMLIFrameElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLIFrameElement); + Base::initialize(realm); } GC::Ptr HTMLIFrameElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 078f446c4b5..6c876b09547 100644 --- a/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -64,8 +64,8 @@ void HTMLImageElement::finalize() void HTMLImageElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLImageElement); + Base::initialize(realm); m_current_request = ImageRequest::create(realm, document().page()); } diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 6cb987e4270..6f78ca35ec0 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -73,8 +73,8 @@ HTMLInputElement::~HTMLInputElement() = default; void HTMLInputElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLInputElement); + Base::initialize(realm); } void HTMLInputElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLLIElement.cpp b/Libraries/LibWeb/HTML/HTMLLIElement.cpp index 706e1209d3e..ea3a19a9674 100644 --- a/Libraries/LibWeb/HTML/HTMLLIElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLIElement.cpp @@ -23,8 +23,8 @@ HTMLLIElement::~HTMLLIElement() = default; void HTMLLIElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLLIElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/grouping-content.html#dom-li-value diff --git a/Libraries/LibWeb/HTML/HTMLLabelElement.cpp b/Libraries/LibWeb/HTML/HTMLLabelElement.cpp index 4665d298c08..963f63a4327 100644 --- a/Libraries/LibWeb/HTML/HTMLLabelElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLabelElement.cpp @@ -23,8 +23,8 @@ HTMLLabelElement::~HTMLLabelElement() = default; void HTMLLabelElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLLabelElement); + Base::initialize(realm); } GC::Ptr HTMLLabelElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/HTML/HTMLLegendElement.cpp b/Libraries/LibWeb/HTML/HTMLLegendElement.cpp index ad80d9c89ea..8d4673cc214 100644 --- a/Libraries/LibWeb/HTML/HTMLLegendElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLegendElement.cpp @@ -23,8 +23,8 @@ HTMLLegendElement::~HTMLLegendElement() = default; void HTMLLegendElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLLegendElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/form-elements.html#dom-legend-form diff --git a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index fb631d499d6..2901f885ce1 100644 --- a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -48,8 +48,8 @@ HTMLLinkElement::~HTMLLinkElement() = default; void HTMLLinkElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLLinkElement); + Base::initialize(realm); } void HTMLLinkElement::removed_from(Node* old_parent, Node& old_root) diff --git a/Libraries/LibWeb/HTML/HTMLMapElement.cpp b/Libraries/LibWeb/HTML/HTMLMapElement.cpp index 4c7b02c755d..4abd35cca3f 100644 --- a/Libraries/LibWeb/HTML/HTMLMapElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMapElement.cpp @@ -22,8 +22,8 @@ HTMLMapElement::~HTMLMapElement() = default; void HTMLMapElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMapElement); + Base::initialize(realm); } void HTMLMapElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp b/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp index 19a84b4dc38..4aae2d6a849 100644 --- a/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp @@ -26,8 +26,8 @@ HTMLMarqueeElement::~HTMLMarqueeElement() = default; void HTMLMarqueeElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMarqueeElement); + Base::initialize(realm); } bool HTMLMarqueeElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLMediaElement.cpp b/Libraries/LibWeb/HTML/HTMLMediaElement.cpp index b7366baf4af..2b2461c0b48 100644 --- a/Libraries/LibWeb/HTML/HTMLMediaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMediaElement.cpp @@ -53,8 +53,8 @@ HTMLMediaElement::~HTMLMediaElement() = default; void HTMLMediaElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMediaElement); + Base::initialize(realm); m_audio_tracks = realm.create(realm); m_video_tracks = realm.create(realm); diff --git a/Libraries/LibWeb/HTML/HTMLMenuElement.cpp b/Libraries/LibWeb/HTML/HTMLMenuElement.cpp index d54d095b6a9..8b71b69c402 100644 --- a/Libraries/LibWeb/HTML/HTMLMenuElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMenuElement.cpp @@ -21,8 +21,8 @@ HTMLMenuElement::~HTMLMenuElement() = default; void HTMLMenuElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMenuElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLMetaElement.cpp b/Libraries/LibWeb/HTML/HTMLMetaElement.cpp index 4d64b730b9c..c172138c822 100644 --- a/Libraries/LibWeb/HTML/HTMLMetaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMetaElement.cpp @@ -30,8 +30,8 @@ HTMLMetaElement::~HTMLMetaElement() = default; void HTMLMetaElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMetaElement); + Base::initialize(realm); } Optional HTMLMetaElement::http_equiv_state() const diff --git a/Libraries/LibWeb/HTML/HTMLMeterElement.cpp b/Libraries/LibWeb/HTML/HTMLMeterElement.cpp index 87bcd2a7cdb..36d9ba403aa 100644 --- a/Libraries/LibWeb/HTML/HTMLMeterElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLMeterElement.cpp @@ -28,8 +28,8 @@ HTMLMeterElement::~HTMLMeterElement() = default; void HTMLMeterElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLMeterElement); + Base::initialize(realm); } void HTMLMeterElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLModElement.cpp b/Libraries/LibWeb/HTML/HTMLModElement.cpp index d4b044f16f5..8fa9bc2d756 100644 --- a/Libraries/LibWeb/HTML/HTMLModElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLModElement.cpp @@ -22,8 +22,8 @@ HTMLModElement::~HTMLModElement() = default; void HTMLModElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLModElement); + Base::initialize(realm); } Optional HTMLModElement::default_role() const diff --git a/Libraries/LibWeb/HTML/HTMLOListElement.cpp b/Libraries/LibWeb/HTML/HTMLOListElement.cpp index 290ab9a3185..f32c367fc34 100644 --- a/Libraries/LibWeb/HTML/HTMLOListElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLOListElement.cpp @@ -24,8 +24,8 @@ HTMLOListElement::~HTMLOListElement() = default; void HTMLOListElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLOListElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/grouping-content.html#dom-ol-start diff --git a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp index a3071133e42..7abdd9805a9 100644 --- a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp @@ -55,8 +55,8 @@ HTMLObjectElement::~HTMLObjectElement() = default; void HTMLObjectElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLObjectElement); + Base::initialize(realm); m_document_observer = realm.create(realm, document()); diff --git a/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp b/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp index 4cd4060e371..a11f3ddbf72 100644 --- a/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp @@ -22,8 +22,8 @@ HTMLOptGroupElement::~HTMLOptGroupElement() = default; void HTMLOptGroupElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLOptGroupElement); + Base::initialize(realm); } void HTMLOptGroupElement::inserted() diff --git a/Libraries/LibWeb/HTML/HTMLOptionElement.cpp b/Libraries/LibWeb/HTML/HTMLOptionElement.cpp index 092df0c23fc..cae528236d4 100644 --- a/Libraries/LibWeb/HTML/HTMLOptionElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLOptionElement.cpp @@ -34,8 +34,8 @@ HTMLOptionElement::~HTMLOptionElement() = default; void HTMLOptionElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLOptionElement); + Base::initialize(realm); } // FIXME: This needs to be called any time a descendant's text is modified. diff --git a/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp b/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp index d129ffcf8fd..6b93a25d9cf 100644 --- a/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp +++ b/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp @@ -34,8 +34,8 @@ HTMLOptionsCollection::~HTMLOptionsCollection() = default; void HTMLOptionsCollection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLOptionsCollection); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-htmloptionscollection-length diff --git a/Libraries/LibWeb/HTML/HTMLOutputElement.cpp b/Libraries/LibWeb/HTML/HTMLOutputElement.cpp index 2d226823705..8bd23784b4e 100644 --- a/Libraries/LibWeb/HTML/HTMLOutputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLOutputElement.cpp @@ -22,8 +22,8 @@ HTMLOutputElement::~HTMLOutputElement() = default; void HTMLOutputElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLOutputElement); + Base::initialize(realm); } void HTMLOutputElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp b/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp index d30a5fdc988..d99d5919825 100644 --- a/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp @@ -23,8 +23,8 @@ HTMLParagraphElement::~HTMLParagraphElement() = default; void HTMLParagraphElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLParagraphElement); + Base::initialize(realm); } bool HTMLParagraphElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLParamElement.cpp b/Libraries/LibWeb/HTML/HTMLParamElement.cpp index 0b6c07446c9..694ccac8970 100644 --- a/Libraries/LibWeb/HTML/HTMLParamElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLParamElement.cpp @@ -21,8 +21,8 @@ HTMLParamElement::~HTMLParamElement() = default; void HTMLParamElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLParamElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLPictureElement.cpp b/Libraries/LibWeb/HTML/HTMLPictureElement.cpp index 9e1138e95d5..16b080c5eaa 100644 --- a/Libraries/LibWeb/HTML/HTMLPictureElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLPictureElement.cpp @@ -21,8 +21,8 @@ HTMLPictureElement::~HTMLPictureElement() = default; void HTMLPictureElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLPictureElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLPreElement.cpp b/Libraries/LibWeb/HTML/HTMLPreElement.cpp index 0aef62ea0e1..d60eb2a0a13 100644 --- a/Libraries/LibWeb/HTML/HTMLPreElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLPreElement.cpp @@ -24,8 +24,8 @@ HTMLPreElement::~HTMLPreElement() = default; void HTMLPreElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLPreElement); + Base::initialize(realm); } bool HTMLPreElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLProgressElement.cpp b/Libraries/LibWeb/HTML/HTMLProgressElement.cpp index 505ec74128b..9cad19badab 100644 --- a/Libraries/LibWeb/HTML/HTMLProgressElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLProgressElement.cpp @@ -31,8 +31,8 @@ HTMLProgressElement::~HTMLProgressElement() = default; void HTMLProgressElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLProgressElement); + Base::initialize(realm); } void HTMLProgressElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp b/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp index 587d13b81ac..088eda3a9d4 100644 --- a/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp @@ -23,8 +23,8 @@ HTMLQuoteElement::~HTMLQuoteElement() = default; void HTMLQuoteElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLQuoteElement); + Base::initialize(realm); } Optional HTMLQuoteElement::default_role() const diff --git a/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index bd54619984f..f5cfd450651 100644 --- a/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -37,8 +37,8 @@ HTMLScriptElement::~HTMLScriptElement() = default; void HTMLScriptElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLScriptElement); + Base::initialize(realm); } void HTMLScriptElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLSelectElement.cpp b/Libraries/LibWeb/HTML/HTMLSelectElement.cpp index 42147beb00a..b3f751d304c 100644 --- a/Libraries/LibWeb/HTML/HTMLSelectElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLSelectElement.cpp @@ -42,8 +42,8 @@ HTMLSelectElement::~HTMLSelectElement() = default; void HTMLSelectElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLSelectElement); + Base::initialize(realm); } void HTMLSelectElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLSlotElement.cpp b/Libraries/LibWeb/HTML/HTMLSlotElement.cpp index 16225903126..0d846292fd6 100644 --- a/Libraries/LibWeb/HTML/HTMLSlotElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLSlotElement.cpp @@ -24,8 +24,8 @@ HTMLSlotElement::~HTMLSlotElement() = default; void HTMLSlotElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLSlotElement); + Base::initialize(realm); } void HTMLSlotElement::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLSourceElement.cpp b/Libraries/LibWeb/HTML/HTMLSourceElement.cpp index b654b273d8a..aabd1aa5272 100644 --- a/Libraries/LibWeb/HTML/HTMLSourceElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLSourceElement.cpp @@ -23,8 +23,8 @@ HTMLSourceElement::~HTMLSourceElement() = default; void HTMLSourceElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLSourceElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/embedded-content.html#the-source-element:html-element-insertion-steps diff --git a/Libraries/LibWeb/HTML/HTMLSpanElement.cpp b/Libraries/LibWeb/HTML/HTMLSpanElement.cpp index 53fe9cff777..e158e8cc6c1 100644 --- a/Libraries/LibWeb/HTML/HTMLSpanElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLSpanElement.cpp @@ -21,8 +21,8 @@ HTMLSpanElement::~HTMLSpanElement() = default; void HTMLSpanElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLSpanElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLStyleElement.cpp b/Libraries/LibWeb/HTML/HTMLStyleElement.cpp index 2dff0051f94..a6d27d4635c 100644 --- a/Libraries/LibWeb/HTML/HTMLStyleElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLStyleElement.cpp @@ -24,8 +24,8 @@ HTMLStyleElement::~HTMLStyleElement() = default; void HTMLStyleElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLStyleElement); + Base::initialize(realm); } void HTMLStyleElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp b/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp index a4db81f0991..1c333bef71a 100644 --- a/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp @@ -23,8 +23,8 @@ HTMLTableCaptionElement::~HTMLTableCaptionElement() = default; void HTMLTableCaptionElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableCaptionElement); + Base::initialize(realm); } bool HTMLTableCaptionElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp b/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp index 7842819cd78..add8cd106b7 100644 --- a/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp @@ -33,8 +33,8 @@ HTMLTableCellElement::~HTMLTableCellElement() = default; void HTMLTableCellElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableCellElement); + Base::initialize(realm); } bool HTMLTableCellElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLTableColElement.cpp b/Libraries/LibWeb/HTML/HTMLTableColElement.cpp index 6d6cfb7f1ea..864a6f45b53 100644 --- a/Libraries/LibWeb/HTML/HTMLTableColElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableColElement.cpp @@ -24,8 +24,8 @@ HTMLTableColElement::~HTMLTableColElement() = default; void HTMLTableColElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableColElement); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/tables.html#dom-colgroup-span diff --git a/Libraries/LibWeb/HTML/HTMLTableElement.cpp b/Libraries/LibWeb/HTML/HTMLTableElement.cpp index 0673d86504c..2ed80f604b7 100644 --- a/Libraries/LibWeb/HTML/HTMLTableElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableElement.cpp @@ -37,8 +37,8 @@ HTMLTableElement::~HTMLTableElement() = default; void HTMLTableElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableElement); + Base::initialize(realm); } void HTMLTableElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp b/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp index 5a01ec24f44..a6b0554a087 100644 --- a/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp @@ -34,8 +34,8 @@ HTMLTableRowElement::~HTMLTableRowElement() = default; void HTMLTableRowElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableRowElement); + Base::initialize(realm); } bool HTMLTableRowElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp b/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp index 572ce80ad7c..61dbfef7a20 100644 --- a/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp @@ -31,8 +31,8 @@ HTMLTableSectionElement::~HTMLTableSectionElement() = default; void HTMLTableSectionElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTableSectionElement); + Base::initialize(realm); } void HTMLTableSectionElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp b/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp index d38d1e6387c..60c222b85c7 100644 --- a/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp @@ -22,8 +22,8 @@ HTMLTemplateElement::~HTMLTemplateElement() = default; void HTMLTemplateElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTemplateElement); + Base::initialize(realm); m_content = realm.create(m_document->appropriate_template_contents_owner_document()); m_content->set_host(this); diff --git a/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp index de2816c2a9a..4b0df8f316a 100644 --- a/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp @@ -60,8 +60,8 @@ void HTMLTextAreaElement::adjust_computed_style(CSS::ComputedProperties& style) void HTMLTextAreaElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTextAreaElement); + Base::initialize(realm); } void HTMLTextAreaElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLTimeElement.cpp b/Libraries/LibWeb/HTML/HTMLTimeElement.cpp index a845ac88273..8bab08430b8 100644 --- a/Libraries/LibWeb/HTML/HTMLTimeElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTimeElement.cpp @@ -19,8 +19,8 @@ HTMLTimeElement::HTMLTimeElement(DOM::Document& document, DOM::QualifiedName qua void HTMLTimeElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTimeElement); + Base::initialize(realm); } HTMLTimeElement::~HTMLTimeElement() = default; diff --git a/Libraries/LibWeb/HTML/HTMLTitleElement.cpp b/Libraries/LibWeb/HTML/HTMLTitleElement.cpp index 0cb33962c1b..cb0a313f53b 100644 --- a/Libraries/LibWeb/HTML/HTMLTitleElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTitleElement.cpp @@ -23,8 +23,8 @@ HTMLTitleElement::~HTMLTitleElement() = default; void HTMLTitleElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTitleElement); + Base::initialize(realm); } void HTMLTitleElement::children_changed(ChildrenChangedMetadata const* metadata) diff --git a/Libraries/LibWeb/HTML/HTMLTrackElement.cpp b/Libraries/LibWeb/HTML/HTMLTrackElement.cpp index 52a9735eb8c..d60d2b345d8 100644 --- a/Libraries/LibWeb/HTML/HTMLTrackElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTrackElement.cpp @@ -34,8 +34,8 @@ HTMLTrackElement::~HTMLTrackElement() = default; void HTMLTrackElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTrackElement); + Base::initialize(realm); } void HTMLTrackElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/HTMLUListElement.cpp b/Libraries/LibWeb/HTML/HTMLUListElement.cpp index f4cce3450c0..6bb2ed3007c 100644 --- a/Libraries/LibWeb/HTML/HTMLUListElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLUListElement.cpp @@ -22,8 +22,8 @@ HTMLUListElement::~HTMLUListElement() = default; void HTMLUListElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLUListElement); + Base::initialize(realm); } bool HTMLUListElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp b/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp index 0243f45e4f6..3e9e81e8c07 100644 --- a/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp @@ -21,8 +21,8 @@ HTMLUnknownElement::~HTMLUnknownElement() = default; void HTMLUnknownElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLUnknownElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/HTMLVideoElement.cpp b/Libraries/LibWeb/HTML/HTMLVideoElement.cpp index b9d2521fd88..3beb204036d 100644 --- a/Libraries/LibWeb/HTML/HTMLVideoElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLVideoElement.cpp @@ -37,8 +37,8 @@ HTMLVideoElement::~HTMLVideoElement() = default; void HTMLVideoElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLVideoElement); + Base::initialize(realm); } void HTMLVideoElement::finalize() diff --git a/Libraries/LibWeb/HTML/HashChangeEvent.cpp b/Libraries/LibWeb/HTML/HashChangeEvent.cpp index bb9d3deb971..bfdcf906b27 100644 --- a/Libraries/LibWeb/HTML/HashChangeEvent.cpp +++ b/Libraries/LibWeb/HTML/HashChangeEvent.cpp @@ -33,8 +33,8 @@ HashChangeEvent::HashChangeEvent(JS::Realm& realm, FlyString const& event_name, void HashChangeEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(HashChangeEvent); + Base::initialize(realm); } void HashChangeEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/History.cpp b/Libraries/LibWeb/HTML/History.cpp index 5defd922de1..56f617b0164 100644 --- a/Libraries/LibWeb/HTML/History.cpp +++ b/Libraries/LibWeb/HTML/History.cpp @@ -32,8 +32,8 @@ History::~History() = default; void History::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(History); + Base::initialize(realm); } void History::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/ImageBitmap.cpp b/Libraries/LibWeb/HTML/ImageBitmap.cpp index 182eea31929..6fb313c949e 100644 --- a/Libraries/LibWeb/HTML/ImageBitmap.cpp +++ b/Libraries/LibWeb/HTML/ImageBitmap.cpp @@ -24,8 +24,8 @@ ImageBitmap::ImageBitmap(JS::Realm& realm) void ImageBitmap::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ImageBitmap); + Base::initialize(realm); } void ImageBitmap::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/ImageData.cpp b/Libraries/LibWeb/HTML/ImageData.cpp index 94133a96c05..160320abc85 100644 --- a/Libraries/LibWeb/HTML/ImageData.cpp +++ b/Libraries/LibWeb/HTML/ImageData.cpp @@ -133,8 +133,8 @@ ImageData::~ImageData() = default; void ImageData::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ImageData); + Base::initialize(realm); } void ImageData::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/Location.cpp b/Libraries/LibWeb/HTML/Location.cpp index baa16bdaf34..51b898ac83d 100644 --- a/Libraries/LibWeb/HTML/Location.cpp +++ b/Libraries/LibWeb/HTML/Location.cpp @@ -41,8 +41,8 @@ void Location::visit_edges(Cell::Visitor& visitor) // https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-location-interface void Location::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Location); + Base::initialize(realm); Bindings::LocationPrototype::define_unforgeable_attributes(realm, *this); auto& vm = this->vm(); diff --git a/Libraries/LibWeb/HTML/MediaError.cpp b/Libraries/LibWeb/HTML/MediaError.cpp index 427b1312c8a..00375247239 100644 --- a/Libraries/LibWeb/HTML/MediaError.cpp +++ b/Libraries/LibWeb/HTML/MediaError.cpp @@ -22,8 +22,8 @@ MediaError::MediaError(JS::Realm& realm, Code code, String message) void MediaError::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaError); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/MessageChannel.cpp b/Libraries/LibWeb/HTML/MessageChannel.cpp index 6dbeeae70e0..9352f190167 100644 --- a/Libraries/LibWeb/HTML/MessageChannel.cpp +++ b/Libraries/LibWeb/HTML/MessageChannel.cpp @@ -43,8 +43,8 @@ void MessageChannel::visit_edges(Cell::Visitor& visitor) void MessageChannel::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MessageChannel); + Base::initialize(realm); } MessagePort* MessageChannel::port1() diff --git a/Libraries/LibWeb/HTML/MessageEvent.cpp b/Libraries/LibWeb/HTML/MessageEvent.cpp index 8cff57aa8f8..5f3e7912b04 100644 --- a/Libraries/LibWeb/HTML/MessageEvent.cpp +++ b/Libraries/LibWeb/HTML/MessageEvent.cpp @@ -43,8 +43,8 @@ MessageEvent::~MessageEvent() = default; void MessageEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MessageEvent); + Base::initialize(realm); } void MessageEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/MessagePort.cpp b/Libraries/LibWeb/HTML/MessagePort.cpp index 92eb0981d96..123dc56b4eb 100644 --- a/Libraries/LibWeb/HTML/MessagePort.cpp +++ b/Libraries/LibWeb/HTML/MessagePort.cpp @@ -58,8 +58,8 @@ void MessagePort::for_each_message_port(Function callback) void MessagePort::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MessagePort); + Base::initialize(realm); } void MessagePort::finalize() diff --git a/Libraries/LibWeb/HTML/MimeType.cpp b/Libraries/LibWeb/HTML/MimeType.cpp index 6f67a9ec995..88cc4110da7 100644 --- a/Libraries/LibWeb/HTML/MimeType.cpp +++ b/Libraries/LibWeb/HTML/MimeType.cpp @@ -24,8 +24,8 @@ MimeType::~MimeType() = default; void MimeType::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MimeType); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/system-state.html#concept-mimetype-type diff --git a/Libraries/LibWeb/HTML/MimeTypeArray.cpp b/Libraries/LibWeb/HTML/MimeTypeArray.cpp index cdb36c9e975..92fc1b7140d 100644 --- a/Libraries/LibWeb/HTML/MimeTypeArray.cpp +++ b/Libraries/LibWeb/HTML/MimeTypeArray.cpp @@ -29,8 +29,8 @@ MimeTypeArray::~MimeTypeArray() = default; void MimeTypeArray::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MimeTypeArray); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewing-support:support-named-properties-2 diff --git a/Libraries/LibWeb/HTML/NavigateEvent.cpp b/Libraries/LibWeb/HTML/NavigateEvent.cpp index f61e4dc29f6..9eda140883e 100644 --- a/Libraries/LibWeb/HTML/NavigateEvent.cpp +++ b/Libraries/LibWeb/HTML/NavigateEvent.cpp @@ -50,8 +50,8 @@ NavigateEvent::~NavigateEvent() = default; void NavigateEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NavigateEvent); + Base::initialize(realm); } void NavigateEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/Navigation.cpp b/Libraries/LibWeb/HTML/Navigation.cpp index 70686e757f8..e69c454e50e 100644 --- a/Libraries/LibWeb/HTML/Navigation.cpp +++ b/Libraries/LibWeb/HTML/Navigation.cpp @@ -76,8 +76,8 @@ Navigation::~Navigation() = default; void Navigation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Navigation); + Base::initialize(realm); } void Navigation::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp b/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp index 98bc0585c61..d7a344c522e 100644 --- a/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp +++ b/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp @@ -31,8 +31,8 @@ NavigationCurrentEntryChangeEvent::~NavigationCurrentEntryChangeEvent() = defaul void NavigationCurrentEntryChangeEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NavigationCurrentEntryChangeEvent); + Base::initialize(realm); } void NavigationCurrentEntryChangeEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/NavigationDestination.cpp b/Libraries/LibWeb/HTML/NavigationDestination.cpp index 1ecfbcd6c30..80d0a534e74 100644 --- a/Libraries/LibWeb/HTML/NavigationDestination.cpp +++ b/Libraries/LibWeb/HTML/NavigationDestination.cpp @@ -29,8 +29,8 @@ NavigationDestination::~NavigationDestination() = default; void NavigationDestination::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NavigationDestination); + Base::initialize(realm); } void NavigationDestination::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp b/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp index 986fe8c2ad0..257e520c4ba 100644 --- a/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp +++ b/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp @@ -33,8 +33,8 @@ NavigationHistoryEntry::~NavigationHistoryEntry() = default; void NavigationHistoryEntry::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NavigationHistoryEntry); + Base::initialize(realm); } void NavigationHistoryEntry::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/NavigationTransition.cpp b/Libraries/LibWeb/HTML/NavigationTransition.cpp index 90982f370df..e2bbeb06b7d 100644 --- a/Libraries/LibWeb/HTML/NavigationTransition.cpp +++ b/Libraries/LibWeb/HTML/NavigationTransition.cpp @@ -33,8 +33,8 @@ NavigationTransition::~NavigationTransition() = default; void NavigationTransition::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(NavigationTransition); + Base::initialize(realm); } void NavigationTransition::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/Navigator.cpp b/Libraries/LibWeb/HTML/Navigator.cpp index 227b6055cb1..13baee0b749 100644 --- a/Libraries/LibWeb/HTML/Navigator.cpp +++ b/Libraries/LibWeb/HTML/Navigator.cpp @@ -37,8 +37,8 @@ Navigator::~Navigator() = default; void Navigator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Navigator); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-pdfviewerenabled diff --git a/Libraries/LibWeb/HTML/PageTransitionEvent.cpp b/Libraries/LibWeb/HTML/PageTransitionEvent.cpp index dcc31e266c3..be4c5b57523 100644 --- a/Libraries/LibWeb/HTML/PageTransitionEvent.cpp +++ b/Libraries/LibWeb/HTML/PageTransitionEvent.cpp @@ -32,8 +32,8 @@ PageTransitionEvent::~PageTransitionEvent() = default; void PageTransitionEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PageTransitionEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/Plugin.cpp b/Libraries/LibWeb/HTML/Plugin.cpp index 23e76743fbb..f138753fb03 100644 --- a/Libraries/LibWeb/HTML/Plugin.cpp +++ b/Libraries/LibWeb/HTML/Plugin.cpp @@ -30,8 +30,8 @@ Plugin::~Plugin() = default; void Plugin::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Plugin); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-plugin-name diff --git a/Libraries/LibWeb/HTML/PluginArray.cpp b/Libraries/LibWeb/HTML/PluginArray.cpp index 5479bbb4582..08e9e29436f 100644 --- a/Libraries/LibWeb/HTML/PluginArray.cpp +++ b/Libraries/LibWeb/HTML/PluginArray.cpp @@ -29,8 +29,8 @@ PluginArray::~PluginArray() = default; void PluginArray::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PluginArray); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-pluginarray-refresh diff --git a/Libraries/LibWeb/HTML/PopStateEvent.cpp b/Libraries/LibWeb/HTML/PopStateEvent.cpp index 4d5ade2d067..b62e2c80aa7 100644 --- a/Libraries/LibWeb/HTML/PopStateEvent.cpp +++ b/Libraries/LibWeb/HTML/PopStateEvent.cpp @@ -32,8 +32,8 @@ PopStateEvent::PopStateEvent(JS::Realm& realm, FlyString const& event_name, PopS void PopStateEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PopStateEvent); + Base::initialize(realm); } void PopStateEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp b/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp index a50d1195345..ae3cc5f5112 100644 --- a/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp +++ b/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp @@ -40,8 +40,8 @@ void PromiseRejectionEvent::visit_edges(Cell::Visitor& visitor) void PromiseRejectionEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PromiseRejectionEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/RadioNodeList.cpp b/Libraries/LibWeb/HTML/RadioNodeList.cpp index 23f16f855b8..4c8293c266d 100644 --- a/Libraries/LibWeb/HTML/RadioNodeList.cpp +++ b/Libraries/LibWeb/HTML/RadioNodeList.cpp @@ -28,8 +28,8 @@ RadioNodeList::~RadioNodeList() = default; void RadioNodeList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(RadioNodeList); + Base::initialize(realm); } static HTMLInputElement const* radio_button(DOM::Node const& node) diff --git a/Libraries/LibWeb/HTML/Storage.cpp b/Libraries/LibWeb/HTML/Storage.cpp index d2bf75173b6..0665ee235ba 100644 --- a/Libraries/LibWeb/HTML/Storage.cpp +++ b/Libraries/LibWeb/HTML/Storage.cpp @@ -56,8 +56,8 @@ Storage::~Storage() = default; void Storage::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Storage); + Base::initialize(realm); } void Storage::finalize() diff --git a/Libraries/LibWeb/HTML/StorageEvent.cpp b/Libraries/LibWeb/HTML/StorageEvent.cpp index d0745b82fe8..d456d199dcb 100644 --- a/Libraries/LibWeb/HTML/StorageEvent.cpp +++ b/Libraries/LibWeb/HTML/StorageEvent.cpp @@ -57,8 +57,8 @@ StorageEvent::StorageEvent(JS::Realm& realm, FlyString const& event_name, Storag void StorageEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(StorageEvent); + Base::initialize(realm); } void StorageEvent::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/SubmitEvent.cpp b/Libraries/LibWeb/HTML/SubmitEvent.cpp index 097c38f6a94..143ddb773cf 100644 --- a/Libraries/LibWeb/HTML/SubmitEvent.cpp +++ b/Libraries/LibWeb/HTML/SubmitEvent.cpp @@ -32,8 +32,8 @@ SubmitEvent::~SubmitEvent() = default; void SubmitEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SubmitEvent); + Base::initialize(realm); } void SubmitEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/TextMetrics.cpp b/Libraries/LibWeb/HTML/TextMetrics.cpp index 135e37ef2d8..ba561e93c1b 100644 --- a/Libraries/LibWeb/HTML/TextMetrics.cpp +++ b/Libraries/LibWeb/HTML/TextMetrics.cpp @@ -27,8 +27,8 @@ TextMetrics::~TextMetrics() = default; void TextMetrics::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextMetrics); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/TextTrack.cpp b/Libraries/LibWeb/HTML/TextTrack.cpp index eb7736c7a9d..8ec2df5eeee 100644 --- a/Libraries/LibWeb/HTML/TextTrack.cpp +++ b/Libraries/LibWeb/HTML/TextTrack.cpp @@ -27,8 +27,8 @@ TextTrack::~TextTrack() = default; void TextTrack::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextTrack); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-kind diff --git a/Libraries/LibWeb/HTML/TextTrackCue.cpp b/Libraries/LibWeb/HTML/TextTrackCue.cpp index 8b3c901a3f0..70dd59ca666 100644 --- a/Libraries/LibWeb/HTML/TextTrackCue.cpp +++ b/Libraries/LibWeb/HTML/TextTrackCue.cpp @@ -25,8 +25,8 @@ TextTrackCue::~TextTrackCue() = default; void TextTrackCue::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextTrackCue); + Base::initialize(realm); } void TextTrackCue::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/TextTrackCueList.cpp b/Libraries/LibWeb/HTML/TextTrackCueList.cpp index a1acea2b076..d6141c22f85 100644 --- a/Libraries/LibWeb/HTML/TextTrackCueList.cpp +++ b/Libraries/LibWeb/HTML/TextTrackCueList.cpp @@ -23,8 +23,8 @@ TextTrackCueList::~TextTrackCueList() = default; void TextTrackCueList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextTrackCueList); + Base::initialize(realm); } void TextTrackCueList::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/TextTrackList.cpp b/Libraries/LibWeb/HTML/TextTrackList.cpp index b211e04370c..cccde80f95e 100644 --- a/Libraries/LibWeb/HTML/TextTrackList.cpp +++ b/Libraries/LibWeb/HTML/TextTrackList.cpp @@ -23,8 +23,8 @@ TextTrackList::~TextTrackList() = default; void TextTrackList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextTrackList); + Base::initialize(realm); } void TextTrackList::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/TimeRanges.cpp b/Libraries/LibWeb/HTML/TimeRanges.cpp index 56ce6d4251f..f491d56e6fb 100644 --- a/Libraries/LibWeb/HTML/TimeRanges.cpp +++ b/Libraries/LibWeb/HTML/TimeRanges.cpp @@ -20,8 +20,8 @@ TimeRanges::TimeRanges(JS::Realm& realm) void TimeRanges::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TimeRanges); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-length diff --git a/Libraries/LibWeb/HTML/ToggleEvent.cpp b/Libraries/LibWeb/HTML/ToggleEvent.cpp index 89ea363ae31..890bc849568 100644 --- a/Libraries/LibWeb/HTML/ToggleEvent.cpp +++ b/Libraries/LibWeb/HTML/ToggleEvent.cpp @@ -31,8 +31,8 @@ ToggleEvent::ToggleEvent(JS::Realm& realm, FlyString const& event_name, ToggleEv void ToggleEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ToggleEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/HTML/TrackEvent.cpp b/Libraries/LibWeb/HTML/TrackEvent.cpp index fe3ba0462d1..2e4f42b4c49 100644 --- a/Libraries/LibWeb/HTML/TrackEvent.cpp +++ b/Libraries/LibWeb/HTML/TrackEvent.cpp @@ -30,8 +30,8 @@ TrackEvent::TrackEvent(JS::Realm& realm, FlyString const& event_name, TrackEvent void TrackEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TrackEvent); + Base::initialize(realm); } Variant, GC::Root, GC::Root> TrackEvent::track() const diff --git a/Libraries/LibWeb/HTML/UserActivation.cpp b/Libraries/LibWeb/HTML/UserActivation.cpp index 6f96a6bf350..c39792436f7 100644 --- a/Libraries/LibWeb/HTML/UserActivation.cpp +++ b/Libraries/LibWeb/HTML/UserActivation.cpp @@ -25,8 +25,8 @@ UserActivation::UserActivation(JS::Realm& realm) void UserActivation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(UserActivation); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/interaction.html#dom-useractivation-hasbeenactive diff --git a/Libraries/LibWeb/HTML/ValidityState.cpp b/Libraries/LibWeb/HTML/ValidityState.cpp index bffcad4098d..cb6cf3e0272 100644 --- a/Libraries/LibWeb/HTML/ValidityState.cpp +++ b/Libraries/LibWeb/HTML/ValidityState.cpp @@ -26,8 +26,8 @@ ValidityState::ValidityState(JS::Realm& realm, FormAssociatedElement const& cont void ValidityState::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ValidityState); + Base::initialize(realm); } void ValidityState::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/VideoTrack.cpp b/Libraries/LibWeb/HTML/VideoTrack.cpp index cd128ee0555..b54ce1dd858 100644 --- a/Libraries/LibWeb/HTML/VideoTrack.cpp +++ b/Libraries/LibWeb/HTML/VideoTrack.cpp @@ -74,8 +74,8 @@ VideoTrack::~VideoTrack() void VideoTrack::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(VideoTrack); + Base::initialize(realm); auto id = s_video_track_id_allocator.allocate(); m_id = String::number(id); diff --git a/Libraries/LibWeb/HTML/VideoTrackList.cpp b/Libraries/LibWeb/HTML/VideoTrackList.cpp index e39b5f22dc2..b99fdb4c638 100644 --- a/Libraries/LibWeb/HTML/VideoTrackList.cpp +++ b/Libraries/LibWeb/HTML/VideoTrackList.cpp @@ -22,8 +22,8 @@ VideoTrackList::VideoTrackList(JS::Realm& realm) void VideoTrackList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(VideoTrackList); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/media.html#dom-tracklist-item diff --git a/Libraries/LibWeb/HTML/Worker.cpp b/Libraries/LibWeb/HTML/Worker.cpp index 568cb10b514..457c066662d 100644 --- a/Libraries/LibWeb/HTML/Worker.cpp +++ b/Libraries/LibWeb/HTML/Worker.cpp @@ -27,8 +27,8 @@ Worker::Worker(String const& script_url, WorkerOptions const& options, DOM::Docu void Worker::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Worker); + Base::initialize(realm); } void Worker::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/WorkerLocation.cpp b/Libraries/LibWeb/HTML/WorkerLocation.cpp index 3947a2ba117..73e3479e368 100644 --- a/Libraries/LibWeb/HTML/WorkerLocation.cpp +++ b/Libraries/LibWeb/HTML/WorkerLocation.cpp @@ -131,8 +131,8 @@ WorkerLocation::~WorkerLocation() = default; void WorkerLocation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WorkerLocation); + Base::initialize(realm); } void WorkerLocation::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/WorkerNavigator.cpp b/Libraries/LibWeb/HTML/WorkerNavigator.cpp index 188b61ae072..d79a4593b04 100644 --- a/Libraries/LibWeb/HTML/WorkerNavigator.cpp +++ b/Libraries/LibWeb/HTML/WorkerNavigator.cpp @@ -29,8 +29,8 @@ WorkerNavigator::~WorkerNavigator() = default; void WorkerNavigator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WorkerNavigator); + Base::initialize(realm); } void WorkerNavigator::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/HTML/XMLSerializer.cpp b/Libraries/LibWeb/HTML/XMLSerializer.cpp index 6cb9546aa00..b702a83a055 100644 --- a/Libraries/LibWeb/HTML/XMLSerializer.cpp +++ b/Libraries/LibWeb/HTML/XMLSerializer.cpp @@ -40,8 +40,8 @@ XMLSerializer::~XMLSerializer() = default; void XMLSerializer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLSerializer); + Base::initialize(realm); } // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-xmlserializer-serializetostring diff --git a/Libraries/LibWeb/HighResolutionTime/Performance.cpp b/Libraries/LibWeb/HighResolutionTime/Performance.cpp index 7ab3df295cf..cf1ad5bd432 100644 --- a/Libraries/LibWeb/HighResolutionTime/Performance.cpp +++ b/Libraries/LibWeb/HighResolutionTime/Performance.cpp @@ -32,8 +32,8 @@ Performance::~Performance() = default; void Performance::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Performance); + Base::initialize(realm); } void Performance::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/IndexedDB/IDBCursor.cpp b/Libraries/LibWeb/IndexedDB/IDBCursor.cpp index f00e94714f7..7cd586a4790 100644 --- a/Libraries/LibWeb/IndexedDB/IDBCursor.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBCursor.cpp @@ -27,8 +27,8 @@ GC::Ref IDBCursor::create(JS::Realm& realm) void IDBCursor::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBCursor); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/IndexedDB/IDBDatabase.cpp b/Libraries/LibWeb/IndexedDB/IDBDatabase.cpp index 2ff917b6179..3194648286b 100644 --- a/Libraries/LibWeb/IndexedDB/IDBDatabase.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBDatabase.cpp @@ -35,8 +35,8 @@ GC::Ref IDBDatabase::create(JS::Realm& realm, Database& db) void IDBDatabase::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBDatabase); + Base::initialize(realm); } void IDBDatabase::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/IndexedDB/IDBFactory.cpp b/Libraries/LibWeb/IndexedDB/IDBFactory.cpp index b70e404dc9f..6897c86001a 100644 --- a/Libraries/LibWeb/IndexedDB/IDBFactory.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBFactory.cpp @@ -34,8 +34,8 @@ IDBFactory::~IDBFactory() = default; void IDBFactory::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBFactory); + Base::initialize(realm); } // https://w3c.github.io/IndexedDB/#dom-idbfactory-open diff --git a/Libraries/LibWeb/IndexedDB/IDBIndex.cpp b/Libraries/LibWeb/IndexedDB/IDBIndex.cpp index 86cb1b9be33..c085b8afb15 100644 --- a/Libraries/LibWeb/IndexedDB/IDBIndex.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBIndex.cpp @@ -31,8 +31,8 @@ GC::Ref IDBIndex::create(JS::Realm& realm, GC::Ref index, GC::R void IDBIndex::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBIndex); + Base::initialize(realm); } void IDBIndex::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp b/Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp index 86182dd0c6a..3f1337d8c10 100644 --- a/Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp @@ -33,8 +33,8 @@ GC::Ref IDBKeyRange::create(JS::Realm& realm, GC::Ptr lower_bo void IDBKeyRange::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBKeyRange); + Base::initialize(realm); } void IDBKeyRange::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp index aed485032f7..6ff9b13a346 100644 --- a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp @@ -33,8 +33,8 @@ GC::Ref IDBObjectStore::create(JS::Realm& realm, GC::Ref IDBOpenDBRequest::create(JS::Realm& realm) diff --git a/Libraries/LibWeb/IndexedDB/IDBRequest.cpp b/Libraries/LibWeb/IndexedDB/IDBRequest.cpp index 25bb6febff2..a3187224de3 100644 --- a/Libraries/LibWeb/IndexedDB/IDBRequest.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBRequest.cpp @@ -27,8 +27,8 @@ IDBRequest::IDBRequest(JS::Realm& realm, IDBRequestSource source) void IDBRequest::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBRequest); + Base::initialize(realm); } GC::Ref IDBRequest::create(JS::Realm& realm, IDBRequestSource source) diff --git a/Libraries/LibWeb/IndexedDB/IDBTransaction.cpp b/Libraries/LibWeb/IndexedDB/IDBTransaction.cpp index 6dc8ffcfccf..4224f334e05 100644 --- a/Libraries/LibWeb/IndexedDB/IDBTransaction.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBTransaction.cpp @@ -35,8 +35,8 @@ GC::Ref IDBTransaction::create(JS::Realm& realm, GC::Ref MathMLElement::default_role() const diff --git a/Libraries/LibWeb/MediaCapabilitiesAPI/MediaCapabilities.cpp b/Libraries/LibWeb/MediaCapabilitiesAPI/MediaCapabilities.cpp index e229d4e3bee..076a52ee154 100644 --- a/Libraries/LibWeb/MediaCapabilitiesAPI/MediaCapabilities.cpp +++ b/Libraries/LibWeb/MediaCapabilitiesAPI/MediaCapabilities.cpp @@ -123,8 +123,8 @@ MediaCapabilities::MediaCapabilities(JS::Realm& realm) void MediaCapabilities::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaCapabilities); + Base::initialize(realm); } // https://w3c.github.io/media-capabilities/#queue-a-media-capabilities-task diff --git a/Libraries/LibWeb/MediaSourceExtensions/BufferedChangeEvent.cpp b/Libraries/LibWeb/MediaSourceExtensions/BufferedChangeEvent.cpp index 529c178a757..808293c2255 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/BufferedChangeEvent.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/BufferedChangeEvent.cpp @@ -26,8 +26,8 @@ BufferedChangeEvent::~BufferedChangeEvent() = default; void BufferedChangeEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BufferedChangeEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/MediaSourceExtensions/ManagedMediaSource.cpp b/Libraries/LibWeb/MediaSourceExtensions/ManagedMediaSource.cpp index 47fed343732..7cfb4e35feb 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/ManagedMediaSource.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/ManagedMediaSource.cpp @@ -27,8 +27,8 @@ ManagedMediaSource::~ManagedMediaSource() = default; void ManagedMediaSource::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ManagedMediaSource); + Base::initialize(realm); } // https://w3c.github.io/media-source/#dom-managedmediasource-onstartstreaming diff --git a/Libraries/LibWeb/MediaSourceExtensions/ManagedSourceBuffer.cpp b/Libraries/LibWeb/MediaSourceExtensions/ManagedSourceBuffer.cpp index 4a57e0bcdcf..182dd1d2b1b 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/ManagedSourceBuffer.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/ManagedSourceBuffer.cpp @@ -22,8 +22,8 @@ ManagedSourceBuffer::~ManagedSourceBuffer() = default; void ManagedSourceBuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ManagedSourceBuffer); + Base::initialize(realm); } // https://w3c.github.io/media-source/#dom-managedsourcebuffer-onbufferedchange diff --git a/Libraries/LibWeb/MediaSourceExtensions/MediaSource.cpp b/Libraries/LibWeb/MediaSourceExtensions/MediaSource.cpp index 56f66cfbfd9..82c6e957356 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/MediaSource.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/MediaSource.cpp @@ -28,8 +28,8 @@ MediaSource::~MediaSource() = default; void MediaSource::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaSource); + Base::initialize(realm); } // https://w3c.github.io/media-source/#dom-mediasource-onsourceopen diff --git a/Libraries/LibWeb/MediaSourceExtensions/MediaSourceHandle.cpp b/Libraries/LibWeb/MediaSourceExtensions/MediaSourceHandle.cpp index 0400615699e..6d5dba77709 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/MediaSourceHandle.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/MediaSourceHandle.cpp @@ -21,8 +21,8 @@ MediaSourceHandle::~MediaSourceHandle() = default; void MediaSourceHandle::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaSourceHandle); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/MediaSourceExtensions/SourceBuffer.cpp b/Libraries/LibWeb/MediaSourceExtensions/SourceBuffer.cpp index 591f4075354..1d91c13d8b3 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/SourceBuffer.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/SourceBuffer.cpp @@ -22,8 +22,8 @@ SourceBuffer::~SourceBuffer() = default; void SourceBuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SourceBuffer); + Base::initialize(realm); } // https://w3c.github.io/media-source/#dom-sourcebuffer-onupdatestart diff --git a/Libraries/LibWeb/MediaSourceExtensions/SourceBufferList.cpp b/Libraries/LibWeb/MediaSourceExtensions/SourceBufferList.cpp index 35e9d909b34..3116ee14cfc 100644 --- a/Libraries/LibWeb/MediaSourceExtensions/SourceBufferList.cpp +++ b/Libraries/LibWeb/MediaSourceExtensions/SourceBufferList.cpp @@ -22,8 +22,8 @@ SourceBufferList::~SourceBufferList() = default; void SourceBufferList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SourceBufferList); + Base::initialize(realm); } // https://w3c.github.io/media-source/#dom-sourcebufferlist-onaddsourcebuffer diff --git a/Libraries/LibWeb/NavigationTiming/PerformanceNavigation.cpp b/Libraries/LibWeb/NavigationTiming/PerformanceNavigation.cpp index fd3cef4379f..f415bc4a8f0 100644 --- a/Libraries/LibWeb/NavigationTiming/PerformanceNavigation.cpp +++ b/Libraries/LibWeb/NavigationTiming/PerformanceNavigation.cpp @@ -22,8 +22,8 @@ PerformanceNavigation::~PerformanceNavigation() = default; void PerformanceNavigation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceNavigation); + Base::initialize(realm); } u16 PerformanceNavigation::type() const diff --git a/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp b/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp index d3ba7753132..396a9bbf975 100644 --- a/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp +++ b/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp @@ -21,8 +21,8 @@ PerformanceTiming::~PerformanceTiming() = default; void PerformanceTiming::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceTiming); + Base::initialize(realm); } DOM::DocumentLoadTimingInfo const& PerformanceTiming::document_load_timing_info(JS::Object const& global_object) const diff --git a/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp b/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp index cd89a856937..f7dad9d2aaa 100644 --- a/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp +++ b/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp @@ -22,8 +22,8 @@ PerformanceEntry::~PerformanceEntry() = default; void PerformanceEntry::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceEntry); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp b/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp index 20a56b866fd..e8a1c9286b3 100644 --- a/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp +++ b/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp @@ -33,8 +33,8 @@ PerformanceObserver::~PerformanceObserver() = default; void PerformanceObserver::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceObserver); + Base::initialize(realm); } void PerformanceObserver::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp b/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp index f6695084bf8..9b5a304ddcb 100644 --- a/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp +++ b/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp @@ -25,8 +25,8 @@ PerformanceObserverEntryList::~PerformanceObserverEntryList() = default; void PerformanceObserverEntryList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceObserverEntryList); + Base::initialize(realm); } void PerformanceObserverEntryList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp b/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp index 1b198bd39b8..4dc86e8e459 100644 --- a/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp +++ b/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp @@ -28,8 +28,8 @@ IdleDeadline::IdleDeadline(JS::Realm& realm, bool did_timeout) void IdleDeadline::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IdleDeadline); + Base::initialize(realm); } IdleDeadline::~IdleDeadline() = default; diff --git a/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp b/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp index 2b5e2bfad10..007fd94de8f 100644 --- a/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp +++ b/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp @@ -36,8 +36,8 @@ ResizeObserver::~ResizeObserver() = default; void ResizeObserver::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ResizeObserver); + Base::initialize(realm); } void ResizeObserver::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp b/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp index 2edba71a368..2c978628d00 100644 --- a/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp +++ b/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp @@ -60,8 +60,8 @@ WebIDL::ExceptionOr> ResizeObserverEntry::create_an void ResizeObserverEntry::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ResizeObserverEntry); + Base::initialize(realm); } void ResizeObserverEntry::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/ResizeObserver/ResizeObserverSize.cpp b/Libraries/LibWeb/ResizeObserver/ResizeObserverSize.cpp index cefb64bc2f0..4c55ea71037 100644 --- a/Libraries/LibWeb/ResizeObserver/ResizeObserverSize.cpp +++ b/Libraries/LibWeb/ResizeObserver/ResizeObserverSize.cpp @@ -16,8 +16,8 @@ GC_DEFINE_ALLOCATOR(ResizeObserverSize); void ResizeObserverSize::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ResizeObserverSize); + Base::initialize(realm); } // https://drafts.csswg.org/resize-observer-1/#calculate-box-size diff --git a/Libraries/LibWeb/ResourceTiming/PerformanceResourceTiming.cpp b/Libraries/LibWeb/ResourceTiming/PerformanceResourceTiming.cpp index bca0239883b..09d38f3d069 100644 --- a/Libraries/LibWeb/ResourceTiming/PerformanceResourceTiming.cpp +++ b/Libraries/LibWeb/ResourceTiming/PerformanceResourceTiming.cpp @@ -33,8 +33,8 @@ FlyString const& PerformanceResourceTiming::entry_type() const void PerformanceResourceTiming::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceResourceTiming); + Base::initialize(realm); } void PerformanceResourceTiming::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGAElement.cpp b/Libraries/LibWeb/SVG/SVGAElement.cpp index d69fa0cc1ee..6fdfe9b3324 100644 --- a/Libraries/LibWeb/SVG/SVGAElement.cpp +++ b/Libraries/LibWeb/SVG/SVGAElement.cpp @@ -23,8 +23,8 @@ SVGAElement::~SVGAElement() = default; void SVGAElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAElement); + Base::initialize(realm); } void SVGAElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGAnimatedEnumeration.cpp b/Libraries/LibWeb/SVG/SVGAnimatedEnumeration.cpp index 141198436a8..cc4310cef39 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedEnumeration.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedEnumeration.cpp @@ -49,8 +49,8 @@ WebIDL::ExceptionOr SVGAnimatedEnumeration::set_base_val(u16 base_val) void SVGAnimatedEnumeration::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedEnumeration); + Base::initialize(realm); } // https://svgwg.org/svg2-draft/types.html#__svg__SVGAnimatedEnumeration__baseVal diff --git a/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp b/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp index 2f8e2487264..0eacbbddd0d 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp @@ -30,8 +30,8 @@ SVGAnimatedLength::~SVGAnimatedLength() = default; void SVGAnimatedLength::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedLength); + Base::initialize(realm); } void SVGAnimatedLength::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp b/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp index 8fff1c7a714..f619f83be96 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp @@ -28,8 +28,8 @@ SVGAnimatedNumber::~SVGAnimatedNumber() = default; void SVGAnimatedNumber::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedNumber); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/SVG/SVGAnimatedRect.cpp b/Libraries/LibWeb/SVG/SVGAnimatedRect.cpp index a3396d9a5bb..9300d195863 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedRect.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedRect.cpp @@ -22,8 +22,8 @@ SVGAnimatedRect::~SVGAnimatedRect() = default; void SVGAnimatedRect::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedRect); + Base::initialize(realm); m_base_val = Geometry::DOMRect::create(realm, { 0, 0, 0, 0 }); m_anim_val = Geometry::DOMRect::create(realm, { 0, 0, 0, 0 }); } diff --git a/Libraries/LibWeb/SVG/SVGAnimatedString.cpp b/Libraries/LibWeb/SVG/SVGAnimatedString.cpp index d4e64a11919..3ed291704e2 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedString.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedString.cpp @@ -33,8 +33,8 @@ SVGAnimatedString::~SVGAnimatedString() = default; void SVGAnimatedString::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedString); + Base::initialize(realm); } void SVGAnimatedString::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGAnimatedTransformList.cpp b/Libraries/LibWeb/SVG/SVGAnimatedTransformList.cpp index 356e141c1c8..c3751d71734 100644 --- a/Libraries/LibWeb/SVG/SVGAnimatedTransformList.cpp +++ b/Libraries/LibWeb/SVG/SVGAnimatedTransformList.cpp @@ -28,8 +28,8 @@ SVGAnimatedTransformList::~SVGAnimatedTransformList() = default; void SVGAnimatedTransformList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedTransformList); + Base::initialize(realm); } void SVGAnimatedTransformList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGCircleElement.cpp b/Libraries/LibWeb/SVG/SVGCircleElement.cpp index ee85ae3500f..e31a3efc2be 100644 --- a/Libraries/LibWeb/SVG/SVGCircleElement.cpp +++ b/Libraries/LibWeb/SVG/SVGCircleElement.cpp @@ -25,8 +25,8 @@ SVGCircleElement::SVGCircleElement(DOM::Document& document, DOM::QualifiedName q void SVGCircleElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGCircleElement); + Base::initialize(realm); } bool SVGCircleElement::is_presentational_hint(FlyString const& name) const diff --git a/Libraries/LibWeb/SVG/SVGClipPathElement.cpp b/Libraries/LibWeb/SVG/SVGClipPathElement.cpp index 3f7ccf23b7d..af31c1960d4 100644 --- a/Libraries/LibWeb/SVG/SVGClipPathElement.cpp +++ b/Libraries/LibWeb/SVG/SVGClipPathElement.cpp @@ -24,8 +24,8 @@ SVGClipPathElement::~SVGClipPathElement() void SVGClipPathElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGClipPathElement); + Base::initialize(realm); } void SVGClipPathElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGDefsElement.cpp b/Libraries/LibWeb/SVG/SVGDefsElement.cpp index 3aacff4cb52..0f2a1fa0523 100644 --- a/Libraries/LibWeb/SVG/SVGDefsElement.cpp +++ b/Libraries/LibWeb/SVG/SVGDefsElement.cpp @@ -24,8 +24,8 @@ SVGDefsElement::~SVGDefsElement() void SVGDefsElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGDefsElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/SVG/SVGDescElement.cpp b/Libraries/LibWeb/SVG/SVGDescElement.cpp index bdba46490eb..b5f0bc05b83 100644 --- a/Libraries/LibWeb/SVG/SVGDescElement.cpp +++ b/Libraries/LibWeb/SVG/SVGDescElement.cpp @@ -21,8 +21,8 @@ SVGDescElement::SVGDescElement(DOM::Document& document, DOM::QualifiedName quali void SVGDescElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGDescElement); + Base::initialize(realm); } GC::Ptr SVGDescElement::create_layout_node(GC::Ref) diff --git a/Libraries/LibWeb/SVG/SVGElement.cpp b/Libraries/LibWeb/SVG/SVGElement.cpp index f7a8d26ad25..c4582a8d134 100644 --- a/Libraries/LibWeb/SVG/SVGElement.cpp +++ b/Libraries/LibWeb/SVG/SVGElement.cpp @@ -26,8 +26,8 @@ SVGElement::SVGElement(DOM::Document& document, DOM::QualifiedName qualified_nam void SVGElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGElement); + Base::initialize(realm); } bool SVGElement::should_include_in_accessibility_tree() const diff --git a/Libraries/LibWeb/SVG/SVGEllipseElement.cpp b/Libraries/LibWeb/SVG/SVGEllipseElement.cpp index 9cc75806648..6846a7ef45e 100644 --- a/Libraries/LibWeb/SVG/SVGEllipseElement.cpp +++ b/Libraries/LibWeb/SVG/SVGEllipseElement.cpp @@ -22,8 +22,8 @@ SVGEllipseElement::SVGEllipseElement(DOM::Document& document, DOM::QualifiedName void SVGEllipseElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGEllipseElement); + Base::initialize(realm); } void SVGEllipseElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGFilterElement.cpp b/Libraries/LibWeb/SVG/SVGFilterElement.cpp index 7ef6dbf2d56..662d8cb89ce 100644 --- a/Libraries/LibWeb/SVG/SVGFilterElement.cpp +++ b/Libraries/LibWeb/SVG/SVGFilterElement.cpp @@ -19,8 +19,8 @@ SVGFilterElement::SVGFilterElement(DOM::Document& document, DOM::QualifiedName q void SVGFilterElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGFilterElement); + Base::initialize(realm); } void SVGFilterElement::apply_presentational_hints(GC::Ref cascaded_properties) const diff --git a/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp b/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp index 2d84023be5e..400035f5a87 100644 --- a/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp +++ b/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp @@ -28,8 +28,8 @@ SVGForeignObjectElement::~SVGForeignObjectElement() = default; void SVGForeignObjectElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGForeignObjectElement); + Base::initialize(realm); // FIXME: These never actually get updated! m_x = SVGAnimatedLength::create(realm, SVGLength::create(realm, 0, 0), SVGLength::create(realm, 0, 0)); diff --git a/Libraries/LibWeb/SVG/SVGGElement.cpp b/Libraries/LibWeb/SVG/SVGGElement.cpp index 8e634caa1fc..ca71de4035a 100644 --- a/Libraries/LibWeb/SVG/SVGGElement.cpp +++ b/Libraries/LibWeb/SVG/SVGGElement.cpp @@ -22,8 +22,8 @@ SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_n void SVGGElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGElement); + Base::initialize(realm); } GC::Ptr SVGGElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/SVG/SVGGeometryElement.cpp b/Libraries/LibWeb/SVG/SVGGeometryElement.cpp index 3f5e831801b..e546e032aed 100644 --- a/Libraries/LibWeb/SVG/SVGGeometryElement.cpp +++ b/Libraries/LibWeb/SVG/SVGGeometryElement.cpp @@ -18,8 +18,8 @@ SVGGeometryElement::SVGGeometryElement(DOM::Document& document, DOM::QualifiedNa void SVGGeometryElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGeometryElement); + Base::initialize(realm); } GC::Ptr SVGGeometryElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/SVG/SVGGradientElement.cpp b/Libraries/LibWeb/SVG/SVGGradientElement.cpp index 47a365ab26c..fe862012307 100644 --- a/Libraries/LibWeb/SVG/SVGGradientElement.cpp +++ b/Libraries/LibWeb/SVG/SVGGradientElement.cpp @@ -150,8 +150,8 @@ GC::Ptr SVGGradientElement::linked_gradient(HashTable< void SVGGradientElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGradientElement); + Base::initialize(realm); } void SVGGradientElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp b/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp index 47ed951d047..218649d0d8e 100644 --- a/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp +++ b/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp @@ -33,8 +33,8 @@ SVGGraphicsElement::SVGGraphicsElement(DOM::Document& document, DOM::QualifiedNa void SVGGraphicsElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGraphicsElement); + Base::initialize(realm); } void SVGGraphicsElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGImageElement.cpp b/Libraries/LibWeb/SVG/SVGImageElement.cpp index df84862c28a..30befe872e7 100644 --- a/Libraries/LibWeb/SVG/SVGImageElement.cpp +++ b/Libraries/LibWeb/SVG/SVGImageElement.cpp @@ -28,8 +28,8 @@ SVGImageElement::SVGImageElement(DOM::Document& document, DOM::QualifiedName qua void SVGImageElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGImageElement); + Base::initialize(realm); } void SVGImageElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGLength.cpp b/Libraries/LibWeb/SVG/SVGLength.cpp index 3f1b5682186..ffd5b4dd03a 100644 --- a/Libraries/LibWeb/SVG/SVGLength.cpp +++ b/Libraries/LibWeb/SVG/SVGLength.cpp @@ -61,8 +61,8 @@ SVGLength::SVGLength(JS::Realm& realm, u8 unit_type, float value) void SVGLength::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGLength); + Base::initialize(realm); } SVGLength::~SVGLength() = default; diff --git a/Libraries/LibWeb/SVG/SVGLineElement.cpp b/Libraries/LibWeb/SVG/SVGLineElement.cpp index dde1b788962..fc2370c6b3a 100644 --- a/Libraries/LibWeb/SVG/SVGLineElement.cpp +++ b/Libraries/LibWeb/SVG/SVGLineElement.cpp @@ -22,8 +22,8 @@ SVGLineElement::SVGLineElement(DOM::Document& document, DOM::QualifiedName quali void SVGLineElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGLineElement); + Base::initialize(realm); } void SVGLineElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp b/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp index ab62cadb06a..92845f22d8b 100644 --- a/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp +++ b/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp @@ -24,8 +24,8 @@ SVGLinearGradientElement::SVGLinearGradientElement(DOM::Document& document, DOM: void SVGLinearGradientElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGLinearGradientElement); + Base::initialize(realm); } void SVGLinearGradientElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGMaskElement.cpp b/Libraries/LibWeb/SVG/SVGMaskElement.cpp index 1743efbd7d3..80e8f88df19 100644 --- a/Libraries/LibWeb/SVG/SVGMaskElement.cpp +++ b/Libraries/LibWeb/SVG/SVGMaskElement.cpp @@ -23,8 +23,8 @@ SVGMaskElement::~SVGMaskElement() = default; void SVGMaskElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGMaskElement); + Base::initialize(realm); } GC::Ptr SVGMaskElement::create_layout_node(GC::Ref) diff --git a/Libraries/LibWeb/SVG/SVGMetadataElement.cpp b/Libraries/LibWeb/SVG/SVGMetadataElement.cpp index 86782b22033..29354f9b998 100644 --- a/Libraries/LibWeb/SVG/SVGMetadataElement.cpp +++ b/Libraries/LibWeb/SVG/SVGMetadataElement.cpp @@ -21,8 +21,8 @@ SVGMetadataElement::SVGMetadataElement(DOM::Document& document, DOM::QualifiedNa void SVGMetadataElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGMetadataElement); + Base::initialize(realm); } GC::Ptr SVGMetadataElement::create_layout_node(GC::Ref) diff --git a/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Libraries/LibWeb/SVG/SVGPathElement.cpp index db917888ed7..54fe0f6f446 100644 --- a/Libraries/LibWeb/SVG/SVGPathElement.cpp +++ b/Libraries/LibWeb/SVG/SVGPathElement.cpp @@ -92,8 +92,8 @@ SVGPathElement::SVGPathElement(DOM::Document& document, DOM::QualifiedName quali void SVGPathElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGPathElement); + Base::initialize(realm); } void SVGPathElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGPolygonElement.cpp b/Libraries/LibWeb/SVG/SVGPolygonElement.cpp index 871a6c0bae1..ed2042935b7 100644 --- a/Libraries/LibWeb/SVG/SVGPolygonElement.cpp +++ b/Libraries/LibWeb/SVG/SVGPolygonElement.cpp @@ -22,8 +22,8 @@ SVGPolygonElement::SVGPolygonElement(DOM::Document& document, DOM::QualifiedName void SVGPolygonElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGPolygonElement); + Base::initialize(realm); } void SVGPolygonElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGPolylineElement.cpp b/Libraries/LibWeb/SVG/SVGPolylineElement.cpp index b1fb4eb1c4f..7ea71feec56 100644 --- a/Libraries/LibWeb/SVG/SVGPolylineElement.cpp +++ b/Libraries/LibWeb/SVG/SVGPolylineElement.cpp @@ -22,8 +22,8 @@ SVGPolylineElement::SVGPolylineElement(DOM::Document& document, DOM::QualifiedNa void SVGPolylineElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGPolylineElement); + Base::initialize(realm); } void SVGPolylineElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp b/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp index 950675b2ba2..df55dd4ee62 100644 --- a/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp +++ b/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp @@ -21,8 +21,8 @@ SVGRadialGradientElement::SVGRadialGradientElement(DOM::Document& document, DOM: void SVGRadialGradientElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGRadialGradientElement); + Base::initialize(realm); } void SVGRadialGradientElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGRectElement.cpp b/Libraries/LibWeb/SVG/SVGRectElement.cpp index abda966110b..8f821330c45 100644 --- a/Libraries/LibWeb/SVG/SVGRectElement.cpp +++ b/Libraries/LibWeb/SVG/SVGRectElement.cpp @@ -24,8 +24,8 @@ SVGRectElement::SVGRectElement(DOM::Document& document, DOM::QualifiedName quali void SVGRectElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGRectElement); + Base::initialize(realm); } void SVGRectElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGSVGElement.cpp b/Libraries/LibWeb/SVG/SVGSVGElement.cpp index cb6e91daea8..e7ba29f41c6 100644 --- a/Libraries/LibWeb/SVG/SVGSVGElement.cpp +++ b/Libraries/LibWeb/SVG/SVGSVGElement.cpp @@ -31,8 +31,8 @@ SVGSVGElement::SVGSVGElement(DOM::Document& document, DOM::QualifiedName qualifi void SVGSVGElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGSVGElement); + Base::initialize(realm); m_view_box_for_bindings = realm.create(realm); } diff --git a/Libraries/LibWeb/SVG/SVGScriptElement.cpp b/Libraries/LibWeb/SVG/SVGScriptElement.cpp index 82b0c67bbfc..60616e51b43 100644 --- a/Libraries/LibWeb/SVG/SVGScriptElement.cpp +++ b/Libraries/LibWeb/SVG/SVGScriptElement.cpp @@ -24,8 +24,8 @@ SVGScriptElement::SVGScriptElement(DOM::Document& document, DOM::QualifiedName q void SVGScriptElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGScriptElement); + Base::initialize(realm); } void SVGScriptElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGStopElement.cpp b/Libraries/LibWeb/SVG/SVGStopElement.cpp index 1725f53bf84..7d2d4a9dece 100644 --- a/Libraries/LibWeb/SVG/SVGStopElement.cpp +++ b/Libraries/LibWeb/SVG/SVGStopElement.cpp @@ -79,8 +79,8 @@ GC::Ref SVGStopElement::offset() const void SVGStopElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGStopElement); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/SVG/SVGStyleElement.cpp b/Libraries/LibWeb/SVG/SVGStyleElement.cpp index 0d33cd7caaf..04b4705f83e 100644 --- a/Libraries/LibWeb/SVG/SVGStyleElement.cpp +++ b/Libraries/LibWeb/SVG/SVGStyleElement.cpp @@ -20,8 +20,8 @@ SVGStyleElement::~SVGStyleElement() = default; void SVGStyleElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGStyleElement); + Base::initialize(realm); } void SVGStyleElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGSymbolElement.cpp b/Libraries/LibWeb/SVG/SVGSymbolElement.cpp index c797eaf2ec4..b25c5ae612b 100644 --- a/Libraries/LibWeb/SVG/SVGSymbolElement.cpp +++ b/Libraries/LibWeb/SVG/SVGSymbolElement.cpp @@ -28,8 +28,8 @@ SVGSymbolElement::SVGSymbolElement(DOM::Document& document, DOM::QualifiedName q void SVGSymbolElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGSymbolElement); + Base::initialize(realm); m_view_box_for_bindings = realm.create(realm); } diff --git a/Libraries/LibWeb/SVG/SVGTSpanElement.cpp b/Libraries/LibWeb/SVG/SVGTSpanElement.cpp index ec9970370ed..df558d3f7fd 100644 --- a/Libraries/LibWeb/SVG/SVGTSpanElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTSpanElement.cpp @@ -20,8 +20,8 @@ SVGTSpanElement::SVGTSpanElement(DOM::Document& document, DOM::QualifiedName qua void SVGTSpanElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTSpanElement); + Base::initialize(realm); } GC::Ptr SVGTSpanElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/SVG/SVGTextContentElement.cpp b/Libraries/LibWeb/SVG/SVGTextContentElement.cpp index 007eec244e9..cacaa107745 100644 --- a/Libraries/LibWeb/SVG/SVGTextContentElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTextContentElement.cpp @@ -26,8 +26,8 @@ SVGTextContentElement::SVGTextContentElement(DOM::Document& document, DOM::Quali void SVGTextContentElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTextContentElement); + Base::initialize(realm); } Optional SVGTextContentElement::text_anchor() const diff --git a/Libraries/LibWeb/SVG/SVGTextElement.cpp b/Libraries/LibWeb/SVG/SVGTextElement.cpp index 8e74a1f761f..5689cd170fc 100644 --- a/Libraries/LibWeb/SVG/SVGTextElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTextElement.cpp @@ -19,8 +19,8 @@ SVGTextElement::SVGTextElement(DOM::Document& document, DOM::QualifiedName quali void SVGTextElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTextElement); + Base::initialize(realm); } GC::Ptr SVGTextElement::create_layout_node(GC::Ref style) diff --git a/Libraries/LibWeb/SVG/SVGTextPathElement.cpp b/Libraries/LibWeb/SVG/SVGTextPathElement.cpp index f583c568129..0bacd3c6279 100644 --- a/Libraries/LibWeb/SVG/SVGTextPathElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTextPathElement.cpp @@ -32,8 +32,8 @@ GC::Ptr SVGTextPathElement::path_or_shape() const void SVGTextPathElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTextPathElement); + Base::initialize(realm); } void SVGTextPathElement::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp b/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp index 9bb2a703ce3..842314d1c56 100644 --- a/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp @@ -25,8 +25,8 @@ SVGTextPositioningElement::SVGTextPositioningElement(DOM::Document& document, DO void SVGTextPositioningElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTextPositioningElement); + Base::initialize(realm); } void SVGTextPositioningElement::attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) diff --git a/Libraries/LibWeb/SVG/SVGTitleElement.cpp b/Libraries/LibWeb/SVG/SVGTitleElement.cpp index 4569774c489..f6c12421e4b 100644 --- a/Libraries/LibWeb/SVG/SVGTitleElement.cpp +++ b/Libraries/LibWeb/SVG/SVGTitleElement.cpp @@ -21,8 +21,8 @@ SVGTitleElement::SVGTitleElement(DOM::Document& document, DOM::QualifiedName qua void SVGTitleElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTitleElement); + Base::initialize(realm); } GC::Ptr SVGTitleElement::create_layout_node(GC::Ref) diff --git a/Libraries/LibWeb/SVG/SVGTransform.cpp b/Libraries/LibWeb/SVG/SVGTransform.cpp index d84d8eca099..ede654e6738 100644 --- a/Libraries/LibWeb/SVG/SVGTransform.cpp +++ b/Libraries/LibWeb/SVG/SVGTransform.cpp @@ -27,8 +27,8 @@ SVGTransform::~SVGTransform() = default; void SVGTransform::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransform); + Base::initialize(realm); } // https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__type diff --git a/Libraries/LibWeb/SVG/SVGTransformList.cpp b/Libraries/LibWeb/SVG/SVGTransformList.cpp index 7a81e40c555..3ca6d70d87a 100644 --- a/Libraries/LibWeb/SVG/SVGTransformList.cpp +++ b/Libraries/LibWeb/SVG/SVGTransformList.cpp @@ -59,8 +59,8 @@ GC::Ref SVGTransformList::append_item(GC::Ref new_it void SVGTransformList::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransformList); + Base::initialize(realm); } void SVGTransformList::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/SVG/SVGUseElement.cpp b/Libraries/LibWeb/SVG/SVGUseElement.cpp index 669838878d9..b012767c19c 100644 --- a/Libraries/LibWeb/SVG/SVGUseElement.cpp +++ b/Libraries/LibWeb/SVG/SVGUseElement.cpp @@ -33,8 +33,8 @@ SVGUseElement::SVGUseElement(DOM::Document& document, DOM::QualifiedName qualifi void SVGUseElement::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGUseElement); + Base::initialize(realm); // The shadow tree is open (inspectable by script), but read-only. auto shadow_root = realm.create(document(), *this, Bindings::ShadowRootMode::Open); diff --git a/Libraries/LibWeb/Selection/Selection.cpp b/Libraries/LibWeb/Selection/Selection.cpp index e548d89e8b7..06f2ec5acbb 100644 --- a/Libraries/LibWeb/Selection/Selection.cpp +++ b/Libraries/LibWeb/Selection/Selection.cpp @@ -34,8 +34,8 @@ Selection::~Selection() = default; void Selection::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(Selection); + Base::initialize(realm); } // https://w3c.github.io/selection-api/#dfn-empty diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorker.cpp b/Libraries/LibWeb/ServiceWorker/ServiceWorker.cpp index a9e0ef8c8e8..50c457609d4 100644 --- a/Libraries/LibWeb/ServiceWorker/ServiceWorker.cpp +++ b/Libraries/LibWeb/ServiceWorker/ServiceWorker.cpp @@ -27,8 +27,8 @@ GC::Ref ServiceWorker::create(JS::Realm& realm, ServiceWorkerReco void ServiceWorker::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ServiceWorker); + Base::initialize(realm); } // https://w3c.github.io/ServiceWorker/#dom-serviceworker-scripturl diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.cpp b/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.cpp index a73e899fff3..5d684777d29 100644 --- a/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.cpp +++ b/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.cpp @@ -33,8 +33,8 @@ ServiceWorkerContainer::~ServiceWorkerContainer() = default; void ServiceWorkerContainer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ServiceWorkerContainer); + Base::initialize(realm); } void ServiceWorkerContainer::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.cpp b/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.cpp index a761d076fe3..fb9a0fdbae4 100644 --- a/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.cpp +++ b/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.cpp @@ -22,8 +22,8 @@ ServiceWorkerRegistration::ServiceWorkerRegistration(JS::Realm& realm, Registrat void ServiceWorkerRegistration::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ServiceWorkerRegistration); + Base::initialize(realm); } void ServiceWorkerRegistration::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/StorageAPI/StorageManager.cpp b/Libraries/LibWeb/StorageAPI/StorageManager.cpp index 90c301de911..22761505bd9 100644 --- a/Libraries/LibWeb/StorageAPI/StorageManager.cpp +++ b/Libraries/LibWeb/StorageAPI/StorageManager.cpp @@ -25,8 +25,8 @@ StorageManager::StorageManager(JS::Realm& realm) void StorageManager::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(StorageManager); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp b/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp index e8476f6641e..08f35f23042 100644 --- a/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp +++ b/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp @@ -41,8 +41,8 @@ GC::Ref ByteLengthQueuingStrategy::size() void ByteLengthQueuingStrategy::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ByteLengthQueuingStrategy); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp b/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp index fa923dbc705..5ff7a0efaa4 100644 --- a/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp +++ b/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp @@ -41,8 +41,8 @@ GC::Ref CountQueuingStrategy::size() void CountQueuingStrategy::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CountQueuingStrategy); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp b/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp index 3a7b84de945..b2b07b283ff 100644 --- a/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp +++ b/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp @@ -75,8 +75,8 @@ ReadableByteStreamController::ReadableByteStreamController(JS::Realm& realm) void ReadableByteStreamController::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableByteStreamController); + Base::initialize(realm); } // https://streams.spec.whatwg.org/#rbs-controller-enqueue diff --git a/Libraries/LibWeb/Streams/ReadableStream.cpp b/Libraries/LibWeb/Streams/ReadableStream.cpp index 47af31d983e..d1bb21b7fb5 100644 --- a/Libraries/LibWeb/Streams/ReadableStream.cpp +++ b/Libraries/LibWeb/Streams/ReadableStream.cpp @@ -217,8 +217,8 @@ void ReadableStream::error(JS::Value error) void ReadableStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStream); + Base::initialize(realm); } void ReadableStream::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/ReadableStreamAsyncIterator.cpp b/Libraries/LibWeb/Streams/ReadableStreamAsyncIterator.cpp index 6f2f7c5bbe4..31f6d0dd9da 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamAsyncIterator.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamAsyncIterator.cpp @@ -51,8 +51,8 @@ ReadableStreamAsyncIterator::~ReadableStreamAsyncIterator() = default; void ReadableStreamAsyncIterator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStreamAsyncIterator); + Base::initialize(realm); } void ReadableStreamAsyncIterator::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp b/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp index f7d955a2622..d2fa489685a 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp @@ -27,8 +27,8 @@ ReadableStreamBYOBReader::ReadableStreamBYOBReader(JS::Realm& realm) void ReadableStreamBYOBReader::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStreamBYOBReader); + Base::initialize(realm); } // https://streams.spec.whatwg.org/#byob-reader-constructor diff --git a/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp b/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp index 10785c0bcd7..5fcebcd2453 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp @@ -31,8 +31,8 @@ ReadableStreamBYOBRequest::ReadableStreamBYOBRequest(JS::Realm& realm) void ReadableStreamBYOBRequest::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStreamBYOBRequest); + Base::initialize(realm); } void ReadableStreamBYOBRequest::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp b/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp index 9cc95eaebee..3cc34d9dbe8 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp @@ -125,8 +125,8 @@ void ReadableStreamDefaultController::release_steps() void ReadableStreamDefaultController::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStreamDefaultController); + Base::initialize(realm); } void ReadableStreamDefaultController::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp b/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp index cad3e505302..d7cc73f6656 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp @@ -56,8 +56,8 @@ ReadableStreamDefaultReader::ReadableStreamDefaultReader(JS::Realm& realm) void ReadableStreamDefaultReader::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ReadableStreamDefaultReader); + Base::initialize(realm); } void ReadableStreamDefaultReader::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/TransformStream.cpp b/Libraries/LibWeb/Streams/TransformStream.cpp index d606e05c6ec..348a60d293f 100644 --- a/Libraries/LibWeb/Streams/TransformStream.cpp +++ b/Libraries/LibWeb/Streams/TransformStream.cpp @@ -170,8 +170,8 @@ TransformStream::~TransformStream() = default; void TransformStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TransformStream); + Base::initialize(realm); } void TransformStream::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp b/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp index 907a29556be..65b998d455c 100644 --- a/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp +++ b/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp @@ -24,8 +24,8 @@ TransformStreamDefaultController::~TransformStreamDefaultController() = default; void TransformStreamDefaultController::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TransformStreamDefaultController); + Base::initialize(realm); } void TransformStreamDefaultController::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/WritableStream.cpp b/Libraries/LibWeb/Streams/WritableStream.cpp index 0c179c5767f..8d42da7d7ab 100644 --- a/Libraries/LibWeb/Streams/WritableStream.cpp +++ b/Libraries/LibWeb/Streams/WritableStream.cpp @@ -108,8 +108,8 @@ WritableStream::WritableStream(JS::Realm& realm) void WritableStream::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WritableStream); + Base::initialize(realm); } void WritableStream::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/Streams/WritableStreamDefaultController.cpp b/Libraries/LibWeb/Streams/WritableStreamDefaultController.cpp index 11cff1767b8..85736cf7c7c 100644 --- a/Libraries/LibWeb/Streams/WritableStreamDefaultController.cpp +++ b/Libraries/LibWeb/Streams/WritableStreamDefaultController.cpp @@ -30,8 +30,8 @@ void WritableStreamDefaultController::visit_edges(Visitor& visitor) void WritableStreamDefaultController::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WritableStreamDefaultController); + Base::initialize(realm); } // https://streams.spec.whatwg.org/#ws-default-controller-error diff --git a/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp b/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp index d8179324990..6dbf8d10e3f 100644 --- a/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp +++ b/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp @@ -127,8 +127,8 @@ WritableStreamDefaultWriter::WritableStreamDefaultWriter(JS::Realm& realm) void WritableStreamDefaultWriter::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WritableStreamDefaultWriter); + Base::initialize(realm); } void WritableStreamDefaultWriter::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/UIEvents/CompositionEvent.cpp b/Libraries/LibWeb/UIEvents/CompositionEvent.cpp index 93c8e19e087..2f4875cb1ea 100644 --- a/Libraries/LibWeb/UIEvents/CompositionEvent.cpp +++ b/Libraries/LibWeb/UIEvents/CompositionEvent.cpp @@ -32,8 +32,8 @@ CompositionEvent::~CompositionEvent() = default; void CompositionEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(CompositionEvent); + Base::initialize(realm); } // https://w3c.github.io/uievents/#dom-compositionevent-initcompositionevent diff --git a/Libraries/LibWeb/UIEvents/FocusEvent.cpp b/Libraries/LibWeb/UIEvents/FocusEvent.cpp index 4681bfe2cfc..ada2b979500 100644 --- a/Libraries/LibWeb/UIEvents/FocusEvent.cpp +++ b/Libraries/LibWeb/UIEvents/FocusEvent.cpp @@ -32,8 +32,8 @@ FocusEvent::~FocusEvent() = default; void FocusEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FocusEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/UIEvents/InputEvent.cpp b/Libraries/LibWeb/UIEvents/InputEvent.cpp index 43b89b15c8a..5aab89af644 100644 --- a/Libraries/LibWeb/UIEvents/InputEvent.cpp +++ b/Libraries/LibWeb/UIEvents/InputEvent.cpp @@ -39,8 +39,8 @@ InputEvent::~InputEvent() = default; void InputEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(InputEvent); + Base::initialize(realm); } Vector InputEvent::get_target_ranges() const diff --git a/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp b/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp index ab12ba49080..f3a7904f30f 100644 --- a/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp +++ b/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp @@ -792,8 +792,8 @@ KeyboardEvent::~KeyboardEvent() = default; void KeyboardEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(KeyboardEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/UIEvents/MouseEvent.cpp b/Libraries/LibWeb/UIEvents/MouseEvent.cpp index 057641d163c..5db9422a090 100644 --- a/Libraries/LibWeb/UIEvents/MouseEvent.cpp +++ b/Libraries/LibWeb/UIEvents/MouseEvent.cpp @@ -53,8 +53,8 @@ MouseEvent::~MouseEvent() = default; void MouseEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MouseEvent); + Base::initialize(realm); } void MouseEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/UIEvents/PointerEvent.cpp b/Libraries/LibWeb/UIEvents/PointerEvent.cpp index ad4c6c48a40..dc5df5fb823 100644 --- a/Libraries/LibWeb/UIEvents/PointerEvent.cpp +++ b/Libraries/LibWeb/UIEvents/PointerEvent.cpp @@ -65,8 +65,8 @@ PointerEvent::~PointerEvent() = default; void PointerEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PointerEvent); + Base::initialize(realm); } void PointerEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/UIEvents/TextEvent.cpp b/Libraries/LibWeb/UIEvents/TextEvent.cpp index 663b7350e7d..7cb69340285 100644 --- a/Libraries/LibWeb/UIEvents/TextEvent.cpp +++ b/Libraries/LibWeb/UIEvents/TextEvent.cpp @@ -26,8 +26,8 @@ TextEvent::~TextEvent() = default; void TextEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TextEvent); + Base::initialize(realm); } // https://w3c.github.io/uievents/#dom-textevent-inittextevent diff --git a/Libraries/LibWeb/UIEvents/UIEvent.cpp b/Libraries/LibWeb/UIEvents/UIEvent.cpp index fbc1c9ee1ec..49d86199cca 100644 --- a/Libraries/LibWeb/UIEvents/UIEvent.cpp +++ b/Libraries/LibWeb/UIEvents/UIEvent.cpp @@ -39,8 +39,8 @@ UIEvent::~UIEvent() = default; void UIEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(UIEvent); + Base::initialize(realm); } void UIEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/UIEvents/WheelEvent.cpp b/Libraries/LibWeb/UIEvents/WheelEvent.cpp index 4d936b505da..1cdf022410a 100644 --- a/Libraries/LibWeb/UIEvents/WheelEvent.cpp +++ b/Libraries/LibWeb/UIEvents/WheelEvent.cpp @@ -29,8 +29,8 @@ WheelEvent::~WheelEvent() = default; void WheelEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WheelEvent); + Base::initialize(realm); } GC::Ref WheelEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, WheelEventInit const& wheel_event_init) diff --git a/Libraries/LibWeb/URLPattern/URLPattern.cpp b/Libraries/LibWeb/URLPattern/URLPattern.cpp index 9521e87ab51..e9c42c7b899 100644 --- a/Libraries/LibWeb/URLPattern/URLPattern.cpp +++ b/Libraries/LibWeb/URLPattern/URLPattern.cpp @@ -23,8 +23,8 @@ URLPattern::~URLPattern() = default; void URLPattern::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(URLPattern); + Base::initialize(realm); } // https://urlpattern.spec.whatwg.org/#dom-urlpattern-urlpattern diff --git a/Libraries/LibWeb/UserTiming/PerformanceMark.cpp b/Libraries/LibWeb/UserTiming/PerformanceMark.cpp index 91d2487839d..3b0d3bbceed 100644 --- a/Libraries/LibWeb/UserTiming/PerformanceMark.cpp +++ b/Libraries/LibWeb/UserTiming/PerformanceMark.cpp @@ -100,8 +100,8 @@ FlyString const& PerformanceMark::entry_type() const void PerformanceMark::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceMark); + Base::initialize(realm); } void PerformanceMark::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp b/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp index 47434cb442f..48d1cb5c4e1 100644 --- a/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp +++ b/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp @@ -38,8 +38,8 @@ FlyString const& PerformanceMeasure::entry_type() const void PerformanceMeasure::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceMeasure); + Base::initialize(realm); } void PerformanceMeasure::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAssembly/Global.cpp b/Libraries/LibWeb/WebAssembly/Global.cpp index 7fd79d19ba3..daabd0142c3 100644 --- a/Libraries/LibWeb/WebAssembly/Global.cpp +++ b/Libraries/LibWeb/WebAssembly/Global.cpp @@ -90,8 +90,8 @@ Global::Global(JS::Realm& realm, Wasm::GlobalAddress address) // https://webassembly.github.io/spec/js-api/#initialize-a-global-object void Global::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(Global, WebAssembly.Global); + Base::initialize(realm); // 1. Let map be the surrounding agent's associated Global object cache. // 2. Assert: map[globaladdr] doesn’t exist. diff --git a/Libraries/LibWeb/WebAssembly/Instance.cpp b/Libraries/LibWeb/WebAssembly/Instance.cpp index 9598effdbd3..a819092e8ca 100644 --- a/Libraries/LibWeb/WebAssembly/Instance.cpp +++ b/Libraries/LibWeb/WebAssembly/Instance.cpp @@ -43,8 +43,8 @@ void Instance::initialize(JS::Realm& realm) { auto& vm = this->vm(); - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(Instance, WebAssembly.Instance); + Base::initialize(realm); auto& cache = Detail::get_cache(realm); diff --git a/Libraries/LibWeb/WebAssembly/Memory.cpp b/Libraries/LibWeb/WebAssembly/Memory.cpp index dd065023f1e..772c1fb4d85 100644 --- a/Libraries/LibWeb/WebAssembly/Memory.cpp +++ b/Libraries/LibWeb/WebAssembly/Memory.cpp @@ -56,8 +56,8 @@ Memory::Memory(JS::Realm& realm, Wasm::MemoryAddress address, Shared shared) void Memory::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(Memory, WebAssembly.Memory); + Base::initialize(realm); } void Memory::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebAssembly/Module.cpp b/Libraries/LibWeb/WebAssembly/Module.cpp index 77750e51b82..50ad1a0e14f 100644 --- a/Libraries/LibWeb/WebAssembly/Module.cpp +++ b/Libraries/LibWeb/WebAssembly/Module.cpp @@ -41,8 +41,8 @@ Module::Module(JS::Realm& realm, NonnullRefPtr> AnalyserNode::construct_impl(JS::Real void AnalyserNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AnalyserNode); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebAudio/AudioBuffer.cpp b/Libraries/LibWeb/WebAudio/AudioBuffer.cpp index 185ea1c9186..203c7b15ffd 100644 --- a/Libraries/LibWeb/WebAudio/AudioBuffer.cpp +++ b/Libraries/LibWeb/WebAudio/AudioBuffer.cpp @@ -148,8 +148,8 @@ AudioBuffer::AudioBuffer(JS::Realm& realm, AudioBufferOptions const& options) void AudioBuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioBuffer); + Base::initialize(realm); } void AudioBuffer::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.cpp b/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.cpp index 418ca326e1e..dc53ce3c3ae 100644 --- a/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.cpp +++ b/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.cpp @@ -166,8 +166,8 @@ WebIDL::ExceptionOr> AudioBufferSourceNode::const void AudioBufferSourceNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioBufferSourceNode); + Base::initialize(realm); } void AudioBufferSourceNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioContext.cpp b/Libraries/LibWeb/WebAudio/AudioContext.cpp index c215cd9c3b7..45890c440b4 100644 --- a/Libraries/LibWeb/WebAudio/AudioContext.cpp +++ b/Libraries/LibWeb/WebAudio/AudioContext.cpp @@ -113,8 +113,8 @@ AudioContext::~AudioContext() = default; void AudioContext::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioContext); + Base::initialize(realm); } void AudioContext::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioDestinationNode.cpp b/Libraries/LibWeb/WebAudio/AudioDestinationNode.cpp index 13cceefaebb..eeac97495d2 100644 --- a/Libraries/LibWeb/WebAudio/AudioDestinationNode.cpp +++ b/Libraries/LibWeb/WebAudio/AudioDestinationNode.cpp @@ -50,8 +50,8 @@ WebIDL::ExceptionOr> AudioDestinationNode::constru void AudioDestinationNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioDestinationNode); + Base::initialize(realm); } void AudioDestinationNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioListener.cpp b/Libraries/LibWeb/WebAudio/AudioListener.cpp index 31b70333b35..88200136efb 100644 --- a/Libraries/LibWeb/WebAudio/AudioListener.cpp +++ b/Libraries/LibWeb/WebAudio/AudioListener.cpp @@ -73,8 +73,8 @@ WebIDL::ExceptionOr AudioListener::set_orientation(float x, float y, float void AudioListener::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioListener); + Base::initialize(realm); } void AudioListener::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioNode.cpp b/Libraries/LibWeb/WebAudio/AudioNode.cpp index 4a2dc6a50e3..6a1f3a41a74 100644 --- a/Libraries/LibWeb/WebAudio/AudioNode.cpp +++ b/Libraries/LibWeb/WebAudio/AudioNode.cpp @@ -216,8 +216,8 @@ Bindings::ChannelInterpretation AudioNode::channel_interpretation() void AudioNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioNode); + Base::initialize(realm); } void AudioNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioParam.cpp b/Libraries/LibWeb/WebAudio/AudioParam.cpp index 4071c1e6e72..db6bd8276fc 100644 --- a/Libraries/LibWeb/WebAudio/AudioParam.cpp +++ b/Libraries/LibWeb/WebAudio/AudioParam.cpp @@ -141,8 +141,8 @@ WebIDL::ExceptionOr> AudioParam::cancel_and_hold_at_time(dou void AudioParam::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioParam); + Base::initialize(realm); } void AudioParam::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/AudioScheduledSourceNode.cpp b/Libraries/LibWeb/WebAudio/AudioScheduledSourceNode.cpp index 1b1e1cf666e..83b4469a1e7 100644 --- a/Libraries/LibWeb/WebAudio/AudioScheduledSourceNode.cpp +++ b/Libraries/LibWeb/WebAudio/AudioScheduledSourceNode.cpp @@ -72,8 +72,8 @@ WebIDL::ExceptionOr AudioScheduledSourceNode::stop(double when) void AudioScheduledSourceNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(AudioScheduledSourceNode); + Base::initialize(realm); } void AudioScheduledSourceNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp b/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp index 9c5b5af17d9..597754774d8 100644 --- a/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp +++ b/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp @@ -38,8 +38,8 @@ BaseAudioContext::~BaseAudioContext() = default; void BaseAudioContext::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BaseAudioContext); + Base::initialize(realm); } void BaseAudioContext::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/BiquadFilterNode.cpp b/Libraries/LibWeb/WebAudio/BiquadFilterNode.cpp index aa33f53d112..8f2d5a236b3 100644 --- a/Libraries/LibWeb/WebAudio/BiquadFilterNode.cpp +++ b/Libraries/LibWeb/WebAudio/BiquadFilterNode.cpp @@ -102,8 +102,8 @@ WebIDL::ExceptionOr> BiquadFilterNode::construct_impl( void BiquadFilterNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(BiquadFilterNode); + Base::initialize(realm); } void BiquadFilterNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/ChannelSplitterNode.cpp b/Libraries/LibWeb/WebAudio/ChannelSplitterNode.cpp index 9d654a3722c..4b0b7a02f14 100644 --- a/Libraries/LibWeb/WebAudio/ChannelSplitterNode.cpp +++ b/Libraries/LibWeb/WebAudio/ChannelSplitterNode.cpp @@ -50,8 +50,8 @@ WebIDL::ExceptionOr> ChannelSplitterNode::construct void ChannelSplitterNode::initialize(JS::Realm& realm) { - AudioNode::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ChannelSplitterNode); + AudioNode::initialize(realm); } WebIDL::ExceptionOr ChannelSplitterNode::set_channel_count(WebIDL::UnsignedLong channel_count) diff --git a/Libraries/LibWeb/WebAudio/ConstantSourceNode.cpp b/Libraries/LibWeb/WebAudio/ConstantSourceNode.cpp index a85b03aee57..cba39bebb59 100644 --- a/Libraries/LibWeb/WebAudio/ConstantSourceNode.cpp +++ b/Libraries/LibWeb/WebAudio/ConstantSourceNode.cpp @@ -34,8 +34,8 @@ WebIDL::ExceptionOr> ConstantSourceNode::construct_i void ConstantSourceNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ConstantSourceNode); + Base::initialize(realm); } void ConstantSourceNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/DelayNode.cpp b/Libraries/LibWeb/WebAudio/DelayNode.cpp index 307474ea255..42cc2b05ae2 100644 --- a/Libraries/LibWeb/WebAudio/DelayNode.cpp +++ b/Libraries/LibWeb/WebAudio/DelayNode.cpp @@ -51,8 +51,8 @@ WebIDL::ExceptionOr> DelayNode::construct_impl(JS::Realm& rea void DelayNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DelayNode); + Base::initialize(realm); } void DelayNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/DynamicsCompressorNode.cpp b/Libraries/LibWeb/WebAudio/DynamicsCompressorNode.cpp index acb25aee4d1..693f779b68a 100644 --- a/Libraries/LibWeb/WebAudio/DynamicsCompressorNode.cpp +++ b/Libraries/LibWeb/WebAudio/DynamicsCompressorNode.cpp @@ -51,8 +51,8 @@ DynamicsCompressorNode::DynamicsCompressorNode(JS::Realm& realm, GC::Ref context, GainOpti void GainNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(GainNode); + Base::initialize(realm); } void GainNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/MediaElementAudioSourceNode.cpp b/Libraries/LibWeb/WebAudio/MediaElementAudioSourceNode.cpp index 8584722f3e6..8a604fae7a7 100644 --- a/Libraries/LibWeb/WebAudio/MediaElementAudioSourceNode.cpp +++ b/Libraries/LibWeb/WebAudio/MediaElementAudioSourceNode.cpp @@ -34,8 +34,8 @@ WebIDL::ExceptionOr> MediaElementAudioSourc void MediaElementAudioSourceNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaElementAudioSourceNode); + Base::initialize(realm); } void MediaElementAudioSourceNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp b/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp index edc2d838afe..c44eec5847a 100644 --- a/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp +++ b/Libraries/LibWeb/WebAudio/OfflineAudioContext.cpp @@ -99,8 +99,8 @@ OfflineAudioContext::OfflineAudioContext(JS::Realm& realm, WebIDL::UnsignedLong void OfflineAudioContext::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(OfflineAudioContext); + Base::initialize(realm); } void OfflineAudioContext::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/OscillatorNode.cpp b/Libraries/LibWeb/WebAudio/OscillatorNode.cpp index ac6521b8041..0b88b5ec144 100644 --- a/Libraries/LibWeb/WebAudio/OscillatorNode.cpp +++ b/Libraries/LibWeb/WebAudio/OscillatorNode.cpp @@ -83,8 +83,8 @@ void OscillatorNode::set_periodic_wave(GC::Ptr periodic_wave) void OscillatorNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(OscillatorNode); + Base::initialize(realm); } void OscillatorNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/PannerNode.cpp b/Libraries/LibWeb/WebAudio/PannerNode.cpp index 71367f49aab..a677e841e31 100644 --- a/Libraries/LibWeb/WebAudio/PannerNode.cpp +++ b/Libraries/LibWeb/WebAudio/PannerNode.cpp @@ -80,8 +80,8 @@ PannerNode::PannerNode(JS::Realm& realm, GC::Ref context, Pann void PannerNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PannerNode); + Base::initialize(realm); } void PannerNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/PeriodicWave.cpp b/Libraries/LibWeb/WebAudio/PeriodicWave.cpp index b44ea61cc0d..671e17c908e 100644 --- a/Libraries/LibWeb/WebAudio/PeriodicWave.cpp +++ b/Libraries/LibWeb/WebAudio/PeriodicWave.cpp @@ -107,8 +107,8 @@ PeriodicWave::~PeriodicWave() = default; void PeriodicWave::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PeriodicWave); + Base::initialize(realm); } void PeriodicWave::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebAudio/StereoPannerNode.cpp b/Libraries/LibWeb/WebAudio/StereoPannerNode.cpp index 9e43b5525bc..b87db500814 100644 --- a/Libraries/LibWeb/WebAudio/StereoPannerNode.cpp +++ b/Libraries/LibWeb/WebAudio/StereoPannerNode.cpp @@ -72,8 +72,8 @@ StereoPannerNode::StereoPannerNode(JS::Realm& realm, GC::Ref c void StereoPannerNode::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(StereoPannerNode); + Base::initialize(realm); } void StereoPannerNode::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/Extensions/ANGLEInstancedArrays.cpp b/Libraries/LibWeb/WebGL/Extensions/ANGLEInstancedArrays.cpp index ed6b8011ae9..ef0244d95f5 100644 --- a/Libraries/LibWeb/WebGL/Extensions/ANGLEInstancedArrays.cpp +++ b/Libraries/LibWeb/WebGL/Extensions/ANGLEInstancedArrays.cpp @@ -51,8 +51,8 @@ void ANGLEInstancedArrays::draw_elements_instanced_angle(GLenum mode, GLsizei co void ANGLEInstancedArrays::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ANGLEInstancedArrays); + Base::initialize(realm); } void ANGLEInstancedArrays::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/Extensions/EXTBlendMinMax.cpp b/Libraries/LibWeb/WebGL/Extensions/EXTBlendMinMax.cpp index aea21d3ac2b..279f3b34a83 100644 --- a/Libraries/LibWeb/WebGL/Extensions/EXTBlendMinMax.cpp +++ b/Libraries/LibWeb/WebGL/Extensions/EXTBlendMinMax.cpp @@ -29,8 +29,8 @@ EXTBlendMinMax::EXTBlendMinMax(JS::Realm& realm, GC::Ref void EXTBlendMinMax::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(EXTBlendMinMax); + Base::initialize(realm); } void EXTBlendMinMax::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/Extensions/EXTColorBufferFloat.cpp b/Libraries/LibWeb/WebGL/Extensions/EXTColorBufferFloat.cpp index 6afbeef3b15..c6c0c53f318 100644 --- a/Libraries/LibWeb/WebGL/Extensions/EXTColorBufferFloat.cpp +++ b/Libraries/LibWeb/WebGL/Extensions/EXTColorBufferFloat.cpp @@ -29,8 +29,8 @@ EXTColorBufferFloat::EXTColorBufferFloat(JS::Realm& realm, GC::Ref buffers) void WebGLDrawBuffers::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLDrawBuffers); + Base::initialize(realm); } void WebGLDrawBuffers::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/Extensions/WebGLVertexArrayObjectOES.cpp b/Libraries/LibWeb/WebGL/Extensions/WebGLVertexArrayObjectOES.cpp index c20169674c4..ab571fff03e 100644 --- a/Libraries/LibWeb/WebGL/Extensions/WebGLVertexArrayObjectOES.cpp +++ b/Libraries/LibWeb/WebGL/Extensions/WebGLVertexArrayObjectOES.cpp @@ -28,8 +28,8 @@ WebGLVertexArrayObjectOES::~WebGLVertexArrayObjectOES() = default; void WebGLVertexArrayObjectOES::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLVertexArrayObjectOES); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGL2RenderingContext.cpp b/Libraries/LibWeb/WebGL/WebGL2RenderingContext.cpp index 4b37d31232c..73f83ad848b 100644 --- a/Libraries/LibWeb/WebGL/WebGL2RenderingContext.cpp +++ b/Libraries/LibWeb/WebGL/WebGL2RenderingContext.cpp @@ -65,8 +65,8 @@ WebGL2RenderingContext::~WebGL2RenderingContext() = default; void WebGL2RenderingContext::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGL2RenderingContext); + Base::initialize(realm); } void WebGL2RenderingContext::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/WebGLActiveInfo.cpp b/Libraries/LibWeb/WebGL/WebGLActiveInfo.cpp index 54feba40758..b9a9d8ed080 100644 --- a/Libraries/LibWeb/WebGL/WebGLActiveInfo.cpp +++ b/Libraries/LibWeb/WebGL/WebGLActiveInfo.cpp @@ -30,8 +30,8 @@ WebGLActiveInfo::~WebGLActiveInfo() = default; void WebGLActiveInfo::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLActiveInfo); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLBuffer.cpp b/Libraries/LibWeb/WebGL/WebGLBuffer.cpp index 2f0e6ec429c..9d0035691c1 100644 --- a/Libraries/LibWeb/WebGL/WebGLBuffer.cpp +++ b/Libraries/LibWeb/WebGL/WebGLBuffer.cpp @@ -29,8 +29,8 @@ WebGLBuffer::~WebGLBuffer() = default; void WebGLBuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLBuffer); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp b/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp index 8ef8bffa020..d073bf7e535 100644 --- a/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp +++ b/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp @@ -32,8 +32,8 @@ WebGLContextEvent::~WebGLContextEvent() = default; void WebGLContextEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLContextEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLFramebuffer.cpp b/Libraries/LibWeb/WebGL/WebGLFramebuffer.cpp index 95e9770fc10..26aeed9e8ff 100644 --- a/Libraries/LibWeb/WebGL/WebGLFramebuffer.cpp +++ b/Libraries/LibWeb/WebGL/WebGLFramebuffer.cpp @@ -28,8 +28,8 @@ WebGLFramebuffer::~WebGLFramebuffer() = default; void WebGLFramebuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLFramebuffer); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLObject.cpp b/Libraries/LibWeb/WebGL/WebGLObject.cpp index 32e6453c8d1..eda6b77f553 100644 --- a/Libraries/LibWeb/WebGL/WebGLObject.cpp +++ b/Libraries/LibWeb/WebGL/WebGLObject.cpp @@ -25,8 +25,8 @@ WebGLObject::~WebGLObject() = default; void WebGLObject::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLObject); + Base::initialize(realm); } void WebGLObject::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/WebGLProgram.cpp b/Libraries/LibWeb/WebGL/WebGLProgram.cpp index 542c5607191..51db8ea3e5c 100644 --- a/Libraries/LibWeb/WebGL/WebGLProgram.cpp +++ b/Libraries/LibWeb/WebGL/WebGLProgram.cpp @@ -30,8 +30,8 @@ WebGLProgram::~WebGLProgram() = default; void WebGLProgram::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLProgram); + Base::initialize(realm); } void WebGLProgram::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/WebGLQuery.cpp b/Libraries/LibWeb/WebGL/WebGLQuery.cpp index 87e1bc7a769..ac63411721d 100644 --- a/Libraries/LibWeb/WebGL/WebGLQuery.cpp +++ b/Libraries/LibWeb/WebGL/WebGLQuery.cpp @@ -27,8 +27,8 @@ WebGLQuery::~WebGLQuery() = default; void WebGLQuery::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLQuery); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp b/Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp index ef64c22aee0..34dc4944622 100644 --- a/Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp +++ b/Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp @@ -28,8 +28,8 @@ WebGLRenderbuffer::~WebGLRenderbuffer() = default; void WebGLRenderbuffer::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLRenderbuffer); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp b/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp index c53aee16903..85a2f34a4be 100644 --- a/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp +++ b/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp @@ -84,8 +84,8 @@ WebGLRenderingContext::~WebGLRenderingContext() = default; void WebGLRenderingContext::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLRenderingContext); + Base::initialize(realm); } void WebGLRenderingContext::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/WebGL/WebGLSampler.cpp b/Libraries/LibWeb/WebGL/WebGLSampler.cpp index 30888b30b0b..990cc98bd9f 100644 --- a/Libraries/LibWeb/WebGL/WebGLSampler.cpp +++ b/Libraries/LibWeb/WebGL/WebGLSampler.cpp @@ -27,8 +27,8 @@ WebGLSampler::~WebGLSampler() = default; void WebGLSampler::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLSampler); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLShader.cpp b/Libraries/LibWeb/WebGL/WebGLShader.cpp index 1b9adb6568b..1bb34222b72 100644 --- a/Libraries/LibWeb/WebGL/WebGLShader.cpp +++ b/Libraries/LibWeb/WebGL/WebGLShader.cpp @@ -30,8 +30,8 @@ WebGLShader::~WebGLShader() = default; void WebGLShader::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLShader); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLShaderPrecisionFormat.cpp b/Libraries/LibWeb/WebGL/WebGLShaderPrecisionFormat.cpp index 7c6740a75d7..dd5d91bc5f6 100644 --- a/Libraries/LibWeb/WebGL/WebGLShaderPrecisionFormat.cpp +++ b/Libraries/LibWeb/WebGL/WebGLShaderPrecisionFormat.cpp @@ -31,8 +31,8 @@ WebGLShaderPrecisionFormat::~WebGLShaderPrecisionFormat() = default; void WebGLShaderPrecisionFormat::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLShaderPrecisionFormat); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLSync.cpp b/Libraries/LibWeb/WebGL/WebGLSync.cpp index ff4cea7cd3f..f2f77493e14 100644 --- a/Libraries/LibWeb/WebGL/WebGLSync.cpp +++ b/Libraries/LibWeb/WebGL/WebGLSync.cpp @@ -28,8 +28,8 @@ WebGLSync::~WebGLSync() = default; void WebGLSync::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLSync); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLTexture.cpp b/Libraries/LibWeb/WebGL/WebGLTexture.cpp index 68c6b314ebf..adddcf94376 100644 --- a/Libraries/LibWeb/WebGL/WebGLTexture.cpp +++ b/Libraries/LibWeb/WebGL/WebGLTexture.cpp @@ -29,8 +29,8 @@ WebGLTexture::~WebGLTexture() = default; void WebGLTexture::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLTexture); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLTransformFeedback.cpp b/Libraries/LibWeb/WebGL/WebGLTransformFeedback.cpp index f1157d23734..a2289e9f989 100644 --- a/Libraries/LibWeb/WebGL/WebGLTransformFeedback.cpp +++ b/Libraries/LibWeb/WebGL/WebGLTransformFeedback.cpp @@ -27,8 +27,8 @@ WebGLTransformFeedback::~WebGLTransformFeedback() = default; void WebGLTransformFeedback::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLTransformFeedback); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLUniformLocation.cpp b/Libraries/LibWeb/WebGL/WebGLUniformLocation.cpp index 48c4dfa8c9d..064ed33101f 100644 --- a/Libraries/LibWeb/WebGL/WebGLUniformLocation.cpp +++ b/Libraries/LibWeb/WebGL/WebGLUniformLocation.cpp @@ -30,8 +30,8 @@ WebGLUniformLocation::~WebGLUniformLocation() = default; void WebGLUniformLocation::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLUniformLocation); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebGL/WebGLVertexArrayObject.cpp b/Libraries/LibWeb/WebGL/WebGLVertexArrayObject.cpp index 49949a66eec..3e0b1bfcabf 100644 --- a/Libraries/LibWeb/WebGL/WebGLVertexArrayObject.cpp +++ b/Libraries/LibWeb/WebGL/WebGLVertexArrayObject.cpp @@ -27,8 +27,8 @@ WebGLVertexArrayObject::~WebGLVertexArrayObject() = default; void WebGLVertexArrayObject::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLVertexArrayObject); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/WebIDL/DOMException.cpp b/Libraries/LibWeb/WebIDL/DOMException.cpp index 2c46db543bc..62d7a3fdec6 100644 --- a/Libraries/LibWeb/WebIDL/DOMException.cpp +++ b/Libraries/LibWeb/WebIDL/DOMException.cpp @@ -44,8 +44,8 @@ DOMException::~DOMException() = default; void DOMException::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(DOMException); + Base::initialize(realm); } ExceptionOr DOMException::serialization_steps(HTML::SerializationRecord& record, bool, HTML::SerializationMemory&) diff --git a/Libraries/LibWeb/WebSockets/WebSocket.cpp b/Libraries/LibWeb/WebSockets/WebSocket.cpp index d4868bbb860..a3684b194a2 100644 --- a/Libraries/LibWeb/WebSockets/WebSocket.cpp +++ b/Libraries/LibWeb/WebSockets/WebSocket.cpp @@ -119,8 +119,8 @@ WebSocket::~WebSocket() = default; void WebSocket::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(WebSocket); + Base::initialize(realm); auto& relevant_global = as(HTML::relevant_global_object(*this)); relevant_global.register_web_socket({}, *this); diff --git a/Libraries/LibWeb/WebVTT/VTTCue.cpp b/Libraries/LibWeb/WebVTT/VTTCue.cpp index d7c874648f8..c6699d3c591 100644 --- a/Libraries/LibWeb/WebVTT/VTTCue.cpp +++ b/Libraries/LibWeb/WebVTT/VTTCue.cpp @@ -74,8 +74,8 @@ VTTCue::VTTCue(JS::Realm& realm, GC::Ptr track) void VTTCue::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(VTTCue); + Base::initialize(realm); } void VTTCue::visit_edges(Visitor& visitor) diff --git a/Libraries/LibWeb/WebVTT/VTTRegion.cpp b/Libraries/LibWeb/WebVTT/VTTRegion.cpp index 9e8fd58684a..aa28bc0c76d 100644 --- a/Libraries/LibWeb/WebVTT/VTTRegion.cpp +++ b/Libraries/LibWeb/WebVTT/VTTRegion.cpp @@ -53,8 +53,8 @@ VTTRegion::VTTRegion(JS::Realm& realm) void VTTRegion::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(VTTRegion); + Base::initialize(realm); } // https://w3c.github.io/webvtt/#dom-vttregion-width diff --git a/Libraries/LibWeb/XHR/FormData.cpp b/Libraries/LibWeb/XHR/FormData.cpp index 9ab8eb68708..8598d78c94a 100644 --- a/Libraries/LibWeb/XHR/FormData.cpp +++ b/Libraries/LibWeb/XHR/FormData.cpp @@ -85,8 +85,8 @@ FormData::~FormData() = default; void FormData::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FormData); + Base::initialize(realm); } // https://xhr.spec.whatwg.org/#dom-formdata-append diff --git a/Libraries/LibWeb/XHR/FormDataIterator.cpp b/Libraries/LibWeb/XHR/FormDataIterator.cpp index 8c6af1362b8..f3e8ea4d702 100644 --- a/Libraries/LibWeb/XHR/FormDataIterator.cpp +++ b/Libraries/LibWeb/XHR/FormDataIterator.cpp @@ -42,8 +42,8 @@ FormDataIterator::~FormDataIterator() = default; void FormDataIterator::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(FormDataIterator); + Base::initialize(realm); } void FormDataIterator::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/XHR/ProgressEvent.cpp b/Libraries/LibWeb/XHR/ProgressEvent.cpp index a865c47ab6a..ce910a9b4a1 100644 --- a/Libraries/LibWeb/XHR/ProgressEvent.cpp +++ b/Libraries/LibWeb/XHR/ProgressEvent.cpp @@ -34,8 +34,8 @@ ProgressEvent::~ProgressEvent() = default; void ProgressEvent::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(ProgressEvent); + Base::initialize(realm); } } diff --git a/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 9b793aa0464..85ae0851efd 100644 --- a/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -83,8 +83,8 @@ XMLHttpRequest::~XMLHttpRequest() = default; void XMLHttpRequest::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLHttpRequest); + Base::initialize(realm); } void XMLHttpRequest::visit_edges(Cell::Visitor& visitor) diff --git a/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp b/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp index df79fac08b3..c9487180c1f 100644 --- a/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp +++ b/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp @@ -21,8 +21,8 @@ XMLHttpRequestUpload::~XMLHttpRequestUpload() = default; void XMLHttpRequestUpload::initialize(JS::Realm& realm) { - Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLHttpRequestUpload); + Base::initialize(realm); } }