LibWebView: Remove now-unused callback to override property tables

This commit is contained in:
Timothy Flynn 2023-11-27 16:43:21 -05:00 committed by Andreas Kling
parent cd0f5087a7
commit 5fcb3dfb2c
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00
2 changed files with 0 additions and 12 deletions

View file

@ -48,10 +48,6 @@ InspectorClient::InspectorClient(ViewImplementation& content_web_view, ViewImple
m_inspector_web_view.use_native_user_style_sheet();
m_inspector_web_view.on_inspector_loaded = [this]() {
if (on_dom_node_properties_received) {
m_inspector_web_view.run_javascript("document.getElementById(\"inspector-bottom\").style.display = \"none\";"sv);
}
m_inspector_loaded = true;
if (m_pending_selection.has_value())
@ -63,11 +59,6 @@ InspectorClient::InspectorClient(ViewImplementation& content_web_view, ViewImple
m_inspector_web_view.on_inspector_selected_dom_node = [this](auto node_id, auto const& pseudo_element) {
auto inspected_node_properties = m_content_web_view.inspect_dom_node(node_id, pseudo_element);
if (on_dom_node_properties_received) {
on_dom_node_properties_received(move(inspected_node_properties));
return;
}
StringBuilder builder;
// FIXME: Support box model metrics and ARIA properties.

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Function.h>
#include <AK/JsonValue.h>
#include <AK/StringView.h>
#include <LibWebView/ViewImplementation.h>
@ -25,8 +24,6 @@ public:
void select_default_node();
void clear_selection();
Function<void(ErrorOr<ViewImplementation::DOMNodeProperties>)> on_dom_node_properties_received;
private:
void maybe_load_inspector();
void generate_dom_tree(StringBuilder&);