Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index c04bb9ad86ef08f22cf10f01b73e861f32b68aa0..c5f43568453dc5ef07eef3efb69dbbec4db43a78 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -1588,16 +1588,7 @@ void RenderBox::repaintTreeAfterLayout() |
if (!didFullRepaint) |
repaintOverflowIfNeeded(); |
- // Repaint any scrollbars if there is a scrollable area for this renderer. |
- if (enclosingLayer()) { |
- if (RenderLayerScrollableArea* area = enclosingLayer()->scrollableArea()) { |
- if (area->hasVerticalBarDamage()) |
- repaintRectangle(area->verticalBarDamage()); |
- if (area->hasHorizontalBarDamage()) |
- repaintRectangle(area->horizontalBarDamage()); |
- area->resetScrollbarDamage(); |
- } |
- } |
+ repaintScrollbarsIfNeeded(); |
// FIXME: This concept of a tree walking state for fast lookups should be generalized away from |
// just layout. |