Commit ba85a156 authored by chrishtr's avatar chrishtr Committed by Commit bot

Null-check scrollable area when invalidating sticky constraints.

BUG=678452

Review-Url: https://codereview.chromium.org/2617433005
Cr-Commit-Position: refs/heads/master@{#441983}
parent 7c2f39bf
...@@ -401,9 +401,11 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff, ...@@ -401,9 +401,11 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff,
if (layer()) { if (layer()) {
DisableCompositingQueryAsserts disabler; DisableCompositingQueryAsserts disabler;
if (const PaintLayer* ancestorOverflowLayer = if (const PaintLayer* ancestorOverflowLayer =
layer()->ancestorOverflowLayer()) layer()->ancestorOverflowLayer()) {
ancestorOverflowLayer->getScrollableArea() if (PaintLayerScrollableArea* scrollableArea =
->invalidateStickyConstraintsFor(layer()); ancestorOverflowLayer->getScrollableArea())
scrollableArea->invalidateStickyConstraintsFor(layer());
}
} }
// TODO(pdr): When slimming paint v2 is enabled, we will need to // TODO(pdr): When slimming paint v2 is enabled, we will need to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment