Commit d1136c8f authored by Chris Harrelson's avatar Chris Harrelson Committed by Commit Bot

Null-check PaintLayerScrollableArea in one more place.

Bug: 744204
Change-Id: I3a0bea65287c1b724ac0576dd7d03486789c2f96
Reviewed-on: https://chromium-review.googlesource.com/575205
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487307}
parent 9fc07690
...@@ -61,6 +61,8 @@ StickyPositionScrollingConstraints* StickyConstraintsForLayoutObject( ...@@ -61,6 +61,8 @@ StickyPositionScrollingConstraints* StickyConstraintsForLayoutObject(
PaintLayerScrollableArea* scrollable_area = PaintLayerScrollableArea* scrollable_area =
ancestor_overflow_layer->GetScrollableArea(); ancestor_overflow_layer->GetScrollableArea();
if (!scrollable_area)
return nullptr;
auto it = scrollable_area->GetStickyConstraintsMap().find(obj->Layer()); auto it = scrollable_area->GetStickyConstraintsMap().find(obj->Layer());
if (it == scrollable_area->GetStickyConstraintsMap().end()) if (it == scrollable_area->GetStickyConstraintsMap().end())
return nullptr; return nullptr;
......
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