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

Unified Diff: cc/layers/layer_impl.cc

Issue 1544103002: Determine a layer's IsAffectedByPageScale property without using Layer Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving in_subtree_of_page_scale_layer assignment from BuildPropertyTreesInternal to AddTransformNod… Created 5 years 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/layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 3837bca46148ae930f6d84a0381c0e4766388fcb..b590f71a1488a0be81f009392b6ab5e403c046bd 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -698,6 +698,13 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
num_dependents_need_push_properties_ = 0;
}
+bool LayerImpl::IsAffectedByPageScale() const {
+ TransformTree& transform_tree =
+ layer_tree_impl()->property_trees()->transform_tree;
+ return transform_tree.Node(transform_tree_index())
+ ->data.in_subtree_of_page_scale_layer;
+}
+
gfx::Vector2dF LayerImpl::FixedContainerSizeDelta() const {
LayerImpl* scroll_clip_layer =
layer_tree_impl()->LayerById(scroll_clip_layer_id_);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698