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

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

Issue 2769353002: Only create sticky position constraints for constrained sticky position. (Closed)
Patch Set: Merge with master. Created 3 years, 8 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 53ebcc64224eea42f9f30b9f3b5b941acca85d57..6839406c4686ffac18ce1c1c0581825b542380ee 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -114,7 +114,7 @@ static void UpdateAuxiliaryObjectProperties(const LayoutObject& object,
paint_layer->UpdateAncestorOverflowLayer(
context.ancestor_overflow_paint_layer);
- if (object.StyleRef().GetPosition() == EPosition::kSticky) {
+ if (object.StyleRef().HasStickyConstrainedPosition()) {
paint_layer->GetLayoutObject().UpdateStickyPositionConstraints();
// Sticky position constraints and ancestor overflow scroller affect the

Powered by Google App Engine
This is Rietveld 408576698