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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp

Issue 2925293003: Cleanup TextDirection (Closed)
Patch Set: unsigned to uint8_t Created 3 years, 6 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/fonts/shaping/ShapeResultBloberizer.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp
index a96adcb29fb268630002a53c65b3932197070266..382a102190c18cdf4e9fcd9a39afe3cd10b4201e 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.cpp
@@ -291,9 +291,8 @@ float ShapeResultBloberizer::FillFastHorizontalGlyphs(
auto results = result_buffer.results_;
for (unsigned i = 0; i < results.size(); ++i) {
- const auto& word_result = IsLeftToRightDirection(text_direction)
- ? results[i]
- : results[results.size() - 1 - i];
+ const auto& word_result =
+ IsLtr(text_direction) ? results[i] : results[results.size() - 1 - i];
advance = FillFastHorizontalGlyphs(word_result.Get(), advance);
}
« no previous file with comments | « third_party/WebKit/Source/platform/LengthBox.cpp ('k') | third_party/WebKit/Source/platform/geometry/LayoutRectOutsets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698