summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-28 18:20:36 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-28 18:55:48 +0200
commitc46439f24063a5531f1f7562cf6d733cdbabdb51 (patch)
tree859ce620cbb59fd0d18700a524631dcbe6dd9eea /Libraries/LibWeb/Bindings
parentebd2e7d9f569d284effeeb53a5589318391617b8 (diff)
downloadserenity-c46439f24063a5531f1f7562cf6d733cdbabdb51.zip
LibWeb: Move HTML classes into the Web::HTML namespace
Diffstat (limited to 'Libraries/LibWeb/Bindings')
-rw-r--r--Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp b/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp
index f7c9cc8dbb..d87eb2b73f 100644
--- a/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp
+++ b/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp
@@ -80,48 +80,48 @@ NodeWrapper* wrap(JS::GlobalObject& global_object, DOM::Node& node)
return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<DOM::Document>(node)));
if (is<DOM::DocumentType>(node))
return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<DOM::DocumentType>(node)));
- if (is<HTMLAnchorElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLAnchorElement>(node)));
- if (is<HTMLBodyElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLBodyElement>(node)));
- if (is<HTMLBRElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLBRElement>(node)));
- if (is<HTMLCanvasElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLCanvasElement>(node)));
- if (is<HTMLFormElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLFormElement>(node)));
- if (is<HTMLHeadElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLHeadElement>(node)));
- if (is<HTMLHeadingElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLHeadingElement>(node)));
- if (is<HTMLHRElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLHRElement>(node)));
- if (is<HTMLHtmlElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLHtmlElement>(node)));
- if (is<HTMLIFrameElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLIFrameElement>(node)));
- if (is<HTMLImageElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLImageElement>(node)));
- if (is<HTMLInputElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLInputElement>(node)));
- if (is<HTMLLinkElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLLinkElement>(node)));
- if (is<HTMLObjectElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLObjectElement>(node)));
- if (is<HTMLScriptElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLScriptElement>(node)));
- if (is<HTMLStyleElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLStyleElement>(node)));
- if (is<HTMLTableCellElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLTableCellElement>(node)));
- if (is<HTMLTableElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLTableElement>(node)));
- if (is<HTMLTableRowElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLTableRowElement>(node)));
- if (is<HTMLTitleElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLTitleElement>(node)));
- if (is<HTMLElement>(node))
- return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTMLElement>(node)));
+ if (is<HTML::HTMLAnchorElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLAnchorElement>(node)));
+ if (is<HTML::HTMLBodyElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLBodyElement>(node)));
+ if (is<HTML::HTMLBRElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLBRElement>(node)));
+ if (is<HTML::HTMLCanvasElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLCanvasElement>(node)));
+ if (is<HTML::HTMLFormElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLFormElement>(node)));
+ if (is<HTML::HTMLHeadElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLHeadElement>(node)));
+ if (is<HTML::HTMLHeadingElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLHeadingElement>(node)));
+ if (is<HTML::HTMLHRElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLHRElement>(node)));
+ if (is<HTML::HTMLHtmlElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLHtmlElement>(node)));
+ if (is<HTML::HTMLIFrameElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLIFrameElement>(node)));
+ if (is<HTML::HTMLImageElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLImageElement>(node)));
+ if (is<HTML::HTMLInputElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLInputElement>(node)));
+ if (is<HTML::HTMLLinkElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLLinkElement>(node)));
+ if (is<HTML::HTMLObjectElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLObjectElement>(node)));
+ if (is<HTML::HTMLScriptElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLScriptElement>(node)));
+ if (is<HTML::HTMLStyleElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLStyleElement>(node)));
+ if (is<HTML::HTMLTableCellElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLTableCellElement>(node)));
+ if (is<HTML::HTMLTableElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLTableElement>(node)));
+ if (is<HTML::HTMLTableRowElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLTableRowElement>(node)));
+ if (is<HTML::HTMLTitleElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLTitleElement>(node)));
+ if (is<HTML::HTMLElement>(node))
+ return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<HTML::HTMLElement>(node)));
if (is<DOM::Element>(node))
return static_cast<NodeWrapper*>(wrap_impl(global_object, downcast<DOM::Element>(node)));
return static_cast<NodeWrapper*>(wrap_impl(global_object, node));