diff options
author | bokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 00:12:35 +0000 |
---|---|---|
committer | bokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 00:12:35 +0000 |
commit | 1fea1d933ba6ff1f1e959786123b6e67e84beb31 (patch) | |
tree | 434dad7323dbc6678f71c37fe4cd41f2fe8c28e8 /components/plugins/renderer | |
parent | 58d094945371642ede841e9262155eb42d9364a6 (diff) | |
download | chromium_src-1fea1d933ba6ff1f1e959786123b6e67e84beb31.zip chromium_src-1fea1d933ba6ff1f1e959786123b6e67e84beb31.tar.gz chromium_src-1fea1d933ba6ff1f1e959786123b6e67e84beb31.tar.bz2 |
Fixed webview_plugin placeholders not rendering.
The plugin placeholder was loading into a WebView, which had viewport
enabled so the placeholder was loading the page at the 980px layout width.
For some reason this caused it not to render at all. Setting the plugin WebView
to use the FixedLayoutSize pegged to the WebView size fixes the problem.
BUG=320621
Review URL: https://codereview.chromium.org/81373002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/plugins/renderer')
-rw-r--r-- | components/plugins/renderer/webview_plugin.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc index f8ddabb..7d8b9fe 100644 --- a/components/plugins/renderer/webview_plugin.cc +++ b/components/plugins/renderer/webview_plugin.cc @@ -138,7 +138,9 @@ void WebViewPlugin::updateGeometry(const WebRect& frame_rect, bool is_visible) { if (static_cast<gfx::Rect>(frame_rect) != rect_) { rect_ = frame_rect; - web_view_->resize(WebSize(frame_rect.width, frame_rect.height)); + WebSize newSize(frame_rect.width, frame_rect.height); + web_view_->setFixedLayoutSize(newSize); + web_view_->resize(newSize); } } |