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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h

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.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
index db853a991eda100cf45a34b2c3fc271dfe328d11..da1e1841858a5eb7642f1db9bf88e24c29e64b9b 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
@@ -26,6 +26,7 @@ class IntersectionObserverEntry final
const IntRect& boundingClientRect,
const IntRect* rootBounds,
const IntRect& intersectionRect,
+ bool isIntersecting,
Element*);
double time() const { return m_time; }
@@ -33,6 +34,7 @@ class IntersectionObserverEntry final
ClientRect* boundingClientRect() const { return m_boundingClientRect; }
ClientRect* rootBounds() const { return m_rootBounds; }
ClientRect* intersectionRect() const { return m_intersectionRect; }
+ bool isIntersecting() const { return m_isIntersecting; }
Element* target() const { return m_target.get(); }
DECLARE_VIRTUAL_TRACE();
@@ -44,6 +46,7 @@ class IntersectionObserverEntry final
Member<ClientRect> m_rootBounds;
Member<ClientRect> m_intersectionRect;
Member<Element> m_target;
+ bool m_isIntersecting;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698