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

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

Issue 260963012: Override repaintTreeAfterLayout for RenderSVGModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations. Created 6 years, 7 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/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.

Powered by Google App Engine
This is Rietveld 408576698