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

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

Issue 2868783005: Make ETextSecurity 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..4052a7fee1a3d3073a8211bb2374ed279eb57133 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2002,12 +2002,13 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// -webkit-text-security
- static ETextSecurity InitialTextSecurity() { return TSNONE; }
+ static ETextSecurity InitialTextSecurity() { return ETextSecurity::kNone; }
ETextSecurity TextSecurity() const {
return static_cast<ETextSecurity>(rare_inherited_data_->text_security_);
}
void SetTextSecurity(ETextSecurity a_text_security) {
- SET_VAR(rare_inherited_data_, text_security_, a_text_security);
+ SET_VAR(rare_inherited_data_, text_security_,
+ static_cast<unsigned>(a_text_security));
}
// -webkit-text-stroke-color

Powered by Google App Engine
This is Rietveld 408576698