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

Unified Diff: Source/core/rendering/RenderLayerScrollableArea.cpp

Issue 644983002: Revert of Remove Overlay Scrollbar if not scrollable along the axis (patchset #9 id:1140001 of http… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/core/rendering/RenderLayerScrollableArea.cpp
diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
index a624e4698cb3f5e3d31ee0214519eb2b502bafb0..dc9cf2a34c7615bec5b1c374da51311be747ff08 100644
--- a/Source/core/rendering/RenderLayerScrollableArea.cpp
+++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
@@ -616,12 +616,7 @@ void RenderLayerScrollableArea::updateAfterLayout()
if (box().style()->overflowY() == OSCROLL)
verticalScrollbar()->setEnabled(hasVerticalOverflow);
}
- if (hasOverlayScrollbars()) {
- if (!scrollSize(HorizontalScrollbar))
- setHasHorizontalScrollbar(false);
- if (!scrollSize(VerticalScrollbar))
- setHasVerticalScrollbar(false);
- }
+
// overflow:auto may need to lay out again if scrollbars got added/removed.
bool autoHorizontalScrollBarChanged = box().hasAutoHorizontalScrollbar() && (hasHorizontalScrollbar() != hasHorizontalOverflow);
bool autoVerticalScrollBarChanged = box().hasAutoVerticalScrollbar() && (hasVerticalScrollbar() != hasVerticalOverflow);

Powered by Google App Engine
This is Rietveld 408576698