Chromium Code Reviews| 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); |
| } |