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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp

Issue 2769353002: Only create sticky position constraints for constrained sticky position. (Closed)
Patch Set: Set dependent patch. Created 3 years, 9 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
Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index 8706e09f2a5c079a2ddc0af2eb68557368136677..7c979414e03277b1cd2c664b73cb6207aaeff6d6 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -98,7 +98,7 @@ static void updateAuxiliaryObjectProperties(const LayoutObject& object,
PaintLayer* paintLayer = object.enclosingLayer();
paintLayer->updateAncestorOverflowLayer(context.ancestorOverflowPaintLayer);
- if (object.styleRef().position() == EPosition::kSticky) {
+ if (object.styleRef().hasStickyConstrainedPosition()) {
paintLayer->layoutObject().updateStickyPositionConstraints();
// Sticky position constraints and ancestor overflow scroller affect the

Powered by Google App Engine
This is Rietveld 408576698