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

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

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/core/layout/TextRunConstructor.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp b/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
index 39854171939cb5004f6b09bf135c6440a0e1960d..ce2f8a79b634b544b8dc8bb6198b5d79be91f429 100644
--- a/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
+++ b/third_party/WebKit/Source/core/layout/TextRunConstructor.cpp
@@ -129,7 +129,7 @@ TextRun constructTextRun(const Font& font,
TextRunFlags flags) {
return constructTextRun(font, string, style,
string.isEmpty() || string.is8Bit()
- ? TextDirection::Ltr
+ ? TextDirection::kLtr
: determineDirectionality(string),
flags);
}
@@ -142,15 +142,15 @@ TextRun constructTextRun(const Font& font,
ASSERT(offset + length <= text.textLength());
if (text.hasEmptyText()) {
return constructTextRunInternal(font, static_cast<const LChar*>(nullptr), 0,
- style, TextDirection::Ltr);
+ style, TextDirection::kLtr);
}
if (text.is8Bit()) {
return constructTextRunInternal(font, text.characters8() + offset, length,
- style, TextDirection::Ltr);
+ style, TextDirection::kLtr);
}
TextRun run = constructTextRunInternal(font, text.characters16() + offset,
- length, style, TextDirection::Ltr);
+ length, style, TextDirection::kLtr);
run.setDirection(directionForRun(run));
return run;
}

Powered by Google App Engine
This is Rietveld 408576698