Index: third_party/WebKit/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/rendering/RenderBlock.cpp (revision 11154) |
+++ third_party/WebKit/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -1571,7 +1571,7 @@ |
// Our scrollbar widgets paint exactly when we tell them to, so that they work properly with |
// z-index. We paint after we painted the background/border, so that the scrollbars will |
// sit above the background/border. |
- if (hasOverflowClip() && (phase == PaintPhaseBlockBackground || phase == PaintPhaseChildBlockBackground)) |
+ if (hasOverflowClip() && style()->visibility() == VISIBLE && (phase == PaintPhaseBlockBackground || phase == PaintPhaseChildBlockBackground)) |
layer()->paintOverflowControls(paintInfo.context, tx, ty, paintInfo.rect); |
} |