mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 07:22:22 +00:00
Browser+Ladybird+LibWebView: Virtualize computing content/widget points
This will allow moving some copy-pasted functionality from web view implementations to the base LibWebView class.
This commit is contained in:
parent
31d7565cf3
commit
2d51b8c286
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/trflynn89
Commit: 2d51b8c286
Pull-request: https://github.com/SerenityOS/serenity/pull/18893
6 changed files with 37 additions and 22 deletions
|
@ -158,6 +158,8 @@ private:
|
|||
void create_client(WebView::EnableCallgrindProfiling) override { }
|
||||
|
||||
virtual Gfx::IntRect viewport_rect() const override { return m_viewport_rect; }
|
||||
virtual Gfx::IntPoint to_content_position(Gfx::IntPoint widget_position) const override { return widget_position; }
|
||||
virtual Gfx::IntPoint to_widget_position(Gfx::IntPoint content_position) const override { return content_position; }
|
||||
|
||||
private:
|
||||
Gfx::IntRect m_viewport_rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue