summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Dump.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-29 22:24:23 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-30 11:35:39 +0200
commit0f7bcd4111bae9ae5e4e32c6c013511f89b255f6 (patch)
treedbe7de82c44bd2b6db4922647290f2339b41c684 /Libraries/LibWeb/Dump.h
parentc56acba75e9fcf6a511e92855f4f4e2221241835 (diff)
downloadserenity-0f7bcd4111bae9ae5e4e32c6c013511f89b255f6.zip
LibWeb: Add naive support for document.querySelectorAll()
This currently returns a JS::Array of elements matching a selector. The more correct behavior would be to return a static NodeList, but as we don't have NodeLists right now, that'll be a task for the future.
Diffstat (limited to 'Libraries/LibWeb/Dump.h')
-rw-r--r--Libraries/LibWeb/Dump.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Libraries/LibWeb/Dump.h b/Libraries/LibWeb/Dump.h
index 07b5a7e17c..8108819761 100644
--- a/Libraries/LibWeb/Dump.h
+++ b/Libraries/LibWeb/Dump.h
@@ -26,17 +26,15 @@
#pragma once
-namespace Web {
+#include <LibWeb/Forward.h>
-class Node;
-class LayoutNode;
-class StyleRule;
-class StyleSheet;
+namespace Web {
void dump_tree(const Node&);
void dump_tree(const LayoutNode&);
void dump_sheet(const StyleSheet&);
void dump_rule(const StyleRule&);
+void dump_selector(const Selector&);
#undef HTML_DEBUG