mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Move has_a_rendering_opportunity() to Navigable
This commit is contained in:
parent
a02d42dea2
commit
93e4a0de16
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/awesomekling
Commit: 93e4a0de16
Pull-request: https://github.com/SerenityOS/serenity/pull/21167
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 24 additions and 14 deletions
|
@ -145,9 +145,9 @@ void EventLoop::process()
|
|||
}
|
||||
};
|
||||
|
||||
// 2. Rendering opportunities: Remove from docs all Document objects whose browsing context do not have a rendering opportunity.
|
||||
// 2. Rendering opportunities: Remove from docs all Document objects whose node navigables do not have a rendering opportunity.
|
||||
docs.remove_all_matching([&](auto& document) {
|
||||
return document->browsing_context() && !document->browsing_context()->has_a_rendering_opportunity();
|
||||
return document->navigable() && !document->navigable()->has_a_rendering_opportunity();
|
||||
});
|
||||
|
||||
// 3. If docs is not empty, then set hasARenderingOpportunity to true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue