| 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..6585152f8318ed018a1f11e2b71cd7d33fe54ddc 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 resolveMixedFontOrientation(FontOrientation orientation, UChar32 character)
|
| +{
|
| + if (orientation != FontOrientation::VerticalMixed)
|
| + return orientation;
|
| + return Character::isUprightInMixedVertical(character)
|
| + ? FontOrientation::VerticalUpright
|
| + : FontOrientation::VerticalRotated;
|
| +}
|
| +
|
| } // namespace blink
|
|
|
| #endif // FontOrientation_h
|
|
|