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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 1124173008: Plugin Power Saver: Unthrottle dynamically sized plugins correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add defines Created 5 years, 6 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: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index f4362543d982657528cbffd089081b4cf2e2e6aa..43cd43e350af4bc1180154e6491dd65751b76234 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -171,6 +171,9 @@ void WebViewPlugin::updateGeometry(const WebRect& window_rect,
WebSize newSize(window_rect.width, window_rect.height);
web_view_->resize(newSize);
}
+
+ if (delegate_)
+ delegate_->OnUnobscuredSizeUpdate(gfx::Rect(unobscured_rect).size());
}
void WebViewPlugin::updateFocus(bool focused, blink::WebFocusType focus_type) {

Powered by Google App Engine
This is Rietveld 408576698