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

Unified Diff: third_party/WebKit/Source/core/paint/ViewPaintInvalidator.cpp

Issue 2689213013: Move previous border box size out of global map into LayoutBox::m_previousSize (Closed)
Patch Set: - Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() &&
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698