Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h |
index 517bca89c123b92591d5b1b6b784876f7a8a3420..5b7774ece299f6bb8f2be85b775fa86789adec48 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h |
@@ -67,7 +67,9 @@ class PLATFORM_EXPORT ShapeResult : public RefCounted<ShapeResult> { |
const FloatRect& bounds() const { return m_glyphBoundingBox; } |
unsigned numCharacters() const { return m_numCharacters; } |
void fallbackFonts(HashSet<const SimpleFontData*>*) const; |
- bool rtl() const { return m_direction == RTL; } |
+ bool rtl() const { |
+ return static_cast<TextDirection>(m_direction) == TextDirection::Rtl; |
+ } |
bool hasVerticalOffsets() const { return m_hasVerticalOffsets; } |
// For memory reporting. |