|
@@ -12,6 +12,7 @@
|
|
|
#include <LibWeb/DOM/Window.h>
|
|
|
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
|
|
#include <LibWeb/HighResolutionTime/Performance.h>
|
|
|
+#include <LibWeb/Page/BrowsingContext.h>
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
@@ -139,7 +140,10 @@ void EventLoop::process()
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- // FIXME: 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 browsing context do not have a rendering opportunity.
|
|
|
+ docs.remove_all_matching([&](auto& document) {
|
|
|
+ return document->browsing_context() && !document->browsing_context()->has_a_rendering_opportunity();
|
|
|
+ });
|
|
|
|
|
|
// 3. If docs is not empty, then set hasARenderingOpportunity to true.
|
|
|
if (!docs.is_empty())
|