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

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

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Fix merge conflict Created 4 years, 1 month 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 22bb7a466e4518b68132743e996f6800d8329899..7592564b6922580ffb58329258c161844a7ad5de 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -822,6 +822,17 @@ void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) {
}
}
+void WebFrameWidgetImpl::setRemoteViewportIntersection(
+ const WebRect& viewportIntersection) {
+ // 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);
+ }
+}
+
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