Skip to content

Commit

Permalink
Fix the size of webview in WebViewPlugin
Browse files Browse the repository at this point in the history
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
  • Loading branch information
qinmin@chromium.org committed Feb 13, 2013
1 parent 25b615b commit 037abb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webkit/plugins/webview_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 037abb5

Please sign in to comment.