Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 3d83fd3c6c7a112f7e5cf02df7f2d22a42880efa..9b253f3dc1eb0b3b3e65164dbe2c89be2d1dd1e6 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -51,6 +51,8 @@ |
#include "core/frame/Location.h" |
#include "core/frame/PageScaleConstraintsSet.h" |
#include "core/frame/PerformanceMonitor.h" |
+#include "core/frame/RemoteFrame.h" |
+#include "core/frame/RemoteFrameView.h" |
#include "core/frame/Settings.h" |
#include "core/frame/VisualViewport.h" |
#include "core/html/HTMLFrameElement.h" |
@@ -4584,4 +4586,16 @@ int FrameView::initialViewportHeight() const { |
return m_initialViewportSize.height(); |
} |
+void FrameView::setViewportIntersectionFromParent( |
+ const IntRect& viewportIntersection) { |
+ m_remoteViewportIntersection = viewportIntersection; |
+ updateAllLifecyclePhases(); |
+} |
+ |
+IntRect FrameView::remoteViewportIntersection() { |
+ IntRect intersection(m_remoteViewportIntersection); |
+ intersection.move(scrollOffsetInt()); |
+ return intersection; |
+} |
+ |
} // namespace blink |