Index: third_party/WebKit/Source/platform/fonts/FontOrientation.h |
diff --git a/third_party/WebKit/Source/platform/fonts/FontOrientation.h b/third_party/WebKit/Source/platform/fonts/FontOrientation.h |
index b7dde29e1eb07d3120a221b3f23c865201c803d7..19d7e5f7c181b78a48605d88d10743f481f0401d 100644 |
--- a/third_party/WebKit/Source/platform/fonts/FontOrientation.h |
+++ b/third_party/WebKit/Source/platform/fonts/FontOrientation.h |
@@ -55,6 +55,15 @@ inline bool isVerticalUpright(FontOrientation orientation, UChar32 character) |
} |
inline bool isVerticalBaseline(FontOrientation orientation) { return orientation != FontOrientation::Horizontal; } |
+inline FontOrientation adjustOrientationForCharacterInMixedVertical(FontOrientation orientation, UChar32 character) |
+{ |
+ if (orientation != FontOrientation::VerticalMixed) |
+ return orientation; |
+ return Character::isUprightInMixedVertical(character) |
+ ? FontOrientation::VerticalUpright |
+ : FontOrientation::VerticalRotated; |
+} |
+ |
} // namespace blink |
#endif // FontOrientation_h |