LibWeb: Remove WRAPPER_HACK() macro

We no longer access Bindings::FooWrapper anywhere for a Foo platform
object, so these can be removed :^)
This commit is contained in:
Linus Groh 2022-09-21 17:45:36 +01:00
parent 6055b0e850
commit 4270ede7c4
Notes: sideshowbarker 2024-07-17 06:44:25 +09:00
196 changed files with 0 additions and 394 deletions

View file

@ -16,11 +16,6 @@ namespace Web::Bindings {
#define WEB_PLATFORM_OBJECT(class_, base_class) \
JS_OBJECT(class_, base_class)
#define WRAPPER_HACK(class_, namespace_) \
namespace Web::Bindings { \
using class_##Wrapper = namespace_::class_; \
}
// https://webidl.spec.whatwg.org/#dfn-platform-object
class PlatformObject
: public JS::Object

View file

@ -29,5 +29,3 @@ protected:
};
}
WRAPPER_HACK(CSSConditionRule, Web::CSS)

View file

@ -37,5 +37,3 @@ template<>
inline bool CSSRule::fast_is<CSSFontFaceRule>() const { return type() == CSSRule::Type::FontFace; }
}
WRAPPER_HACK(CSSFontFaceRule, Web::CSS)

View file

@ -39,5 +39,3 @@ private:
};
}
WRAPPER_HACK(CSSGroupingRule, Web::CSS)

View file

@ -59,5 +59,3 @@ template<>
inline bool CSSRule::fast_is<CSSImportRule>() const { return type() == CSSRule::Type::Import; }
}
WRAPPER_HACK(CSSImportRule, Web::CSS)

View file

@ -45,5 +45,3 @@ template<>
inline bool CSSRule::fast_is<CSSMediaRule>() const { return type() == CSSRule::Type::Media; }
}
WRAPPER_HACK(CSSMediaRule, Web::CSS)

View file

@ -56,5 +56,3 @@ protected:
};
}
WRAPPER_HACK(CSSRule, Web::CSS)

View file

@ -71,5 +71,3 @@ private:
};
}
WRAPPER_HACK(CSSRuleList, Web::CSS)

View file

@ -121,5 +121,3 @@ private:
};
}
WRAPPER_HACK(CSSStyleDeclaration, Web::CSS)

View file

@ -47,5 +47,3 @@ template<>
inline bool CSSRule::fast_is<CSSStyleRule>() const { return type() == CSSRule::Type::Style; }
}
WRAPPER_HACK(CSSStyleRule, Web::CSS)

View file

@ -60,5 +60,3 @@ private:
};
}
WRAPPER_HACK(CSSStyleSheet, Web::CSS)

View file

@ -42,5 +42,3 @@ template<>
inline bool CSSRule::fast_is<CSSSupportsRule>() const { return type() == CSSRule::Type::Supports; }
}
WRAPPER_HACK(CSSSupportsRule, Web::CSS)

View file

@ -43,5 +43,3 @@ private:
};
}
WRAPPER_HACK(MediaList, Web::CSS)

View file

@ -41,5 +41,3 @@ private:
};
}
WRAPPER_HACK(MediaQueryList, Web::CSS)

View file

@ -33,5 +33,3 @@ private:
bool m_matches;
};
}
WRAPPER_HACK(MediaQueryListEvent, Web::CSS)

View file

@ -41,5 +41,3 @@ private:
};
}
WRAPPER_HACK(Screen, Web::CSS)

View file

@ -64,5 +64,3 @@ private:
};
}
WRAPPER_HACK(StyleSheet, Web::CSS)

View file

@ -50,5 +50,3 @@ private:
};
}
WRAPPER_HACK(StyleSheetList, Web::CSS)

View file

@ -36,5 +36,3 @@ private:
};
}
WRAPPER_HACK(Crypto, Web::Crypto)

View file

@ -26,5 +26,3 @@ private:
};
}
WRAPPER_HACK(SubtleCrypto, Web::Crypto)

View file

@ -35,5 +35,3 @@ private:
};
}
WRAPPER_HACK(AbortController, Web::DOM)

View file

@ -54,5 +54,3 @@ private:
};
}
WRAPPER_HACK(AbortSignal, Web::DOM)

View file

@ -46,5 +46,3 @@ protected:
};
}
WRAPPER_HACK(AbstractRange, Web::DOM)

View file

@ -55,5 +55,3 @@ template<>
inline bool Node::fast_is<Attr>() const { return is_attribute(); }
}
WRAPPER_HACK(Attr, Web::DOM)

View file

@ -28,5 +28,3 @@ template<>
inline bool Node::fast_is<CDATASection>() const { return is_cdata_section(); }
}
WRAPPER_HACK(CDATASection, Web::DOM)

View file

@ -41,4 +41,3 @@ private:
};
}
WRAPPER_HACK(CharacterData, Web::DOM)

View file

@ -28,5 +28,3 @@ template<>
inline bool Node::fast_is<Comment>() const { return is_comment(); }
}
WRAPPER_HACK(Comment, Web::DOM)

