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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.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/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 a67d5daa6b6ed92a786f29761a9469fa43a62f88..3488284cc03b1e07082b189d74f8bdce3af6f4e9 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -294,7 +294,7 @@ void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style) {
void CompositedLayerMapping::updateStickyConstraints(
const ComputedStyle& style,
const PaintLayer* compositingContainer) {
- bool sticky = style.position() == EPosition::kSticky;
+ bool sticky = style.hasStickyConstrainedPosition();
const PaintLayer* ancestorOverflowLayer =
m_owningLayer.ancestorOverflowLayer();
// TODO(flackr): Do we still need this?

Powered by Google App Engine
This is Rietveld 408576698