summaryrefslogtreecommitdiff
path: root/Ladybird/WebContentView.h
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-12-18 21:12:14 +0000
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 15:30:08 -0700
commit33249c727a26972c33bcbda9f609e97077393ec0 (patch)
treee8dce01e16239aa452ba60dac30db18beb78a823 /Ladybird/WebContentView.h
parentaa85a881581ff04fe86da6e0e253d1555e43710f (diff)
downloadserenity-33249c727a26972c33bcbda9f609e97077393ec0.zip
Ladybird: Add the node properties tabs to the inspector
This now allows you to view the computed and resolved style values, along with the CSS variables of a node.
Diffstat (limited to 'Ladybird/WebContentView.h')
-rw-r--r--Ladybird/WebContentView.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h
index a48de1d5de..9bd2a463ad 100644
--- a/Ladybird/WebContentView.h
+++ b/Ladybird/WebContentView.h
@@ -23,6 +23,8 @@
#include <QAbstractScrollArea>
#include <QPointer>
+#include "DOMNodeProperties.h"
+
class QTextEdit;
class QLineEdit;
@@ -189,9 +191,9 @@ private:
bool is_inspector_open() const;
void inspect_dom_tree();
- void inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element);
void clear_inspected_dom_node();
void clear_inspector_callbacks();
+ ErrorOr<Ladybird::DOMNodeProperties> inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element);
qreal m_inverse_pixel_scaling_ratio { 1.0 };
bool m_should_show_line_box_borders { false };