Explorar o código

LibWeb: Add missing [SameObject] extended attributes in IDL files

Andreas Kling %!s(int64=2) %!d(string=hai) anos
pai
achega
2157745093

+ 8 - 8
Userland/Libraries/LibWeb/DOM/Document.idl

@@ -60,14 +60,14 @@ interface Document : Node {
     HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
     HTMLCollection getElementsByClassName(DOMString className);
 
-    readonly attribute HTMLCollection applets;
-    readonly attribute HTMLCollection anchors;
-    readonly attribute HTMLCollection images;
-    readonly attribute HTMLCollection embeds;
-    readonly attribute HTMLCollection plugins;
-    readonly attribute HTMLCollection links;
-    readonly attribute HTMLCollection forms;
-    readonly attribute HTMLCollection scripts;
+    [SameObject] readonly attribute HTMLCollection applets;
+    [SameObject] readonly attribute HTMLCollection anchors;
+    [SameObject] readonly attribute HTMLCollection images;
+    [SameObject] readonly attribute HTMLCollection embeds;
+    [SameObject] readonly attribute HTMLCollection plugins;
+    [SameObject] readonly attribute HTMLCollection links;
+    [SameObject] readonly attribute HTMLCollection forms;
+    [SameObject] readonly attribute HTMLCollection scripts;
 
     // FIXME: Should return an HTMLAllCollection
     readonly attribute HTMLCollection all;

+ 2 - 2
Userland/Libraries/LibWeb/HTML/HTMLTableElement.idl

@@ -20,10 +20,10 @@ interface HTMLTableElement : HTMLElement {
     HTMLTableSectionElement createTFoot();
     undefined deleteTFoot();
 
-    readonly attribute HTMLCollection tBodies;
+    [SameObject] readonly attribute HTMLCollection tBodies;
     HTMLTableSectionElement createTBody();
 
-    readonly attribute HTMLCollection rows;
+    [SameObject] readonly attribute HTMLCollection rows;
     HTMLTableRowElement insertRow(optional long index = -1);
     undefined deleteRow(long index);