summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-05-17 10:12:13 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-17 19:47:05 +0200
commit2d51b8c286400aa5ef3f3872aa0596880885b7f2 (patch)
tree87624ca2961fcc87bcc9ea1f61d7b8398230356e /Userland/Utilities
parent31d7565cf327767c4a986a5c2500798fc6104010 (diff)
downloadserenity-2d51b8c286400aa5ef3f3872aa0596880885b7f2.zip
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.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/headless-browser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp
index 75a1ffa299..a0ab097a7a 100644
--- a/Userland/Utilities/headless-browser.cpp
+++ b/Userland/Utilities/headless-browser.cpp
@@ -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;