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

Unified Diff: third_party/WebKit/Source/core/layout/CollapsedBorderValue.h

Issue 2890733002: Make EBorderStyle an enum class. (Closed)
Patch Set: Build for Mac Created 3 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: third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
diff --git a/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h b/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
index 816fcf65aa9f791b6d339728f49bc4eb83986801..e246348549923462011c888ee301a66a24570cb9 100644
--- a/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
+++ b/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
@@ -48,15 +48,15 @@ class CollapsedBorderValue {
CollapsedBorderValue()
: color_(0),
width_(0),
- style_(kBorderStyleNone),
+ style_(static_cast<unsigned>(EBorderStyle::kNone)),
precedence_(kBorderPrecedenceOff) {}
CollapsedBorderValue(const BorderValue& border,
const Color& color,
EBorderPrecedence precedence)
: color_(color),
- width_(border.Style() > kBorderStyleHidden ? border.Width() : 0),
- style_(border.Style()),
+ width_(border.Style() > EBorderStyle::kNone ? border.Width() : 0),
+ style_(static_cast<unsigned>(border.Style())),
precedence_(precedence) {
DCHECK(precedence != kBorderPrecedenceOff);
}

Powered by Google App Engine
This is Rietveld 408576698