Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2617433005: Null-check scrollable area when invalidating sticky constraints. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 4eddf7c1c9d089d45a10745960d4f459806d3437..f2bc1ae20e51797636e1b1740a594968213efb65 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698