Commit bac2a356 authored by Stefan Zager's avatar Stefan Zager Committed by Commit Bot

Only update remote frame viewport intersection when paint is clean.

The viewport intersection shouldn't be updated for a force layout or
other non-BeginMainFrame lifecycle update.

BUG=842368
R=kenrb@chromium.org

Change-Id: Ifd656b495e60e8b1413df8126c7b6ff95933abaf
Reviewed-on: https://chromium-review.googlesource.com/1056491Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558133}
parent 28cb9334
...@@ -67,6 +67,8 @@ void RemoteFrameView::UpdateViewportIntersectionsForSubtree( ...@@ -67,6 +67,8 @@ void RemoteFrameView::UpdateViewportIntersectionsForSubtree(
DocumentLifecycle::LifecycleState target_state) { DocumentLifecycle::LifecycleState target_state) {
if (!remote_frame_->OwnerLayoutObject()) if (!remote_frame_->OwnerLayoutObject())
return; return;
if (target_state < DocumentLifecycle::kPaintClean)
return;
LocalFrameView* local_root_view = LocalFrameView* local_root_view =
ToLocalFrame(remote_frame_->Tree().Parent())->LocalFrameRoot().View(); ToLocalFrame(remote_frame_->Tree().Parent())->LocalFrameRoot().View();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment