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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 970713003: Do not create a transform tree node for fixed layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | 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 0c080dd2ace2e883c98e64cbcac10a239db34d0b..07a6c0932e38e305efcfee2bb9329c8e9ddf89a3 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -128,10 +128,9 @@ void AddTransformNodeIfNeeded(const DataForRecursion& data_from_ancestor,
layer->should_flatten_transform() &&
!layer->parent()->should_flatten_transform();
- bool requires_node = is_root || is_scrollable || is_fixed ||
- has_significant_transform || has_animated_transform ||
- is_page_scale_application_layer || flattening_change ||
- has_surface;
+ bool requires_node = is_root || is_scrollable || has_significant_transform ||
+ has_animated_transform || has_surface ||
+ is_page_scale_application_layer || flattening_change;
Layer* transform_parent = GetTransformParent(data_from_ancestor, layer);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698