Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 1586923002: [UseZoomForDSF] Guest view support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index b56112781909e34a5864d55dca1824d3160e9e66..309ad7f761184e6aee54a9e28a2f75f6ec6eee28 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -129,7 +129,6 @@ void BrowserPlugin::OnSetChildFrameSurface(
EnableCompositing(true);
DCHECK(compositing_helper_.get());
-
compositing_helper_->OnSetSurface(surface_id, frame_size, scale_factor,
sequence);
}
@@ -440,7 +439,11 @@ void BrowserPlugin::updateGeometry(const WebRect& window_rect,
const WebVector<WebRect>& cut_outs_rects,
bool is_visible) {
gfx::Rect old_view_rect = view_rect_;
- view_rect_ = window_rect;
+ // Convert the window_rect_ in viewport to css.
+ WebRect rect_in_css(window_rect);
+ blink::WebView* webview = container()->element().document().frame()->view();
+ RenderView::FromWebView(webview)->convertViewportToWindow(&rect_in_css);
+ view_rect_ = rect_in_css;
if (!ready_) {
if (delegate_)

Powered by Google App Engine
This is Rietveld 408576698