Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 1511ee1c4a0301e99ae2b031b98eef4312c8c150..e76606695d889fc241e50c85c596ddb7ccd14d80 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -38,6 +38,7 @@
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/RemoteFrame.h"
+#include "core/frame/RemoteFrameView.h"
#include "core/frame/Settings.h"
#include "core/frame/VisualViewport.h"
#include "core/html/HTMLTextAreaElement.h"
@@ -804,6 +805,18 @@ void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) {
}
}
+void WebFrameWidgetImpl::setRemoteViewportIntersection(
+ const WebRect& viewportIntersection,
+ const WebPoint& rootOffset) {
+ // Remote viewports are only applicable to local frames with remote ancestors.
+ if (!m_localRoot->parent() || !m_localRoot->parent()->isWebRemoteFrame())
+ return;
+ if (m_localRoot->frameView()) {
+ m_localRoot->frameView()->setViewportIntersectionFromParent(
+ viewportIntersection, rootOffset);
+ }
+}
+
void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame,
const WebMouseEvent& event) {
// FIXME: WebWidget doesn't have the method below.

Powered by Google App Engine
This is Rietveld 408576698