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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 2401903002: Compute and include the offset of the sticky box to its enclosing composited layer. (Closed)
Patch Set: Merge with master and fix long line. 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/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index edc102623e0f4d50260d61e4b7850fde76c12804..a8398bc55ecd84ca4b8d2b591ceb9e83a840fc88 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -699,7 +699,7 @@ bool AddTransformNodeIfNeeded(
sticky_data->scroll_ancestor = GetScrollParentId(data_from_ancestor, layer);
sticky_data->main_thread_offset =
layer->position().OffsetFromOrigin() -
- sticky_data->constraints.scroll_container_relative_sticky_box_rect
+ sticky_data->constraints.parent_relative_sticky_box_offset
.OffsetFromOrigin();
}

Powered by Google App Engine
This is Rietveld 408576698