Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
index 771acb511c8fb4426626165b72876116e6f5dd5d..ba2878b3f7468b7f66b5582495755e38850c1913 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -612,11 +612,9 @@ |
ScrollableArea::setScrollPosition(newScrollPosition, scrollType, scrollBehavior); |
} |
-bool PaintLayerScrollableArea::updateAfterLayout(SubtreeLayoutScope* delayedLayoutScope) |
+void PaintLayerScrollableArea::updateAfterLayout() |
{ |
ASSERT(box().hasOverflowClip()); |
- |
- bool didMarkForDelayedLayout = false; |
if (needsScrollbarReconstruction()) { |
m_scrollbarManager.setCanDetachScrollbars(false); |
@@ -685,19 +683,14 @@ |
if ((horizontalScrollBarChanged && box().style()->overflowX() != OOVERLAY) || (verticalScrollBarChanged && box().style()->overflowY() != OOVERLAY)) { |
if (!m_inOverflowRelayout) { |
m_inOverflowRelayout = true; |
- if (delayedLayoutScope) { |
- delayedLayoutScope->setNeedsLayout(&box(), LayoutInvalidationReason::ScrollbarChanged); |
- didMarkForDelayedLayout = true; |
+ SubtreeLayoutScope layoutScope(box()); |
+ layoutScope.setNeedsLayout(&box(), LayoutInvalidationReason::ScrollbarChanged); |
+ if (box().isLayoutBlock()) { |
+ LayoutBlock& block = toLayoutBlock(box()); |
+ block.scrollbarsChanged(horizontalScrollBarChanged, verticalScrollBarChanged); |
+ block.layoutBlock(true); |
} else { |
- SubtreeLayoutScope layoutScope(box()); |
- layoutScope.setNeedsLayout(&box(), LayoutInvalidationReason::ScrollbarChanged); |
- if (box().isLayoutBlock()) { |
- LayoutBlock& block = toLayoutBlock(box()); |
- block.scrollbarsChanged(horizontalScrollBarChanged, verticalScrollBarChanged); |
- block.layoutBlock(true); |
- } else { |
- box().layout(); |
- } |
+ box().layout(); |
} |
LayoutObject* parent = box().parent(); |
if (parent && parent->isFlexibleBox()) |
@@ -734,8 +727,6 @@ |
DisableCompositingQueryAsserts disabler; |
positionOverflowControls(); |
- |
- return didMarkForDelayedLayout; |
} |
ScrollBehavior PaintLayerScrollableArea::scrollBehaviorStyle() const |