mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibWebView: Remove now-unused callback to override property tables
This commit is contained in:
parent
cd0f5087a7
commit
5fcb3dfb2c
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/5fcb3dfb2c Pull-request: https://github.com/SerenityOS/serenity/pull/22080
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.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.
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue