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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2811803003: Revert of Only create sticky position constraints for constrained sticky position. (Closed)
Patch Set: 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/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index ae2e0d151cb4b4d160d0698e0e367df0f5f8985a..43f5f0190fd2678de5a19e949f3e60755cbd3f5d 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -289,7 +289,7 @@
void CompositedLayerMapping::UpdateStickyConstraints(
const ComputedStyle& style,
const PaintLayer* compositing_container) {
- bool sticky = style.HasStickyConstrainedPosition();
+ bool sticky = style.GetPosition() == EPosition::kSticky;
const PaintLayer* ancestor_overflow_layer =
owning_layer_.AncestorOverflowLayer();
// TODO(flackr): Do we still need this?

Powered by Google App Engine
This is Rietveld 408576698