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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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/platform/text/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index da248e4f33accc392b22f84acabae1454fe6cd74..c6c78cec92189d2b274c4f00e0f30c7c87234ff5 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -69,7 +69,7 @@ class PLATFORM_EXPORT TextRun final {
float expansion = 0,
ExpansionBehavior expansionBehavior = AllowTrailingExpansion |
ForbidLeadingExpansion,
- TextDirection direction = TextDirection::Ltr,
+ TextDirection direction = TextDirection::kLtr,
bool directionalOverride = false)
: m_charactersLength(len),
m_len(len),
@@ -94,7 +94,7 @@ class PLATFORM_EXPORT TextRun final {
float expansion = 0,
ExpansionBehavior expansionBehavior = AllowTrailingExpansion |
ForbidLeadingExpansion,
- TextDirection direction = TextDirection::Ltr,
+ TextDirection direction = TextDirection::kLtr,
bool directionalOverride = false)
: m_charactersLength(len),
m_len(len),
@@ -118,7 +118,7 @@ class PLATFORM_EXPORT TextRun final {
float expansion = 0,
ExpansionBehavior expansionBehavior = AllowTrailingExpansion |
ForbidLeadingExpansion,
- TextDirection direction = TextDirection::Ltr,
+ TextDirection direction = TextDirection::kLtr,
bool directionalOverride = false)
: m_charactersLength(string.length()),
m_len(string.length()),
@@ -249,8 +249,8 @@ class PLATFORM_EXPORT TextRun final {
TextDirection direction() const {
return static_cast<TextDirection>(m_direction);
}
- bool rtl() const { return direction() == TextDirection::Rtl; }
- bool ltr() const { return direction() == TextDirection::Ltr; }
+ bool rtl() const { return direction() == TextDirection::kRtl; }
+ bool ltr() const { return direction() == TextDirection::kLtr; }
bool directionalOverride() const { return m_directionalOverride; }
bool spacingDisabled() const { return m_disableSpacing; }
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextDirection.h ('k') | third_party/WebKit/Source/platform/text/WritingMode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698