mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Call set_needs_display() if navigable is scrolled or resized
`m_needs_repaint = true` is not enough because it doesn't schedule repaint of a parent navigable. Fixes the bug when an iframe is not repainted after scrolling.
This commit is contained in:
parent
087d400472
commit
40742d95e6
Notes:
github-actions[bot]
2024-08-08 10:39:05 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/40742d95e66 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1007
1 changed files with 2 additions and 2 deletions
|
@ -1994,7 +1994,7 @@ void Navigable::set_viewport_size(CSSPixelSize size)
|
|||
document->invalidate_style();
|
||||
document->set_needs_layout();
|
||||
}
|
||||
m_needs_repaint = true;
|
||||
set_needs_display();
|
||||
|
||||
if (auto document = active_document()) {
|
||||
document->inform_all_viewport_clients_about_the_current_viewport_rect();
|
||||
|
@ -2009,7 +2009,7 @@ void Navigable::perform_scroll_of_viewport(CSSPixelPoint new_position)
|
|||
if (m_viewport_scroll_offset != new_position) {
|
||||
m_viewport_scroll_offset = new_position;
|
||||
scroll_offset_did_change();
|
||||
m_needs_repaint = true;
|
||||
set_needs_display();
|
||||
|
||||
if (auto document = active_document())
|
||||
document->inform_all_viewport_clients_about_the_current_viewport_rect();
|
||||
|
|
Loading…
Reference in a new issue