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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObservation.cpp

Issue 2662993002: [IntersectionObserver] Add isIntersecting field. (Closed)
Patch Set: webexposed Created 3 years, 10 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/dom/IntersectionObservation.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
index e8e803085618f7114f6a5e09ca261f70ef950e75..e1471030d641808fed3a451df52f92dcdb868776 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
@@ -75,7 +75,7 @@ void IntersectionObservation::computeIntersectionObservations(
m_shouldReportRootBounds ? &snappedRootBounds : nullptr;
IntersectionObserverEntry* newEntry = new IntersectionObserverEntry(
timestamp, newVisibleRatio, geometry.targetIntRect(), rootBoundsPointer,
- geometry.intersectionIntRect(), target());
+ geometry.intersectionIntRect(), geometry.doesIntersect(), target());
observer()->enqueueIntersectionObserverEntry(*newEntry);
setLastThresholdIndex(newThresholdIndex);
}

Powered by Google App Engine
This is Rietveld 408576698