Explorar o código

LibWeb: Expose NodeFilter on the Window object

Luke Wilde %!s(int64=2) %!d(string=hai) anos
pai
achega
62e3117dfd

+ 2 - 1
Userland/Libraries/LibWeb/DOM/NodeFilter.idl

@@ -25,6 +25,7 @@ interface NodeFilter {
     const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x400;
     const unsigned long SHOW_NOTATION = 0x800; // legacy
 
-    unsigned short acceptNode(Node node);
+    // FIXME: Uncomment this once NodeFilter is a callback interface.
+    // unsigned short acceptNode(Node node);
 
 };

+ 1 - 0
Userland/Libraries/LibWeb/idl_files.cmake

@@ -41,6 +41,7 @@ libweb_js_bindings(DOM/MutationRecord)
 libweb_js_bindings(DOM/MutationObserver)
 libweb_js_bindings(DOM/NamedNodeMap)
 libweb_js_bindings(DOM/Node)
+libweb_js_bindings(DOM/NodeFilter)
 libweb_js_bindings(DOM/NodeIterator)
 libweb_js_bindings(DOM/NodeList)
 libweb_js_bindings(DOM/ProcessingInstruction)