| Index: Source/core/rendering/RenderLayerScrollableArea.cpp
|
| diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| index 308e7016e74a1e8f5cd0b1f9acb5855104f009e1..f98b2fe75357b867b04c9af218c0a993abd976c0 100644
|
| --- a/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| +++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| @@ -1006,6 +1006,13 @@ void RenderLayerScrollableArea::paintOverflowControls(GraphicsContext* context,
|
| if (!box().hasOverflowClip())
|
| return;
|
|
|
| + if (hasOverlayScrollbars()) {
|
| + if (!scrollSize(HorizontalScrollbar))
|
| + destroyScrollbar(HorizontalScrollbar);
|
| + if (!scrollSize(VerticalScrollbar))
|
| + destroyScrollbar(VerticalScrollbar);
|
| + }
|
| +
|
| IntPoint adjustedPaintOffset = paintOffset;
|
| if (paintingOverlayControls)
|
| adjustedPaintOffset = m_cachedOverlayScrollbarOffset;
|
|
|