summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/OutOfProcessWebView.h
diff options
context:
space:
mode:
authorVrins <michiel_678@hotmail.com>2022-02-27 01:38:12 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-08 22:09:52 +0100
commit39a5076f40ab93205d88a5bed4de7d1d4677bdca (patch)
tree804de917658a6440a9c4a459ae7a9f5a0d8e5ca5 /Userland/Libraries/LibWeb/OutOfProcessWebView.h
parent3b22fd9a9f739b3617e17428e2aad2439453af34 (diff)
downloadserenity-39a5076f40ab93205d88a5bed4de7d1d4677bdca.zip
Browser+LibWeb: Add an Element size preview widget to inspector
This Adds an element size preview widget to the inspector widget in a new tab. This functions similar to chrome and firefox and shows the margin, border, padding, and content size of the selected element in the inspector. The colors for the size preview widget are taken from the chrome browser.
Diffstat (limited to 'Userland/Libraries/LibWeb/OutOfProcessWebView.h')
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.h b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
index 1f89dccbf8..8a4a430ad6 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
@@ -38,6 +38,7 @@ public:
String specified_values_json;
String computed_values_json;
String custom_properties_json;
+ String node_box_sizing_json;
};
Optional<DOMNodeProperties> inspect_dom_node(i32 node_id);
void clear_inspected_dom_node();
@@ -81,7 +82,7 @@ public:
String notify_server_did_request_prompt(Badge<WebContentClient>, const String& message, const String& default_);
void notify_server_did_get_source(const AK::URL& url, const String& source);
void notify_server_did_get_dom_tree(const String& dom_tree);
- void notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties);
+ void notify_server_did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties, String const& node_box_sizing);
void notify_server_did_output_js_console_message(i32 message_index);
void notify_server_did_get_js_console_messages(i32 start_index, Vector<String> const& message_types, Vector<String> const& messages);
void notify_server_did_change_favicon(const Gfx::Bitmap& favicon);