View file

@ -41,5 +41,3 @@ private:
};
}
WRAPPER_HACK(CustomEvent, Web::DOM)

View file

@ -137,8 +137,6 @@ ENUMERATE_DOM_EXCEPTION_ERROR_NAMES
}
WRAPPER_HACK(DOMException, Web::DOM)
namespace Web {
inline JS::Completion throw_completion(JS::NonnullGCPtr<DOM::DOMException> exception)

View file

@ -39,5 +39,3 @@ private:
};
}
WRAPPER_HACK(DOMImplementation, Web::DOM)

View file

@ -54,5 +54,3 @@ private:
};
}
WRAPPER_HACK(DOMTokenList, Web::DOM)

View file

@ -594,5 +594,3 @@ private:
};
}
WRAPPER_HACK(Document, Web::DOM)

View file

@ -44,5 +44,3 @@ template<>
inline bool Node::fast_is<DocumentFragment>() const { return is_document_fragment(); }
}
WRAPPER_HACK(DocumentFragment, Web::DOM)

View file

@ -45,5 +45,3 @@ template<>
inline bool Node::fast_is<DocumentType>() const { return is_document_type(); }
}
WRAPPER_HACK(DocumentType, Web::DOM)

View file

@ -175,5 +175,3 @@ inline bool Node::fast_is<Element>() const { return is_element(); }
ExceptionOr<QualifiedName> validate_and_extract(JS::Object& global_object, FlyString namespace_, FlyString qualified_name);
}
WRAPPER_HACK(Element, Web::DOM)

View file

@ -178,5 +178,3 @@ private:
};
}
WRAPPER_HACK(Event, Web::DOM)

View file

@ -77,5 +77,3 @@ private:
bool is_window_reflecting_body_element_event_handler(FlyString const& name);
}
WRAPPER_HACK(EventTarget, Web::DOM)

View file

@ -57,5 +57,3 @@ private:
};
}
WRAPPER_HACK(HTMLCollection, Web::DOM)

View file

@ -42,5 +42,3 @@ private:
};
}
WRAPPER_HACK(IDLEventListener, Web::DOM)

View file

@ -106,5 +106,3 @@ private:
};
}
WRAPPER_HACK(MutationObserver, Web::DOM)

View file

@ -45,5 +45,3 @@ private:
};
}
WRAPPER_HACK(MutationRecord, Web::DOM)

View file

@ -61,5 +61,3 @@ private:
};
}
WRAPPER_HACK(NamedNodeMap, Web::DOM)

View file

@ -653,5 +653,3 @@ private:
};
}
WRAPPER_HACK(Node, Web::DOM)

View file

@ -36,5 +36,3 @@ private:
};
}
WRAPPER_HACK(NodeFilter, Web::DOM)

View file

@ -78,5 +78,3 @@ private:
};
}
WRAPPER_HACK(NodeIterator, Web::DOM)

View file

@ -29,5 +29,3 @@ protected:
};
}
WRAPPER_HACK(NodeList, Web::DOM)

View file

@ -70,5 +70,3 @@ inline void ParentNode::for_each_child(Callback callback)
}
}
WRAPPER_HACK(ParentNode, Web::DOM)

View file

@ -31,5 +31,3 @@ template<>
inline bool Node::fast_is<ProcessingInstruction>() const { return node_type() == (u16)NodeType::PROCESSING_INSTRUCTION_NODE; }
}
WRAPPER_HACK(ProcessingInstruction, Web::DOM)

View file

@ -96,5 +96,3 @@ private:
};
}
WRAPPER_HACK(Range, Web::DOM)

View file

@ -66,5 +66,3 @@ inline IterationDecision Node::for_each_shadow_including_descendant(Callback cal
}
}
WRAPPER_HACK(ShadowRoot, Web::DOM)

View file

@ -31,5 +31,3 @@ public:
};
}
WRAPPER_HACK(StaticRange, Web::DOM)

View file

@ -47,5 +47,3 @@ template<>
inline bool Node::fast_is<Text>() const { return is_text(); }
}
WRAPPER_HACK(Text, Web::DOM)

View file

@ -72,5 +72,3 @@ private:
};
}
WRAPPER_HACK(TreeWalker, Web::DOM)

View file

@ -32,5 +32,3 @@ enum class RequireWellFormed {
DOM::ExceptionOr<String> serialize_node_to_xml_string(JS::NonnullGCPtr<DOM::Node> root, RequireWellFormed require_well_formed);
}
WRAPPER_HACK(XMLSerializer, Web::DOMParsing)

View file

@ -42,5 +42,3 @@ private:
};
}
WRAPPER_HACK(TextDecoder, Web::Encoding)

View file

@ -34,5 +34,3 @@ protected:
};
}
WRAPPER_HACK(TextEncoder, Web::Encoding)

View file

@ -63,5 +63,3 @@ private:
};
}
WRAPPER_HACK(Headers, Web::Fetch)

View file

@ -32,5 +32,3 @@ private:
};
}
WRAPPER_HACK(HeadersIterator, Web::Fetch)

