mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:27:35 +00:00
LibWebView: Remove now-unused callback to override property tables
This commit is contained in:
parent
cd0f5087a7
commit
5fcb3dfb2c
2 changed files with 0 additions and 12 deletions
|
@ -48,10 +48,6 @@ InspectorClient::InspectorClient(ViewImplementation& content_web_view, ViewImple
|
||||||
m_inspector_web_view.use_native_user_style_sheet();
|
m_inspector_web_view.use_native_user_style_sheet();
|
||||||
|
|
||||||
m_inspector_web_view.on_inspector_loaded = [this]() {
|
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;
|
m_inspector_loaded = true;
|
||||||
|
|
||||||
if (m_pending_selection.has_value())
|
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) {
|
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);
|
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;
|
StringBuilder builder;
|
||||||
|
|
||||||
// FIXME: Support box model metrics and ARIA properties.
|
// FIXME: Support box model metrics and ARIA properties.
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <AK/Function.h>
|
|
||||||
#include <AK/JsonValue.h>
|
#include <AK/JsonValue.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <LibWebView/ViewImplementation.h>
|
#include <LibWebView/ViewImplementation.h>
|
||||||
|
@ -25,8 +24,6 @@ public:
|
||||||
void select_default_node();
|
void select_default_node();
|
||||||
void clear_selection();
|
void clear_selection();
|
||||||
|
|
||||||
Function<void(ErrorOr<ViewImplementation::DOMNodeProperties>)> on_dom_node_properties_received;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void maybe_load_inspector();
|
void maybe_load_inspector();
|
||||||
void generate_dom_tree(StringBuilder&);
|
void generate_dom_tree(StringBuilder&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue