diff options
author | MacDue <macdue@dueutil.tech> | 2022-07-30 11:31:17 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-30 13:20:47 +0200 |
commit | d4b2eb22e1a984b16f5fdcf82cc79e75fc453e2c (patch) | |
tree | 11d450136aec585cff6c6ad2213db26d6e543d70 /Userland/Libraries/LibWeb/DOM | |
parent | 8da0c362124b97b92bb9e4a17136cf25de63fa31 (diff) | |
download | serenity-d4b2eb22e1a984b16f5fdcf82cc79e75fc453e2c.zip |
LibWeb: Resolve circular IDL imports
These circular imports led to the generator silently failing to
generate the required methods/properties.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/CharacterData.idl | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ChildNode.idl | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.idl | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/DocumentFragment.idl | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.idl | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/InnerHTML.idl | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ParentNode.idl | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ShadowRoot.idl | 2 |
8 files changed, 11 insertions, 14 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/CharacterData.idl b/Userland/Libraries/LibWeb/DOM/CharacterData.idl index a018f53c59..bb0c375ee9 100644 --- a/Userland/Libraries/LibWeb/DOM/CharacterData.idl +++ b/Userland/Libraries/LibWeb/DOM/CharacterData.idl @@ -16,3 +16,5 @@ interface CharacterData : Node { readonly attribute Element? nextElementSibling; readonly attribute Element? previousElementSibling; }; + +CharacterData includes ChildNode; diff --git a/Userland/Libraries/LibWeb/DOM/ChildNode.idl b/Userland/Libraries/LibWeb/DOM/ChildNode.idl index 0cb5cefcd3..def04c30a6 100644 --- a/Userland/Libraries/LibWeb/DOM/ChildNode.idl +++ b/Userland/Libraries/LibWeb/DOM/ChildNode.idl @@ -1,5 +1,3 @@ -#import <DOM/Node.idl> - // https://dom.spec.whatwg.org/#childnode interface mixin ChildNode { [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes); @@ -7,7 +5,3 @@ interface mixin ChildNode { [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes); [CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove(); }; - -DocumentType includes ChildNode; -Element includes ChildNode; -CharacterData includes ChildNode; diff --git a/Userland/Libraries/LibWeb/DOM/Document.idl b/Userland/Libraries/LibWeb/DOM/Document.idl index d3b7c6ea6e..81b71af855 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.idl +++ b/Userland/Libraries/LibWeb/DOM/Document.idl @@ -100,4 +100,5 @@ interface Document : Node { [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); }; +Document includes ParentNode; Document includes GlobalEventHandlers; diff --git a/Userland/Libraries/LibWeb/DOM/DocumentFragment.idl b/Userland/Libraries/LibWeb/DOM/DocumentFragment.idl index f618c67968..10e66132f3 100644 --- a/Userland/Libraries/LibWeb/DOM/DocumentFragment.idl +++ b/Userland/Libraries/LibWeb/DOM/DocumentFragment.idl @@ -10,3 +10,5 @@ interface DocumentFragment : Node { Element? getElementById(DOMString id); }; + +DocumentFragment includes ParentNode; diff --git a/Userland/Libraries/LibWeb/DOM/Element.idl b/Userland/Libraries/LibWeb/DOM/Element.idl index 0baea125da..db169a4869 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.idl +++ b/Userland/Libraries/LibWeb/DOM/Element.idl @@ -53,3 +53,7 @@ interface Element : Node { readonly attribute long clientWidth; readonly attribute long clientHeight; }; + +Element includes ParentNode; +Element includes ChildNode; +Element includes InnerHTML; diff --git a/Userland/Libraries/LibWeb/DOM/InnerHTML.idl b/Userland/Libraries/LibWeb/DOM/InnerHTML.idl index 5fce4cd4f5..eaaa79cbba 100644 --- a/Userland/Libraries/LibWeb/DOM/InnerHTML.idl +++ b/Userland/Libraries/LibWeb/DOM/InnerHTML.idl @@ -2,6 +2,3 @@ interface mixin InnerHTML { [LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML; }; - -Element includes InnerHTML; -ShadowRoot includes InnerHTML; diff --git a/Userland/Libraries/LibWeb/DOM/ParentNode.idl b/Userland/Libraries/LibWeb/DOM/ParentNode.idl index fe0151b56f..981781db5c 100644 --- a/Userland/Libraries/LibWeb/DOM/ParentNode.idl +++ b/Userland/Libraries/LibWeb/DOM/ParentNode.idl @@ -1,4 +1,3 @@ -#import <DOM/Element.idl> #import <DOM/HTMLCollection.idl> #import <DOM/Node.idl> @@ -16,7 +15,3 @@ interface mixin ParentNode { Element? querySelector(DOMString selectors); [NewObject] NodeList querySelectorAll(DOMString selectors); }; - -Document includes ParentNode; -DocumentFragment includes ParentNode; -Element includes ParentNode; diff --git a/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl b/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl index d1efd129d0..1190e7bb70 100644 --- a/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl +++ b/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl @@ -11,5 +11,7 @@ interface ShadowRoot : DocumentFragment { // FIXME: attribute EventHandler onslotchange; }; +ShadowRoot includes InnerHTML; + enum ShadowRootMode { "open", "closed" }; enum SlotAssignmentMode { "manual", "named" }; |