Index: third_party/WebKit/Source/core/frame/FrameView.h |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h |
index 8ff8a82ed6128864624583ed2322fb8a45887e6e..bf824e428aa0775a64e9649597af4b326cede1a2 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.h |
+++ b/third_party/WebKit/Source/core/frame/FrameView.h |
@@ -743,6 +743,12 @@ class CORE_EXPORT FrameView final |
// Only for SPv2. |
std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); |
+ // Called on a view for a LocalFrame with a RemoteFrame parent. This makes |
+ // viewport intersection available that accounts for remote ancestor frames |
+ // and their respective scroll positions, clips, etc. |
+ void setViewportIntersectionFromParent(const IntRect&); |
+ IntRect remoteViewportIntersection(); |
+ |
protected: |
// Scroll the content via the compositor. |
bool scrollContentsFastPath(const IntSize& scrollDelta); |
@@ -1091,6 +1097,8 @@ class CORE_EXPORT FrameView final |
Member<ElementVisibilityObserver> m_visibilityObserver; |
+ IntRect m_remoteViewportIntersection; |
+ |
// For testing. |
struct ObjectPaintInvalidation { |
String name; |