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

Unified Diff: cc/trees/property_tree.h

Issue 2636253002: Handle nested position:sticky elements (Closed)
Patch Set: Rebase Created 3 years, 10 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/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 58d4f5f823d3cdf8e1e8937f279dc7abac405666..0e2dfda382dd7de66915cdea0952f9c21fa4875e 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -114,7 +114,13 @@ struct StickyPositionNodeData {
// by computing the additional offset necessary to keep the element stuck.
gfx::Vector2dF main_thread_offset;
- StickyPositionNodeData() : scroll_ancestor(-1) {}
+ int nearest_node_shifting_sticky_box;
+ int nearest_node_shifting_containing_block;
+
+ StickyPositionNodeData()
+ : scroll_ancestor(-1),
+ nearest_node_shifting_sticky_box(-1),
+ nearest_node_shifting_containing_block(-1) {}
};
class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698