Chromium Code Reviews| Index: cc/blink/web_layer_impl.cc |
| diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc |
| index 73e62b3e66fc0f018aa19bf2484402d08a1b69af..ad18b365ea4bd92e683dcc4dac1bd12430048595 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 too. |
|
smcgruer
2017/02/14 17:02:06
flackr : Ali suggested switching from layer pointe
flackr
2017/02/21 00:32:42
It would be nice to be able to test these constrai
|
| + web_constraint.cachedComputedStickyOffset = |
| + blink::WebFloatSize(constraint.cached_computed_sticky_offset); |
| return web_constraint; |
| } |
| static cc::LayerStickyPositionConstraint ToStickyPositionConstraint( |
| @@ -398,6 +401,16 @@ 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.cached_computed_sticky_offset = |
| + web_constraint.cachedComputedStickyOffset; |
| return constraint; |
| } |
| void WebLayerImpl::setStickyPositionConstraint( |