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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 2929873002: Shifting layer position for sticky element to avoid passing unnessary variable to cc (Closed)
Patch Set: Bug fix Created 3 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/property_tree.cc ('k') | cc/trees/transform_node.h » ('j') | 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 4ad6e536ffa785153ab2405a53d49c940bbbed25..36e5eab36922a541a56d78fba5a6f6188d92250b 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -76,14 +76,6 @@ static LayerStickyPositionConstraint StickyPositionConstraint(
return layer->test_properties()->sticky_position_constraint;
}
-static gfx::Size OffsetForStickyPositionFromMainThread(Layer* layer) {
- return layer->offset_for_sticky_position_from_main_thread();
-}
-
-static gfx::Size OffsetForStickyPositionFromMainThread(LayerImpl* layer) {
- return layer->test_properties()->offset_for_sticky_position_from_main_thread;
-}
-
static LayerImplList& Children(LayerImpl* layer) {
return layer->test_properties()->children;
}
@@ -570,9 +562,6 @@ bool AddTransformNodeIfNeeded(
DCHECK(sticky_data->nearest_node_shifting_containing_block !=
TransformTree::kInvalidNodeId);
}
- node->offset_for_sticky_position_from_main_thread =
- gfx::Vector2dF(OffsetForStickyPositionFromMainThread(layer).width(),
- OffsetForStickyPositionFromMainThread(layer).height());
}
node->needs_local_transform_update = true;
« no previous file with comments | « cc/trees/property_tree.cc ('k') | cc/trees/transform_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698