diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 9655eed292..1709592170 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -925,11 +925,6 @@ void WebContentView::notify_server_did_request_dismiss_dialog(Badgereject(); } -void WebContentView::get_source() -{ - client().async_get_source(); -} - void WebContentView::notify_server_did_get_source(AK::URL const& url, DeprecatedString const& source) { emit got_source(url, qstring_from_ak_deprecated_string(source)); diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h index a5c631d2a1..e8a750aacc 100644 --- a/Ladybird/WebContentView.h +++ b/Ladybird/WebContentView.h @@ -93,8 +93,6 @@ public: void debug_request(DeprecatedString const& request, DeprecatedString const& argument); - void get_source(); - void run_javascript(DeprecatedString const& js_source); void did_output_js_console_message(i32 message_index); diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index 39edbd63d1..805bd699f3 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -565,11 +565,6 @@ void OutOfProcessWebView::debug_request(DeprecatedString const& request, Depreca client().async_debug_request(request, argument); } -void OutOfProcessWebView::get_source() -{ - client().async_get_source(); -} - void OutOfProcessWebView::inspect_dom_tree() { client().async_inspect_dom_tree(); diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h index e75200fbbe..b817d8f892 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -40,7 +40,6 @@ public: void load_empty_document(); void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {}); - void get_source(); void inspect_dom_tree(); struct DOMNodeProperties { diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 66d84fdcab..800ade5d4f 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -42,4 +42,9 @@ void ViewImplementation::reset_zoom() update_zoom(); } +void ViewImplementation::get_source() +{ + client().async_get_source(); +} + } diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index 34fac89815..fc0b173f6c 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -22,6 +22,7 @@ public: void zoom_in(); void zoom_out(); void reset_zoom(); + void get_source(); virtual void notify_server_did_layout(Badge, Gfx::IntSize content_size) = 0; virtual void notify_server_did_paint(Badge, i32 bitmap_id) = 0;