Commit 72022234 authored by vollick's avatar vollick Committed by Commit bot

Do not create a transform tree node for fixed layers

This requirement was an error. Code behaves correctly without nodes for
these layers.

BUG=386810

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

Cr-Commit-Position: refs/heads/master@{#318644}
parent a04cd9ab
...@@ -128,10 +128,9 @@ void AddTransformNodeIfNeeded(const DataForRecursion& data_from_ancestor, ...@@ -128,10 +128,9 @@ void AddTransformNodeIfNeeded(const DataForRecursion& data_from_ancestor,
layer->should_flatten_transform() && layer->should_flatten_transform() &&
!layer->parent()->should_flatten_transform(); !layer->parent()->should_flatten_transform();
bool requires_node = is_root || is_scrollable || is_fixed || bool requires_node = is_root || is_scrollable || has_significant_transform ||
has_significant_transform || has_animated_transform || has_animated_transform || has_surface ||
is_page_scale_application_layer || flattening_change || is_page_scale_application_layer || flattening_change;
has_surface;
Layer* transform_parent = GetTransformParent(data_from_ancestor, layer); Layer* transform_parent = GetTransformParent(data_from_ancestor, layer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment