| 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 3281fcea96352ef256fc00bd74383250e40b02ac..b1678d21b16b5078f1757ad4fffa61ccfc87905a 100644
|
| --- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| @@ -65,6 +65,9 @@ class CORE_EXPORT IntersectionObserver final
|
|
|
| Node* rootNode() const { return m_root.get(); }
|
| LayoutObject* rootLayoutObject() const;
|
| + // rootLayoutObjectForIntersection can return nullptr, if the root is
|
| + // a main frame.
|
| + LayoutObject* rootLayoutObjectForIntersection() const;
|
| const Length& topMargin() const { return m_topMargin; }
|
| const Length& rightMargin() const { return m_rightMargin; }
|
| const Length& bottomMargin() const { return m_bottomMargin; }
|
| @@ -93,7 +96,8 @@ class CORE_EXPORT IntersectionObserver final
|
| explicit IntersectionObserver(IntersectionObserverCallback&,
|
| Node&,
|
| const Vector<Length>& rootMargin,
|
| - const Vector<float>& thresholds);
|
| + const Vector<float>& thresholds,
|
| + bool intersectWithRemoteAncestors);
|
| void clearWeakMembers(Visitor*);
|
|
|
| Member<IntersectionObserverCallback> m_callback;
|
| @@ -106,6 +110,7 @@ class CORE_EXPORT IntersectionObserver final
|
| Length m_bottomMargin;
|
| Length m_leftMargin;
|
| InitialState m_initialState;
|
| + bool m_intersectWithRemoteAncestors;
|
| };
|
|
|
| } // namespace blink
|
|
|