Revert "LibWeb: Run IntersectionObserver steps only when needed"

This reverts commit 11b4216e65.
This commit is contained in:
Andreas Kling
2024-03-19 13:04:39 +01:00
parent 1e023a589d
commit 4e4b9f440f
3 changed files with 3 additions and 8 deletions

View File

@@ -249,7 +249,9 @@ void EventLoop::process()
});
// 14. For each fully active Document in docs, run the update intersection observations steps for that Document, passing in now as the timestamp. [INTERSECTIONOBSERVER]
// OPTIMIZATION: We do this automatically after layout or viewport changes, so we don't need to do it here.
for_each_fully_active_document_in_docs([&](DOM::Document& document) {
document.run_the_update_intersection_observations_steps(now);
});
// FIXME: 15. Invoke the mark paint timing algorithm for each Document object in docs.