mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Move has_a_rendering_opportunity() to Navigable
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/93e4a0de16 Pull-request: https://github.com/SerenityOS/serenity/pull/21167 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user