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 9072dde26eeabe8fa9b92f57df16bb469db5dcbd..dde3e72d021d2506e8607b0851ad3391df92da98 100644 |
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h |
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h |
@@ -32,8 +32,8 @@ public: |
void unobserve(Element*, ExceptionState&); |
HeapVector<Member<IntersectionObserverEntry>> takeRecords(); |
- Element* root() { return m_root.get(); } |
- LayoutObject* rootLayoutObject(); |
+ Node* root() const { return m_root.get(); } |
+ LayoutObject* rootLayoutObject() const; |
bool hasPercentMargin() const; |
const Length& topMargin() const { return m_topMargin; } |
const Length& rightMargin() const { return m_rightMargin; } |
@@ -52,12 +52,12 @@ public: |
DECLARE_TRACE(); |
private: |
- explicit IntersectionObserver(IntersectionObserverCallback&, Element&, const Vector<Length>& rootMargin, const Vector<float>& thresholds); |
+ explicit IntersectionObserver(IntersectionObserverCallback&, Node&, const Vector<Length>& rootMargin, const Vector<float>& thresholds); |
void checkRootAndDetachIfNeeded(); |
Member<IntersectionObserverCallback> m_callback; |
- WeakPtrWillBeWeakMember<Element> m_root; |
+ WeakPtrWillBeWeakMember<Node> m_root; |
HeapHashSet<WeakMember<IntersectionObservation>> m_observations; |
HeapVector<Member<IntersectionObserverEntry>> m_entries; |
Vector<float> m_thresholds; |