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

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

Issue 1244113003: Set needsLayout on WebViewPlugin's container when initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 9d2ac91d5956fb458eb892adb7650ec5dd9046f5..0a2c15b764e24b37ffd5b34b7e8ba5db52c7dc98 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -112,6 +112,7 @@ WebPluginContainer* WebViewPlugin::container() const { return container_; }
bool WebViewPlugin::initialize(WebPluginContainer* container) {
container_ = container;
if (container_) {
chrishtr 2015/07/21 20:43:58 Please add a comment summarizing why setNeedsLayou
Stephen Chennney 2015/07/21 21:03:11 Done.
+ container_->setNeedsLayout();
chrishtr 2015/07/21 20:43:58 This call is definitely needed. Here is what can h
Stephen Chennney 2015/07/21 21:03:11 Acknowledged.
old_title_ = container_->element().getAttribute("title");
// Propagate device scale to inner webview to load the correct resource
« 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