diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-14 18:36:16 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-25 07:58:58 -0700 |
commit | a14b00e046f02fd39cb27f033686c1b8d3747673 (patch) | |
tree | 9700532245f33a0d699dfde0305a4f0e1ab2ed27 /Ladybird | |
parent | b1acf17d3c5b10e4b573b37000c8ffb6f860b695 (diff) | |
download | serenity-a14b00e046f02fd39cb27f033686c1b8d3747673.zip |
Ladybird: Remove redundant subtraction of scrollbar from viewport rect
Diffstat (limited to 'Ladybird')
-rw-r--r-- | Ladybird/WebView.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Ladybird/WebView.cpp b/Ladybird/WebView.cpp index 8bc6e838a5..a53f5d3fcf 100644 --- a/Ladybird/WebView.cpp +++ b/Ladybird/WebView.cpp @@ -618,10 +618,6 @@ void WebView::resizeEvent(QResizeEvent* event) auto scaled_width = int(event->size().width() / m_inverse_pixel_scaling_ratio); auto scaled_height = int(event->size().height() / m_inverse_pixel_scaling_ratio); Gfx::IntRect rect(horizontalScrollBar()->value(), verticalScrollBar()->value(), scaled_width, scaled_height); - if (verticalScrollBar()->isVisible()) - rect.set_width(rect.width() - verticalScrollBar()->width()); - if (horizontalScrollBar()->isVisible()) - rect.set_height(rect.height() - horizontalScrollBar()->height()); m_page_client->set_viewport_rect(rect); } |