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

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

Issue 2910513003: Make TextDecorationSkip an enum class. (Closed)
Patch Set: 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 43a50f38e72e63e93ccdbaceed4dc926c299b7ea..d6abe35ddd7edf46c44723cf45c65f645293ee92 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1433,14 +1433,15 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// text-decoration-skip
static TextDecorationSkip InitialTextDecorationSkip() {
- return kTextDecorationSkipObjects;
+ return TextDecorationSkip::kObjects;
}
TextDecorationSkip GetTextDecorationSkip() const {
return static_cast<TextDecorationSkip>(
rare_inherited_data_->text_decoration_skip_);
}
void SetTextDecorationSkip(TextDecorationSkip v) {
- SET_VAR(rare_inherited_data_, text_decoration_skip_, v);
+ SET_VAR(rare_inherited_data_, text_decoration_skip_,
+ static_cast<unsigned>(v));
}
// text-overflow
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698