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

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

Issue 2516263002: Changed ETextTransform to an enum class and renamed its members (Closed)
Patch Set: Created 4 years, 1 month 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 23ccbf0b5b6e46b4a8a9c87e885174e19b14f83d..04c4adaaccf2edd586d3fbc82fe63b08f968de77 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -200,7 +200,8 @@ void LayoutText::styleDidChange(StyleDifference diff,
}
const ComputedStyle& newStyle = styleRef();
- ETextTransform oldTransform = oldStyle ? oldStyle->textTransform() : TTNONE;
+ ETextTransform oldTransform =
+ oldStyle ? oldStyle->textTransform() : ETextTransform::None;
ETextSecurity oldSecurity = oldStyle ? oldStyle->textSecurity() : TSNONE;
if (oldTransform != newStyle.textTransform() ||
oldSecurity != newStyle.textSecurity())
@@ -1582,15 +1583,15 @@ void applyTextTransform(const ComputedStyle* style,
return;
switch (style->textTransform()) {
- case TTNONE:
+ case ETextTransform::None:
break;
- case CAPITALIZE:
+ case ETextTransform::Capitalize:
makeCapitalized(&text, previousCharacter);
break;
- case UPPERCASE:
+ case ETextTransform::Uppercase:
text = text.upper(style->locale());
break;
- case LOWERCASE:
+ case ETextTransform::Lowercase:
text = text.lower(style->locale());
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698