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

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

Issue 2882113002: Make ESpeak 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 74f2435d204fad85f976a3cbe27f5e45a72ba15d..a467d52a8978fd25251f6c63795434da961fe5f1 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1762,11 +1762,13 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// speak
- static ESpeak InitialSpeak() { return kSpeakNormal; }
+ static ESpeak InitialSpeak() { return ESpeak::kNormal; }
ESpeak Speak() const {
return static_cast<ESpeak>(rare_inherited_data_->speak_);
}
- void SetSpeak(ESpeak s) { SET_VAR(rare_inherited_data_, speak_, s); }
+ void SetSpeak(ESpeak s) {
+ SET_VAR(rare_inherited_data_, speak_, static_cast<unsigned>(s));
+ }
// tab-size
static TabSize InitialTabSize() { return TabSize(8); }

Powered by Google App Engine
This is Rietveld 408576698