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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 958973002: Call WebFrameWidget::setVisibilityState on RFI::WasShown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index ff57dc645b6984d8559b38bf51563280d303c9db..19b0bb280e650f0b35f8913170c154ff87981155 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3628,8 +3628,8 @@ void RenderFrameImpl::WasShown() {
// VisibilityState remain a page-level concept or move to frames?
// The semantics of 'Show' might have to change here.
if (render_widget_) {
- render_view()->webview()->setVisibilityState(
- blink::WebPageVisibilityStateVisible, false);
+ static_cast<blink::WebFrameWidget*>(render_widget_->webwidget())->
+ setVisibilityState(blink::WebPageVisibilityStateVisible, false);
}
FOR_EACH_OBSERVER(RenderFrameObserver, observers_, WasShown());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698