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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

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/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index bedd7fc158115e0e90668e7a728ae8ca0d1b6888..4552d454e055348c6e7a13071257c1ec26a243fb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -208,7 +208,8 @@ void LayoutText::StyleDidChange(StyleDifference diff,
const ComputedStyle& new_style = StyleRef();
ETextTransform old_transform =
old_style ? old_style->TextTransform() : ETextTransform::kNone;
- ETextSecurity old_security = old_style ? old_style->TextSecurity() : TSNONE;
+ ETextSecurity old_security =
+ old_style ? old_style->TextSecurity() : ETextSecurity::kNone;
if (old_transform != new_style.TextTransform() ||
old_security != new_style.TextSecurity())
TransformText();
@@ -1685,15 +1686,15 @@ void LayoutText::SetTextInternal(PassRefPtr<StringImpl> text) {
// We use the same characters here as for list markers.
// See the listMarkerText function in LayoutListMarker.cpp.
switch (Style()->TextSecurity()) {
- case TSNONE:
+ case ETextSecurity::kNone:
break;
- case TSCIRCLE:
+ case ETextSecurity::kCircle:
SecureText(kWhiteBulletCharacter);
break;
- case TSDISC:
+ case ETextSecurity::kDisc:
SecureText(kBulletCharacter);
break;
- case TSSQUARE:
+ case ETextSecurity::kSquare:
SecureText(kBlackSquareCharacter);
}
}

Powered by Google App Engine
This is Rietveld 408576698