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

Unified Diff: cc/layers/layer.cc

Issue 2401903002: Compute and include the offset of the sticky box to its enclosing composited layer. (Closed)
Patch Set: Created 4 years, 2 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/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 77c45e696e4ac061597a8addbaf2b0acacdaf212..1b005c8877f52a52642d05f65ce2ef2ae54a8f3c 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -585,7 +585,7 @@ void Layer::SetPosition(const gfx::PointF& position) {
transform_tree_index());
sticky_data->main_thread_offset =
position.OffsetFromOrigin() -
- sticky_data->constraints.scroll_container_relative_sticky_box_rect
+ sticky_data->constraints.parent_relative_sticky_box_offset
.OffsetFromOrigin();
}
transform_node->needs_local_transform_update = true;

Powered by Google App Engine
This is Rietveld 408576698