Index: cc/blink/web_layer_impl.cc |
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc |
index 43d7caa7f202b524f31c1b004f3600d19d70183b..4f9a02acf2b1d70430e80d112efdbfc4f97009c8 100644 |
--- a/cc/blink/web_layer_impl.cc |
+++ b/cc/blink/web_layer_impl.cc |
@@ -378,6 +378,9 @@ ToWebLayerStickyPositionConstraint( |
constraint.scroll_container_relative_sticky_box_rect; |
web_constraint.scrollContainerRelativeContainingBlockRect = |
constraint.scroll_container_relative_containing_block_rect; |
+ // TODO(smcgruer): Copy over ancestor pointers, or use layer ids. |
+ web_constraint.localStickyOffset = |
+ blink::WebFloatSize(constraint.local_sticky_offset); |
return web_constraint; |
} |
static cc::LayerStickyPositionConstraint ToStickyPositionConstraint( |
@@ -398,6 +401,15 @@ static cc::LayerStickyPositionConstraint ToStickyPositionConstraint( |
web_constraint.scrollContainerRelativeStickyBoxRect; |
constraint.scroll_container_relative_containing_block_rect = |
web_constraint.scrollContainerRelativeContainingBlockRect; |
+ constraint.nearest_layer_shifting_sticky_box = |
+ web_constraint.nearestLayerShiftingStickyBox |
+ ? web_constraint.nearestLayerShiftingStickyBox->ccLayer() |
+ : nullptr; |
+ constraint.nearest_layer_shifting_containing_block = |
+ web_constraint.nearestLayerShiftingContainingBlock |
+ ? web_constraint.nearestLayerShiftingContainingBlock->ccLayer() |
+ : nullptr; |
+ constraint.local_sticky_offset = web_constraint.localStickyOffset; |
return constraint; |
} |
void WebLayerImpl::setStickyPositionConstraint( |