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

Unified Diff: third_party/WebKit/Source/platform/text/Character.cpp

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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/platform/text/Character.cpp
diff --git a/third_party/WebKit/Source/platform/text/Character.cpp b/third_party/WebKit/Source/platform/text/Character.cpp
index 72736c63bb0982e592da329bbd63b50d1d24119e..f4b0bf536950eff898d9e53d9b9d31b62c037b57 100644
--- a/third_party/WebKit/Source/platform/text/Character.cpp
+++ b/third_party/WebKit/Source/platform/text/Character.cpp
@@ -136,7 +136,7 @@ unsigned Character::expansionOpportunityCount(const LChar* characters,
return length;
}
- if (direction == LTR) {
+ if (direction == TextDirection::Ltr) {
for (size_t i = 0; i < length; ++i) {
if (treatAsSpace(characters[i])) {
count++;
@@ -165,7 +165,7 @@ unsigned Character::expansionOpportunityCount(const UChar* characters,
bool& isAfterExpansion,
const TextJustify textJustify) {
unsigned count = 0;
- if (direction == LTR) {
+ if (direction == TextDirection::Ltr) {
for (size_t i = 0; i < length; ++i) {
UChar32 character = characters[i];
if (treatAsSpace(character)) {
« no previous file with comments | « third_party/WebKit/Source/platform/text/BidiTextRun.cpp ('k') | third_party/WebKit/Source/platform/text/TextDirection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698