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

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

Issue 2860903003: Propagate viewport intersection across OOPIFs at the correct time (Closed)
Patch Set: Rebase 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..ec116a3566c54eb0fa0e0a64c6ef9a6051b1fd1b 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4937,8 +4937,12 @@ void FrameView::UpdateViewportIntersectionsForSubtree(
for (Frame* child = frame_->Tree().FirstChild(); child;
child = child->Tree().NextSibling()) {
- if (!child->IsLocalFrame())
+ DCHECK(child->IsRemoteFrame() || child->IsLocalFrame());
dcheng 2017/05/05 18:25:14 Isn't this DCHECK always going to be true?
kenrb 2017/05/05 19:01:31 Aren't *all* DCHECKs supposed to be always true? :
+ if (child->IsRemoteFrame()) {
+ if (RemoteFrameView* view = ToRemoteFrame(child)->View())
+ view->UpdateRemoteViewportIntersection();
dcheng 2017/05/05 18:25:14 It almost feels like View() and <update intersecti
kenrb 2017/05/05 19:01:31 That might be reasonable for View(). For UpdateVie
dcheng 2017/05/05 22:47:53 Do you mind poking at this in a followup? FWIW, I
continue;
+ }
if (FrameView* view = ToLocalFrame(child)->View())
view->UpdateViewportIntersectionsForSubtree(target_state);
}

Powered by Google App Engine
This is Rietveld 408576698