1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:57:35 +00:00
serenity/Libraries/LibWeb/Page
Andreas Kling 15e35b0d71 LibWeb: Layout viewport rect was lagging behind when resizing
Layout was using an outdated viewport rect that we set *after* doing
a layout due to resize. That meant that layout-in-response-to-resize
was always lagging behind the current size of the view.

The root of this problem was how Frame kept both a viewport rect
(with both scroll offset and size) and a frame size. To fix this,
only store the viewport scroll offset, and always use the frame size.
This way they can't get out of sync and the problem goes away. :^)

Fixes #4250.
2020-12-02 23:50:19 +01:00
..
EventHandler.cpp LibWeb: Abort event handling if underlying layout tree disappears 2020-11-29 16:43:12 +01:00
EventHandler.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
Frame.cpp LibWeb: Layout viewport rect was lagging behind when resizing 2020-12-02 23:50:19 +01:00
Frame.h LibWeb: Layout viewport rect was lagging behind when resizing 2020-12-02 23:50:19 +01:00
Page.cpp LibWeb: Add OutOfProcessWebView::load_html() 2020-10-08 23:20:52 +02:00
Page.h LibWeb: Make Frame point weakly to Page 2020-11-12 18:29:55 +01:00