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

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

Issue 2716583005: Do not promote position sticky or fixed elements unless they move with scroll. (Closed)
Patch Set: Avoid computing constraints for non-anchored sticky and add/update tests. 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 c715a2954ec4c2eafbe10594703a5a5c310ac30e..6d7a23bdbae19f8b2648ab484e85a0d9fd1fa8b1 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