summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 18:29:46 +0000
committerqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 18:29:46 +0000
commit037abb5d1922095156d56cceeb4f9e7ca0e6793d (patch)
tree67a4d19d842019c25be3e4423dd5ccc2c7053029 /webkit
parent25b615bb94b457a98e8ff1acbfe656c773bd0541 (diff)
downloadchromium_src-037abb5d1922095156d56cceeb4f9e7ca0e6793d.zip
chromium_src-037abb5d1922095156d56cceeb4f9e7ca0e6793d.tar.gz
chromium_src-037abb5d1922095156d56cceeb4f9e7ca0e6793d.tar.bz2
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
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/webview_plugin.cc4
1 files changed, 3 insertions, 1 deletions
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<WebRect>& cut_out_rects, bool is_visible) {
- if (static_cast<gfx::Rect>(frame_rect) != rect_)
+ if (static_cast<gfx::Rect>(frame_rect) != rect_) {
rect_ = frame_rect;
+ web_view_->resize(WebSize(frame_rect.width, frame_rect.height));
+ }
}
bool WebViewPlugin::acceptsInputEvents() {