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

Unified Diff: third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp

Issue 2845773002: Make TextDecoration an enum class. (Closed)
Patch Set: Rebase 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/style/AppliedTextDecoration.cpp
diff --git a/third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp b/third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp
index 263bbe5d2f34506cfc77820cdc8b98d967443d54..c1b4b9a1c2764377d45da91c922659ff36e15066 100644
--- a/third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp
+++ b/third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp
@@ -9,7 +9,7 @@ namespace blink {
AppliedTextDecoration::AppliedTextDecoration(TextDecoration line,
TextDecorationStyle style,
Color color)
- : lines_(line), style_(style), color_(color) {}
+ : lines_(static_cast<unsigned>(line)), style_(style), color_(color) {}
bool AppliedTextDecoration::operator==(const AppliedTextDecoration& o) const {
return color_ == o.color_ && lines_ == o.lines_ && style_ == o.style_;
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainterBase.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698