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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.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/IntersectionObserverEntry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
index 9f01a4eaeded3f5805dc75248fe5647965f35155..1cb9427cf1d5a1a8a94514551445d2b14190c649 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
@@ -14,13 +14,15 @@ IntersectionObserverEntry::IntersectionObserverEntry(
const IntRect& boundingClientRect,
const IntRect* rootBounds,
const IntRect& intersectionRect,
+ bool isIntersecting,
Element* target)
: m_time(time),
m_intersectionRatio(intersectionRatio),
m_boundingClientRect(ClientRect::create(boundingClientRect)),
m_rootBounds(rootBounds ? ClientRect::create(*rootBounds) : nullptr),
m_intersectionRect(ClientRect::create(intersectionRect)),
- m_target(target)
+ m_target(target),
+ m_isIntersecting(isIntersecting)
{}

Powered by Google App Engine
This is Rietveld 408576698