Index: third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp |
diff --git a/third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp |
index 1527c8d002efbf2456323a86a9ff4955677e30b3..eceb1da755cf11470a7c0a975df3ac67aa32b997 100644 |
--- a/third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp |
+++ b/third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp |
@@ -33,8 +33,7 @@ void ViewPaintInvalidator::invalidateBackgroundIfNeeded() { |
return; |
const LayoutBox& backgroundBox = toLayoutBox(*backgroundObject); |
- LayoutSize oldSize = BoxPaintInvalidator::previousBorderBoxSize( |
- backgroundBox, backgroundBox.visualRect().size()); |
+ LayoutSize oldSize = backgroundBox.previousSize(); |
LayoutSize newSize = backgroundBox.size(); |
const auto& backgroundLayers = m_view.styleRef().backgroundLayers(); |
if ((oldSize.width() != newSize.width() && |