Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2859543003: Don't run IntersectionObserver lifecycle in frames with dirty layout. (Closed)
Patch Set: test expectation Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 542638cc60e7f3ee01de268029f41c582d0ef704..4300359752fe850f6fd464f51751f96332ea3da8 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4912,7 +4912,7 @@ void FrameView::UpdateViewportIntersectionsForSubtree(
if (!GetFrame().GetDocument()->IsActive())
return;
- if (target_state == DocumentLifecycle::kPaintClean) {
+ if (target_state == DocumentLifecycle::kPaintClean && !NeedsLayout()) {
RecordDeferredLoadingStats();
// Notify javascript IntersectionObservers
if (GetFrame().GetDocument()->GetIntersectionObserverController()) {

Powered by Google App Engine
This is Rietveld 408576698