| Index: cc/trees/property_tree.h
|
| diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
|
| index f7e90ea7b47277c8df23da1df91cfd84ecc80de1..0f2719255bb93ddf36886161518925a27a049823 100644
|
| --- a/cc/trees/property_tree.h
|
| +++ b/cc/trees/property_tree.h
|
| @@ -113,7 +113,17 @@ struct StickyPositionNodeData {
|
| // by computing the additional offset necessary to keep the element stuck.
|
| gfx::Vector2dF main_thread_offset;
|
|
|
| - StickyPositionNodeData() : scroll_ancestor(-1) {}
|
| + // In order to properly compute the sticky offset, we need to know if we have
|
| + // any sticky ancestors both between ourselves and our containing block and
|
| + // between our containing block and the viewport. These ancestors are then
|
| + // used to correct the constraining rect locations.
|
| + 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> {
|
|
|