Index: third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp |
index ec94233154d2528f740ea3e93e6c53e085d67b39..f3016e76d1c3dcd71d0d22c6a0b8194fa6b0f6e7 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp |
@@ -201,7 +201,7 @@ void LayoutScrollbar::updateScrollbarParts(bool destroy) |
toLayoutBlock(box)->notifyScrollbarThicknessChanged(); |
box->setChildNeedsLayout(); |
if (m_scrollableArea) |
- m_scrollableArea->invalidateScrollCorner(m_scrollableArea->scrollCornerRect()); |
+ m_scrollableArea->setScrollCornerNeedsPaintInvalidation(); |
} |
} |
} |
@@ -362,15 +362,10 @@ int LayoutScrollbar::minimumThumbLength() const |
return orientation() == HorizontalScrollbar ? partLayoutObject->size().width() : partLayoutObject->size().height(); |
} |
-void LayoutScrollbar::invalidateRect(const IntRect& rect) |
+void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& paintInvalidationRect) |
{ |
- Scrollbar::invalidateRect(rect); |
- |
- // FIXME: invalidate only the changed part. |
- if (LayoutBox* owningLayoutObject = this->owningLayoutObject()) { |
- for (auto& part : m_parts) |
- owningLayoutObject->invalidateDisplayItemClientForNonCompositingDescendantsOf(*part.value); |
- } |
+ for (auto& part : m_parts) |
+ part.value->invalidateDisplayItemClientsIncludingNonCompositingDescendants(&paintInvalidationContainer, PaintInvalidationScroll, &paintInvalidationRect); |
} |
} |