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

Unified Diff: cc/trees/transform_node.h

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add unit test for impl side sticky position update. Created 4 years, 3 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
Index: cc/trees/transform_node.h
diff --git a/cc/trees/transform_node.h b/cc/trees/transform_node.h
index 7893be2e4e0d871c501e37e5e539c7c96d0f91c4..1e8c3910aaa08a8449e3a5136995e0f6661e04eb 100644
--- a/cc/trees/transform_node.h
+++ b/cc/trees/transform_node.h
@@ -53,6 +53,10 @@ struct CC_EXPORT TransformNode {
gfx::Transform to_parent;
+ // This is the node which defines the sticky position constraints for this
+ // transform node. -1 indicates there are no sticky position constraints.
+ int sticky_position_constraint_id;
+
// This is the node with respect to which source_offset is defined. This will
// not be needed once layerization moves to cc, but is needed in order to
// efficiently update the transform tree for changes to position in the layer

Powered by Google App Engine
This is Rietveld 408576698