View file

@ -61,5 +61,3 @@ private:
};
}
WRAPPER_HACK(Blob, Web::FileAPI)

View file

@ -37,5 +37,3 @@ private:
};
}
WRAPPER_HACK(File, Web::FileAPI)

View file

@ -34,5 +34,3 @@ private:
};
}
WRAPPER_HACK(DOMPoint, Web::Geometry)

View file

@ -36,5 +36,3 @@ protected:
};
}
WRAPPER_HACK(DOMPointReadOnly, Web::Geometry)

View file

@ -35,5 +35,3 @@ private:
};
}
WRAPPER_HACK(DOMRect, Web::Geometry)

View file

@ -34,5 +34,3 @@ private:
};
}
WRAPPER_HACK(DOMRectList, Web::Geometry)

View file

@ -37,5 +37,3 @@ protected:
Gfx::FloatRect m_rect;
};
}
WRAPPER_HACK(DOMRectReadOnly, Web::Geometry)

View file

@ -51,5 +51,3 @@ namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::BrowsingContextContainer>() const { return is_browsing_context_container(); }
}
WRAPPER_HACK(BrowsingContextContainer, Web::HTML)

View file

@ -43,5 +43,3 @@ private:
};
}
WRAPPER_HACK(CanvasGradient, Web::HTML)

View file

@ -124,5 +124,3 @@ DOM::ExceptionOr<CanvasImageSourceUsability> check_usability_of_image(CanvasImag
bool image_is_not_origin_clean(CanvasImageSource const&);
}
WRAPPER_HACK(CanvasRenderingContext2D, Web::HTML)

View file

@ -39,5 +39,3 @@ private:
};
}
WRAPPER_HACK(CloseEvent, Web::HTML)

View file

@ -29,5 +29,3 @@ private:
};
}
WRAPPER_HACK(DOMParser, Web::HTML)

View file

@ -47,5 +47,3 @@ private:
};
}
WRAPPER_HACK(DOMStringMap, Web::HTML)

View file

@ -57,5 +57,3 @@ private:
};
}
WRAPPER_HACK(ErrorEvent, Web::HTML)

View file

@ -55,5 +55,3 @@ namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLAnchorElement>() const { return is_html_anchor_element(); }
}
WRAPPER_HACK(HTMLAnchorElement, Web::HTML)

View file

@ -40,5 +40,3 @@ private:
};
}
WRAPPER_HACK(HTMLAreaElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLAudioElement, Web::HTML)

View file

@ -23,5 +23,3 @@ private:
};
}
WRAPPER_HACK(HTMLBRElement, Web::HTML)

View file

@ -42,5 +42,3 @@ namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLBaseElement>() const { return is_html_base_element(); }
}
WRAPPER_HACK(HTMLBaseElement, Web::HTML)

View file

@ -26,5 +26,3 @@ private:
};
}
WRAPPER_HACK(HTMLBlinkElement, Web::HTML)

View file

@ -35,5 +35,3 @@ private:
};
}
WRAPPER_HACK(HTMLBodyElement, Web::HTML)

View file

@ -58,5 +58,3 @@ private:
};
}
WRAPPER_HACK(HTMLButtonElement, Web::HTML)

View file

@ -59,5 +59,3 @@ private:
};
}
WRAPPER_HACK(HTMLCanvasElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDListElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDataElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDataListElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDetailsElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDialogElement, Web::HTML)

View file

@ -22,5 +22,3 @@ private:
};
}
WRAPPER_HACK(HTMLDirectoryElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLDivElement, Web::HTML)

View file

@ -86,5 +86,3 @@ namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLElement>() const { return is_html_element(); }
}
WRAPPER_HACK(HTMLElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLEmbedElement, Web::HTML)

View file

@ -38,5 +38,3 @@ private:
};
}
WRAPPER_HACK(HTMLFieldSetElement, Web::HTML)

View file

@ -23,5 +23,3 @@ private:
};
}
WRAPPER_HACK(HTMLFontElement, Web::HTML)

View file

@ -42,5 +42,3 @@ private:
};
}
WRAPPER_HACK(HTMLFormElement, Web::HTML)

View file

@ -22,5 +22,3 @@ private:
};
}
WRAPPER_HACK(HTMLFrameElement, Web::HTML)

View file

@ -34,5 +34,3 @@ private:
};
}
WRAPPER_HACK(HTMLFrameSetElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLHRElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLHeadElement, Web::HTML)

View file

@ -21,5 +21,3 @@ private:
};
}
WRAPPER_HACK(HTMLHeadingElement, Web::HTML)

View file

@ -30,5 +30,3 @@ namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLHtmlElement>() const { return is_html_html_element(); }
}
WRAPPER_HACK(HTMLHtmlElement, Web::HTML)

View file

@ -42,5 +42,3 @@ private:
void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);
}
WRAPPER_HACK(HTMLIFrameElement, Web::HTML)

Some files were not shown because too many files have changed in this diff Show more