From 037abb5d1922095156d56cceeb4f9e7ca0e6793d Mon Sep 17 00:00:00 2001 From: "qinmin@chromium.org" Date: Wed, 13 Feb 2013 18:29:46 +0000 Subject: Fix the size of webview in WebViewPlugin We didn't set the size of webview in https://codereview.chromium.org/12218122 This change should fix that Scaling should be done by the Compositor thread, and we are no longer using css transform to do scaling. BUG=175121 Review URL: https://codereview.chromium.org/12230018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182263 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/webview_plugin.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webkit/plugins/webview_plugin.cc b/webkit/plugins/webview_plugin.cc index 6b80008..dc962e9 100644 --- a/webkit/plugins/webview_plugin.cc +++ b/webkit/plugins/webview_plugin.cc @@ -140,8 +140,10 @@ void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) { void WebViewPlugin::updateGeometry( const WebRect& frame_rect, const WebRect& clip_rect, const WebVector& cut_out_rects, bool is_visible) { - if (static_cast(frame_rect) != rect_) + if (static_cast(frame_rect) != rect_) { rect_ = frame_rect; + web_view_->resize(WebSize(frame_rect.width, frame_rect.height)); + } } bool WebViewPlugin::acceptsInputEvents() { -- cgit v1.1