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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 77a3e506ed808ccb2e383dff2070fb6667c8ba65..64d58d53acfba6c69085cd8bf0fe5ec81078cb9f 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1537,12 +1537,14 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// Text decoration properties.
// text-decoration-line
- static TextDecoration InitialTextDecoration() { return kTextDecorationNone; }
+ static TextDecoration InitialTextDecoration() {
+ return TextDecoration::kNone;
+ }
TextDecoration GetTextDecoration() const {
return static_cast<TextDecoration>(visual_data_->text_decoration_);
}
void SetTextDecoration(TextDecoration v) {
- SET_VAR(visual_data_, text_decoration_, v);
+ SET_VAR(visual_data_, text_decoration_, static_cast<unsigned>(v));
}
// text-decoration-color
« no previous file with comments | « third_party/WebKit/Source/core/style/AppliedTextDecoration.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698