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

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

Issue 1998733002: IntersectionObserver: add thresholds attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: test expectation fix Created 4 years, 7 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/IntersectionObserver.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.h b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
index 850cc569928fa386e9c9a25cb2e37d421787dd02..fc0171fc7ea7446b34430dc0c974c204446f1a05 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
@@ -35,6 +35,7 @@ public:
HeapVector<Member<IntersectionObserverEntry>> takeRecords();
Element* root() const;
String rootMargin() const;
+ const Vector<float>& thresholds() const { return m_thresholds; }
Node* rootNode() const { return m_root.get(); }
LayoutObject* rootLayoutObject() const;

Powered by Google App Engine
This is Rietveld 408576698