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

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

Issue 1850703002: Revert "Adapt and reland old position sticky implementation from https://codereview.chromium.org/34… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 4062913cbae4de8b3596f9f7deff998ee2ee13ca..27e2f756b675aba83d5c954abd15e7b6acbff981 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -365,9 +365,6 @@ void LayoutBlock::updateFromStyle()
bool shouldClipOverflow = !styleRef().isOverflowVisible() && allowsOverflowClip();
if (shouldClipOverflow != hasOverflowClip()) {
- if (!shouldClipOverflow)
- getScrollableArea()->invalidateAllStickyConstraints();
-
// FIXME: This shouldn't be required if we tracked the visual overflow
// generated by positioned children or self painting layers. crbug.com/345403
for (LayoutObject* child = firstChild(); child; child = child->nextSibling())
@@ -883,12 +880,8 @@ bool LayoutBlock::finishDelayUpdateScrollInfo(SubtreeLayoutScope* layoutScope)
return childrenMarkedForRelayout;
}
-void LayoutBlock::updateAfterLayout()
+void LayoutBlock::updateScrollInfoAfterLayout()
{
- invalidateStickyConstraints();
-
- // Update our scroll information if we're overflow:auto/scroll/hidden now that we know if
- // we overflow or not.
if (hasOverflowClip()) {
if (style()->isFlippedBlocksWritingMode()) {
// FIXME: https://bugs.webkit.org/show_bug.cgi?id=97937
@@ -1131,7 +1124,7 @@ bool LayoutBlock::simplifiedLayout()
updateLayerTransformAfterLayout();
- updateAfterLayout();
+ updateScrollInfoAfterLayout();
clearNeedsLayout();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698