| 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);
|
|
|