mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 01:22:13 +00:00
LibWeb: Resolve circular IDL imports
These circular imports led to the generator silently failing to generate the required methods/properties.
This commit is contained in:
parent
8da0c36212
commit
d4b2eb22e1
8 changed files with 11 additions and 14 deletions
|
@ -16,3 +16,5 @@ interface CharacterData : Node {
|
||||||
readonly attribute Element? nextElementSibling;
|
readonly attribute Element? nextElementSibling;
|
||||||
readonly attribute Element? previousElementSibling;
|
readonly attribute Element? previousElementSibling;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
CharacterData includes ChildNode;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#import <DOM/Node.idl>
|
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#childnode
|
// https://dom.spec.whatwg.org/#childnode
|
||||||
interface mixin ChildNode {
|
interface mixin ChildNode {
|
||||||
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
|
[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] undefined replaceWith((Node or DOMString)... nodes);
|
||||||
[CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();
|
[CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
DocumentType includes ChildNode;
|
|
||||||
Element includes ChildNode;
|
|
||||||
CharacterData includes ChildNode;
|
|
||||||
|
|
|
@ -100,4 +100,5 @@ interface Document : Node {
|
||||||
[NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
|
[NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Document includes ParentNode;
|
||||||
Document includes GlobalEventHandlers;
|
Document includes GlobalEventHandlers;
|
||||||
|
|
|
@ -10,3 +10,5 @@ interface DocumentFragment : Node {
|
||||||
|
|
||||||
Element? getElementById(DOMString id);
|
Element? getElementById(DOMString id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DocumentFragment includes ParentNode;
|
||||||
|
|
|
@ -53,3 +53,7 @@ interface Element : Node {
|
||||||
readonly attribute long clientWidth;
|
readonly attribute long clientWidth;
|
||||||
readonly attribute long clientHeight;
|
readonly attribute long clientHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Element includes ParentNode;
|
||||||
|
Element includes ChildNode;
|
||||||
|
Element includes InnerHTML;
|
||||||
|
|
|
@ -2,6 +2,3 @@
|
||||||
interface mixin InnerHTML {
|
interface mixin InnerHTML {
|
||||||
[LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML;
|
[LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML;
|
||||||
};
|
};
|
||||||
|
|
||||||
Element includes InnerHTML;
|
|
||||||
ShadowRoot includes InnerHTML;
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#import <DOM/Element.idl>
|
|
||||||
#import <DOM/HTMLCollection.idl>
|
#import <DOM/HTMLCollection.idl>
|
||||||
#import <DOM/Node.idl>
|
#import <DOM/Node.idl>
|
||||||
|
|
||||||
|
@ -16,7 +15,3 @@ interface mixin ParentNode {
|
||||||
Element? querySelector(DOMString selectors);
|
Element? querySelector(DOMString selectors);
|
||||||
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
||||||
};
|
};
|
||||||
|
|
||||||
Document includes ParentNode;
|
|
||||||
DocumentFragment includes ParentNode;
|
|
||||||
Element includes ParentNode;
|
|
||||||
|
|
|
@ -11,5 +11,7 @@ interface ShadowRoot : DocumentFragment {
|
||||||
// FIXME: attribute EventHandler onslotchange;
|
// FIXME: attribute EventHandler onslotchange;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ShadowRoot includes InnerHTML;
|
||||||
|
|
||||||
enum ShadowRootMode { "open", "closed" };
|
enum ShadowRootMode { "open", "closed" };
|
||||||
enum SlotAssignmentMode { "manual", "named" };
|
enum SlotAssignmentMode { "manual", "named" };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue