LibWeb: Remove did_request_scroll IPC call
No longer used after moving scrollbar painting into WebContent.
This commit is contained in:
parent
5285e22f2a
commit
cc3d95a356
Notes:
sideshowbarker
2024-07-17 08:27:05 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/cc3d95a356 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/21
7 changed files with 0 additions and 18 deletions
|
@ -288,7 +288,6 @@ public:
|
|||
virtual void page_did_unhover_link() { }
|
||||
virtual void page_did_change_favicon(Gfx::Bitmap const&) { }
|
||||
virtual void page_did_layout() { }
|
||||
virtual void page_did_request_scroll(i32, i32) { }
|
||||
virtual void page_did_request_scroll_to(CSSPixelPoint) { }
|
||||
virtual void page_did_request_alert(String const&) { }
|
||||
virtual void page_did_request_confirm(String const&) { }
|
||||
|
|
|
@ -154,7 +154,6 @@ public:
|
|||
Function<void()> on_navigate_forward;
|
||||
Function<void()> on_refresh;
|
||||
Function<void(Gfx::Bitmap const&)> on_favicon_change;
|
||||
Function<void(i32, i32)> on_scroll_by_delta;
|
||||
Function<void(Gfx::IntPoint)> on_scroll_to_point;
|
||||
Function<void(Gfx::StandardCursor)> on_cursor_change;
|
||||
Function<void(Gfx::IntPoint, ByteString const&)> on_enter_tooltip_area;
|
||||
|
|
|
@ -149,14 +149,6 @@ void WebContentClient::did_change_url(u64 page_id, URL::URL const& url)
|
|||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_scroll(u64 page_id, i32 x_delta, i32 y_delta)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
if (view->on_scroll_by_delta)
|
||||
view->on_scroll_by_delta(x_delta, y_delta);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_scroll_to(u64 page_id, Gfx::IntPoint scroll_position)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
|
|
|
@ -46,7 +46,6 @@ private:
|
|||
virtual void did_layout(u64 page_id, Gfx::IntSize) override;
|
||||
virtual void did_change_title(u64 page_id, ByteString const&) override;
|
||||
virtual void did_change_url(u64 page_id, URL::URL const&) override;
|
||||
virtual void did_request_scroll(u64 page_id, i32, i32) override;
|
||||
virtual void did_request_scroll_to(u64 page_id, Gfx::IntPoint) override;
|
||||
virtual void did_enter_tooltip_area(u64 page_id, Gfx::IntPoint, ByteString const&) override;
|
||||
virtual void did_leave_tooltip_area(u64 page_id) override;
|
||||
|
|
|
@ -309,11 +309,6 @@ Gfx::IntRect PageClient::page_did_request_fullscreen_window()
|
|||
return client().did_request_fullscreen_window(m_id);
|
||||
}
|
||||
|
||||
void PageClient::page_did_request_scroll(i32 x_delta, i32 y_delta)
|
||||
{
|
||||
client().async_did_request_scroll(m_id, x_delta, y_delta);
|
||||
}
|
||||
|
||||
void PageClient::page_did_request_scroll_to(Web::CSSPixelPoint scroll_position)
|
||||
{
|
||||
// NOTE: The viewport scroll position is updated preemptively, so that subsequent
|
||||
|
|
|
@ -107,7 +107,6 @@ private:
|
|||
virtual Gfx::IntRect page_did_request_maximize_window() override;
|
||||
virtual Gfx::IntRect page_did_request_minimize_window() override;
|
||||
virtual Gfx::IntRect page_did_request_fullscreen_window() override;
|
||||
virtual void page_did_request_scroll(i32, i32) override;
|
||||
virtual void page_did_request_scroll_to(Web::CSSPixelPoint) override;
|
||||
virtual void page_did_enter_tooltip_area(Web::CSSPixelPoint, ByteString const&) override;
|
||||
virtual void page_did_leave_tooltip_area() override;
|
||||
|
|
|
@ -29,7 +29,6 @@ endpoint WebContentClient
|
|||
did_layout(u64 page_id, Gfx::IntSize content_size) =|
|
||||
did_change_title(u64 page_id, ByteString title) =|
|
||||
did_change_url(u64 page_id, URL::URL url) =|
|
||||
did_request_scroll(u64 page_id, i32 x_delta, i32 y_delta) =|
|
||||
did_request_scroll_to(u64 page_id, Gfx::IntPoint scroll_position) =|
|
||||
did_enter_tooltip_area(u64 page_id, Gfx::IntPoint content_position, ByteString title) =|
|
||||
did_leave_tooltip_area(u64 page_id) =|
|
||||
|
|
Loading…
Add table
Reference in a new issue