| Index: sky/engine/core/css/resolver/FontBuilder.cpp
|
| diff --git a/sky/engine/core/css/resolver/FontBuilder.cpp b/sky/engine/core/css/resolver/FontBuilder.cpp
|
| index 6dab4e6b41c7720033c3e7d0dbb59bc6c136ab19..d0ea86d139bbd24044a60aff582e192398b03dae 100644
|
| --- a/sky/engine/core/css/resolver/FontBuilder.cpp
|
| +++ b/sky/engine/core/css/resolver/FontBuilder.cpp
|
| @@ -441,35 +441,9 @@ float FontBuilder::getComputedSizeFromSpecifiedSize(FontDescription& fontDescrip
|
|
|
| static void getFontAndGlyphOrientation(const RenderStyle* style, FontOrientation& fontOrientation, NonCJKGlyphOrientation& glyphOrientation)
|
| {
|
| - if (style->isHorizontalWritingMode()) {
|
| - fontOrientation = Horizontal;
|
| - glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| - return;
|
| - }
|
| -
|
| - switch (style->textOrientation()) {
|
| - case TextOrientationVerticalRight:
|
| - fontOrientation = Vertical;
|
| - glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| - return;
|
| - case TextOrientationUpright:
|
| - fontOrientation = Vertical;
|
| - glyphOrientation = NonCJKGlyphOrientationUpright;
|
| - return;
|
| - case TextOrientationSideways:
|
| - fontOrientation = Horizontal;
|
| - glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| - return;
|
| - case TextOrientationSidewaysRight:
|
| - fontOrientation = Horizontal;
|
| - glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| - return;
|
| - default:
|
| - ASSERT_NOT_REACHED();
|
| - fontOrientation = Horizontal;
|
| - glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| - return;
|
| - }
|
| + // FIXME(sky): Remove this function now that we don't have writing modes.
|
| + fontOrientation = Horizontal;
|
| + glyphOrientation = NonCJKGlyphOrientationVerticalRight;
|
| }
|
|
|
| void FontBuilder::checkForOrientationChange(RenderStyle* style)
|
|
|