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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Added 2 changes in mac files 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/fonts/shaping/HarfBuzzShaper.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
index 6ae700239208683b0057043b754ada2dbf618b7f..11361e73e078d54109c1d9c82e4a415d43b5f3d3 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
@@ -108,8 +108,8 @@ static inline hb_direction_t TextDirectionToHBDirection(
!fontData->isTextOrientationFallback()
? HB_DIRECTION_TTB
: HB_DIRECTION_LTR;
- return dir == RTL ? HB_DIRECTION_REVERSE(harfBuzzDirection)
- : harfBuzzDirection;
+ return dir == TextDirection::Rtl ? HB_DIRECTION_REVERSE(harfBuzzDirection)
+ : harfBuzzDirection;
}
inline bool shapeRange(hb_buffer_t* harfBuzzBuffer,

Powered by Google App Engine
This is Rietveld 408576698