mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
LibWeb: Move has_a_rendering_opportunity() to Navigable
This commit is contained in:
parent
a02d42dea2
commit
93e4a0de16
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