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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2860903003: Propagate viewport intersection across OOPIFs at the correct time (Closed)
Patch Set: DCHECK removed. Created 3 years, 7 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/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 0a34de2ebdd1c72b5513d2132c2bb5ad3adfcc90..afeca2559056188255867f381bb3cb345e4d3362 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4937,8 +4937,11 @@ void FrameView::UpdateViewportIntersectionsForSubtree(
for (Frame* child = frame_->Tree().FirstChild(); child;
child = child->Tree().NextSibling()) {
- if (!child->IsLocalFrame())
+ if (child->IsRemoteFrame()) {
+ if (RemoteFrameView* view = ToRemoteFrame(child)->View())
+ view->UpdateRemoteViewportIntersection();
continue;
+ }
if (FrameView* view = ToLocalFrame(child)->View())
view->UpdateViewportIntersectionsForSubtree(target_state);
}

Powered by Google App Engine
This is Rietveld 408576698