mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Suppress rendering due to view transitions
This also fixes a bug in the view transitions code that was required to get the imported test to pass. The code for setting the initial containing block size just did not set the right thing, since doing so would trigger an error later on. That later error resulted from walking up the tree, without considering that the document element has a parent that is not itself an element. (and then doing element things to it)
This commit is contained in:
committed by
Jelle Raaijmakers
parent
18cf540bfb
commit
17e5289524
Notes:
github-actions[bot]
2025-09-09 08:26:40 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/17e5289524f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6135 Reviewed-by: https://github.com/gmta ✅
@@ -344,7 +344,9 @@ void EventLoop::update_the_rendering()
|
||||
if (document.hidden())
|
||||
return false;
|
||||
|
||||
// FIXME: doc's rendering is suppressed for view transitions; or
|
||||
// doc's rendering is suppressed for view transitions; or
|
||||
if (document.rendering_suppression_for_view_transitions())
|
||||
return false;
|
||||
|
||||
auto navigable = document.navigable();
|
||||
if (!navigable)
|
||||
|
||||
Reference in New Issue
Block a user