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 64b7372f33952e86bdeab428f10cd522dea8979c..cbd84efd1fc270d43870475f39d35652cd811cfa 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.h |
+++ b/third_party/WebKit/Source/core/frame/FrameView.h |
@@ -738,6 +738,14 @@ 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(); |
+ |
+ IntRect viewportIntersection(); |
+ |
protected: |
// Scroll the content via the compositor. |
bool scrollContentsFastPath(const IntSize& scrollDelta); |
@@ -1089,6 +1097,8 @@ class CORE_EXPORT FrameView final |
bool m_suppressAdjustViewSize; |
bool m_allowsLayoutInvalidationAfterLayoutClean; |
+ IntRect m_remoteViewportIntersection; |
+ |
// For testing. |
struct ObjectPaintInvalidation { |
String name; |