| 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 5e8e7341e02c6ab8a2594ca484eea4a8b104ed0b..9a8cac29f64884212a3a39725332b4245446e9da 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -4907,12 +4907,14 @@ void FrameView::UpdateViewportIntersectionsForSubtree(
|
|
|
| if (target_state == DocumentLifecycle::kPaintClean) {
|
| RecordDeferredLoadingStats();
|
| - // Notify javascript IntersectionObservers
|
| - if (GetFrame().GetDocument()->GetIntersectionObserverController()) {
|
| - GetFrame()
|
| - .GetDocument()
|
| - ->GetIntersectionObserverController()
|
| - ->ComputeTrackedIntersectionObservations();
|
| + if (!NeedsLayout()) {
|
| + // Notify javascript IntersectionObservers
|
| + if (GetFrame().GetDocument()->GetIntersectionObserverController()) {
|
| + GetFrame()
|
| + .GetDocument()
|
| + ->GetIntersectionObserverController()
|
| + ->ComputeTrackedIntersectionObservations();
|
| + }
|
| }
|
| }
|
|
|
|
|