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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2042923002: Restore PaintLayerScrollableArea::ScrollbarManager::canDetach behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 6 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index db45beb8b718d176e75e4351537a0803dc379279..58a4ad8b87a94cc5c8480dd6930a525bc0624662 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -761,6 +761,7 @@ void PaintLayerScrollableArea::clampScrollPositionsAfterLayout()
setNeedsScrollPositionClamp(false);
resetScrollOriginChanged();
+ m_scrollbarManager.destroyDetachedScrollbars();
}
ScrollBehavior PaintLayerScrollableArea::scrollBehaviorStyle() const
@@ -1577,7 +1578,8 @@ void PaintLayerScrollableArea::ScrollbarManager::setHasHorizontalScrollbar(bool
}
} else {
m_hBarIsAttached = 0;
- destroyScrollbar(HorizontalScrollbar);
+ if (!DelayScrollPositionClampScope::clampingIsDelayed())
+ destroyScrollbar(HorizontalScrollbar);
}
}
@@ -1595,7 +1597,8 @@ void PaintLayerScrollableArea::ScrollbarManager::setHasVerticalScrollbar(bool ha
}
} else {
m_vBarIsAttached = 0;
- destroyScrollbar(VerticalScrollbar);
+ if (!DelayScrollPositionClampScope::clampingIsDelayed())
+ destroyScrollbar(VerticalScrollbar);
}
}

Powered by Google App Engine
This is Rietveld 408576698