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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and add comments to WebLayerStickyPositionConstraint members. Created 4 years, 3 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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 5b32d26638fd3d4204a2b28f2f486b7b907a37bd..56b3a1226d88432625331e2f5579a27ba28d1d32 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -353,7 +353,6 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt
if (newStyleIsSticky != oldStyleIsSticky) {
if (newStyleIsSticky) {
- frameView->addStickyPositionObject();
// During compositing inputs update we'll have the scroll
// ancestor without having to walk up the tree and can compute
// the sticky position constraints then.
@@ -367,7 +366,6 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt
// This may get re-added to viewport constrained objects if the object went
// from sticky to fixed.
frameView->removeViewportConstrainedObject(this);
- frameView->removeStickyPositionObject();
// Remove sticky constraints for this layer.
if (layer()) {

Powered by Google App Engine
This is Rietveld 408576698