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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1159983010: Record root layer's position in its TransformNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 6 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/trees/layer_tree_host_common_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 70dd418375148efb4a9d9be45fb9328146029411..b47831318b0a0f38cdec916df6c8d56ccc8991a6 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -282,6 +282,8 @@ bool AddTransformNodeIfNeeded(
if (is_root) {
node->data.post_local.Scale(post_local_scale_factor,
post_local_scale_factor);
+ node->data.post_local.Translate(layer->position().x(),
+ layer->position().y());
} else {
node->data.post_local_scale_factor = post_local_scale_factor;
node->data.source_offset = source_offset;
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698