mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
31d7565cf3
commit
2d51b8c286
@@ -90,6 +90,16 @@ Gfx::IntRect OutOfProcessWebView::viewport_rect() const
|
||||
return visible_content_rect();
|
||||
}
|
||||
|
||||
Gfx::IntPoint OutOfProcessWebView::to_content_position(Gfx::IntPoint widget_position) const
|
||||
{
|
||||
return GUI::AbstractScrollableWidget::to_content_position(widget_position);
|
||||
}
|
||||
|
||||
Gfx::IntPoint OutOfProcessWebView::to_widget_position(Gfx::IntPoint content_position) const
|
||||
{
|
||||
return GUI::AbstractScrollableWidget::to_widget_position(content_position);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::update_zoom()
|
||||
{
|
||||
client().async_set_device_pixels_per_css_pixel(m_device_pixel_ratio * m_zoom_level);
|
||||
|
||||
Reference in New Issue
Block a user