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

Unified Diff: content/renderer/render_widget.cc

Issue 12249002: Setting a custom background on a HiDPI display will result in the background only being applied to … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of latest trunk - only the AUTHORS files needed updating Created 7 years, 10 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 0c3f5e5fae8d9a4150b3ccd17f34784fd843166b..ef034dace018d94f3ae32747b5953d2394a232e8 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -774,6 +774,7 @@ void RenderWidget::PaintRect(const gfx::Rect& rect,
// Canvas could contain multiple update rects. Clip to given rect so that
// we don't accidentally clear other update rects.
canvas->save();
+ canvas->scale(device_scale_factor_, device_scale_factor_);
canvas->clipRect(gfx::RectToSkRect(rect));
canvas->drawPaint(paint);
canvas->restore();
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698