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

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

Issue 2635143002: Changed EBoxSizing to an enum class and renamed its members (Closed)
Patch Set: Aded k prefix Created 3 years, 11 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: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
index c4b483124e4a67f3843172c4577e92e6c2ef5d60..80e40f9122afe4761cd275c7a48874ef15a59594 100644
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp
@@ -117,7 +117,7 @@ PaintInvalidationReason BoxPaintInvalidator::computePaintInvalidationReason() {
if ((style.backgroundLayers().thisOrNextLayersUseContentBox() ||
style.maskLayers().thisOrNextLayersUseContentBox() ||
- style.boxSizing() == BoxSizingBorderBox) &&
+ style.boxSizing() == EBoxSizing::kBorderBox) &&
previousContentBoxRect() != m_box.contentBoxRect())
return PaintInvalidationContentBoxChange;
@@ -322,7 +322,7 @@ bool BoxPaintInvalidator::needsToSavePreviousBoxGeometries() {
// If we use border-box sizing we need to track changes in the size of the
// content box.
- if (style.boxSizing() == BoxSizingBorderBox)
+ if (style.boxSizing() == EBoxSizing::kBorderBox)
return true;
// No need to save old border box size if we can use size of the old paint

Powered by Google App Engine
This is Rietveld 408576698