mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 04:21:54 +00:00
LibWeb: Use Document::hidden() instead of comparing state to "hidden"
Just noticed this unnecessary string comparison in the rendering task.
This commit is contained in:
parent
5c6b879715
commit
3536ba9a88
Notes:
github-actions[bot]
2024-10-25 08:22:07 +00:00
Author: https://github.com/awesomekling
Commit: 3536ba9a88
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1956
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ void EventLoop::update_the_rendering()
|
|||
// FIXME: doc is render-blocked;
|
||||
|
||||
// doc's visibility state is "hidden";
|
||||
if (document->visibility_state() == "hidden"sv)
|
||||
if (document->hidden())
|
||||
return true;
|
||||
|
||||
// FIXME: doc's rendering is suppressed for view transitions; or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue