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,
if (layer()) {
DisableCompositingQueryAsserts disabler;
if (const PaintLayer* ancestorOverflowLayer =
layer()->ancestorOverflowLayer())
ancestorOverflowLayer->getScrollableArea()
->invalidateStickyConstraintsFor(layer());
layer()->ancestorOverflowLayer()) {
if (PaintLayerScrollableArea* scrollableArea =
ancestorOverflowLayer->getScrollableArea())
scrollableArea->invalidateStickyConstraintsFor(layer());
}
}
// 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