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

Unified Diff: third_party/WebKit/Source/platform/text/BidiCharacterRun.h

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/BidiCharacterRun.h
diff --git a/third_party/WebKit/Source/platform/text/BidiCharacterRun.h b/third_party/WebKit/Source/platform/text/BidiCharacterRun.h
index 63086139d8cc4da4d0c22725ef12aebb235910c6..8fb7162e20b36b89a02f1375fc5bde10169f56c3 100644
--- a/third_party/WebKit/Source/platform/text/BidiCharacterRun.h
+++ b/third_party/WebKit/Source/platform/text/BidiCharacterRun.h
@@ -73,7 +73,9 @@ struct BidiCharacterRun {
bool dirOverride(bool visuallyOrdered) {
return m_override || visuallyOrdered;
}
- TextDirection direction() const { return reversed(false) ? RTL : LTR; }
+ TextDirection direction() const {
+ return reversed(false) ? TextDirection::Rtl : TextDirection::Ltr;
+ }
BidiCharacterRun* next() const { return m_next; }
void setNext(BidiCharacterRun* next) { m_next = next; }

Powered by Google App Engine
This is Rietveld 408576698