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

@@ -29,7 +29,6 @@
#include <LibWeb/HTML/TraversableNavigable.h>
#include <LibWeb/HTML/Window.h>
#include <LibWeb/HTML/WindowProxy.h>
#include <LibWeb/HighResolutionTime/TimeOrigin.h>
#include <LibWeb/Infra/Strings.h>
#include <LibWeb/Layout/Node.h>
#include <LibWeb/Loader/GeneratedPagesLoader.h>
@@ -1949,9 +1948,6 @@ void Navigable::scroll_offset_did_change()
// 3. Append doc to docs pending scroll event targets.
doc->pending_scroll_event_targets().append(*doc);
// OPTIMIZATION: We do this here instead of in HTML::EventLoop::process() to avoid redundant work.
doc->run_the_update_intersection_observations_steps(HighResolutionTime::unsafe_shared_current_time());
}
CSSPixelRect Navigable::to_top_level_rect(CSSPixelRect const& a_rect)