Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
cc: Use property tree index accessors in Layer::On<Property>Animated
Browse files Browse the repository at this point in the history
This fixes two places where we directly access property tree indices
rather than using their accessors.

[email protected]
BUG=489725

Review URL: https://codereview.chromium.org/1144343002

Cr-Commit-Position: refs/heads/master@{#330818}
(cherry picked from commit dc1cefd)

Review URL: https://codereview.chromium.org/1148293003

Cr-Commit-Position: refs/branch-heads/2403@{#49}
Cr-Branched-From: f54b809-refs/heads/master@{#330231}
  • Loading branch information
alijuma committed May 21, 2015
1 parent 03b7e16 commit ffa673b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cc/layers/layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ void Layer::OnOpacityAnimated(float opacity) {
if (layer_tree_host_) {
if (OpacityNode* node =
layer_tree_host_->property_trees()->opacity_tree.Node(
opacity_tree_index_)) {
opacity_tree_index())) {
if (node->owner_id == id())
node->data = opacity;
}
Expand All @@ -1425,7 +1425,7 @@ void Layer::OnTransformAnimated(const gfx::Transform& transform) {
if (layer_tree_host_) {
if (TransformNode* node =
layer_tree_host_->property_trees()->transform_tree.Node(
transform_tree_index_)) {
transform_tree_index())) {
if (node->owner_id == id()) {
node->data.local = transform;
node->data.needs_local_transform_update = true;
Expand Down

0 comments on commit ffa673b

Please sign in to comment.