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

Unified Diff: cc/layers/tiled_layer.cc

Issue 13975019: Merge 194269 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1479/src/
Patch Set: Created 7 years, 8 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 | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/tiled_layer.cc
===================================================================
--- cc/layers/tiled_layer.cc (revision 194303)
+++ cc/layers/tiled_layer.cc (working copy)
@@ -470,9 +470,11 @@
// The update_rect should be in layer space. So we have to convert the
// paint_rect from content space to layer space.
float width_scale =
- bounds().width() / static_cast<float>(content_bounds().width());
+ paint_properties().bounds.width() /
+ static_cast<float>(content_bounds().width());
float height_scale =
- bounds().height() / static_cast<float>(content_bounds().height());
+ paint_properties().bounds.height() /
+ static_cast<float>(content_bounds().height());
update_rect_ = gfx::ScaleRect(paint_rect, width_scale, height_scale);
// Calling PrepareToUpdate() calls into WebKit to paint, which may have the
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698