mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Ladybird+LibWebView: Move most of paint handling to LibWebView
Storing the backup bitmap is the same across Browser and Ladybird. Just peform that work in LibWebView, and handle only the implementation- specific nuances within the browsers.
This commit is contained in:
parent
15da77f4c4
commit
ea7e1b5f53
10 changed files with 34 additions and 63 deletions
|
@ -50,7 +50,6 @@ public:
|
|||
Optional<Paintable> paintable();
|
||||
|
||||
Function<void(Gfx::IntSize)> on_layout;
|
||||
Function<void()> on_ready_to_paint;
|
||||
|
||||
Function<void(Gfx::IntPoint)> on_scroll;
|
||||
|
||||
|
@ -63,7 +62,6 @@ private:
|
|||
WebViewBridge(Vector<Gfx::IntRect> screen_rects, float device_pixel_ratio, Optional<StringView> webdriver_content_ipc_path);
|
||||
|
||||
virtual void notify_server_did_layout(Badge<WebView::WebContentClient>, Gfx::IntSize content_size) override;
|
||||
virtual void notify_server_did_paint(Badge<WebView::WebContentClient>, i32 bitmap_id, Gfx::IntSize) override;
|
||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebView::WebContentClient>, Gfx::IntRect const&) override;
|
||||
virtual void notify_server_did_change_selection(Badge<WebView::WebContentClient>) override;
|
||||
virtual void notify_server_did_request_cursor_change(Badge<WebView::WebContentClient>, Gfx::StandardCursor cursor) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue