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