Commit 037abb5d authored by qinmin@chromium.org's avatar qinmin@chromium.org

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
parent 25b615bb
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment