diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/platform/graphics/FontDescription.h | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/platform/graphics/FontDescription.h')
-rw-r--r-- | Source/WebCore/platform/graphics/FontDescription.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/FontDescription.h b/Source/WebCore/platform/graphics/FontDescription.h index 283d297..5b05f14 100644 --- a/Source/WebCore/platform/graphics/FontDescription.h +++ b/Source/WebCore/platform/graphics/FontDescription.h @@ -31,6 +31,7 @@ #include "FontSmoothingMode.h" #include "FontTraitsMask.h" #include "FontWidthVariant.h" +#include "TextOrientation.h" #include "TextRenderingMode.h" namespace WebCore { @@ -58,6 +59,7 @@ public: : m_specifiedSize(0) , m_computedSize(0) , m_orientation(Horizontal) + , m_textOrientation(TextOrientationVerticalRight) , m_widthVariant(RegularWidth) , m_italic(false) , m_smallCaps(false) @@ -99,6 +101,7 @@ public: FontTraitsMask traitsMask() const; bool isSpecifiedFont() const { return m_isSpecifiedFont; } FontOrientation orientation() const { return m_orientation; } + TextOrientation textOrientation() const { return m_textOrientation; } FontWidthVariant widthVariant() const { return m_widthVariant; } void setFamily(const FontFamily& family) { m_familyList = family; } @@ -120,6 +123,7 @@ public: void setTextRenderingMode(TextRenderingMode rendering) { m_textRendering = rendering; } void setIsSpecifiedFont(bool isSpecifiedFont) { m_isSpecifiedFont = isSpecifiedFont; } void setOrientation(FontOrientation orientation) { m_orientation = orientation; } + void setTextOrientation(TextOrientation textOrientation) { m_textOrientation = textOrientation; } void setWidthVariant(FontWidthVariant widthVariant) { m_widthVariant = widthVariant; } private: @@ -129,8 +133,9 @@ private: // rounding, minimum font sizes, and zooming. float m_computedSize; // Computed size adjusted for the minimum font size and the zoom factor. - FontOrientation m_orientation; - + FontOrientation m_orientation; // Whether the font is rendering on a horizontal line or a vertical line. + TextOrientation m_textOrientation; // Only used by vertical text. Determines the default orientation for non-ideograph glyphs. + FontWidthVariant m_widthVariant; bool m_italic : 1; @@ -169,6 +174,7 @@ inline bool FontDescription::operator==(const FontDescription& other) const && m_textRendering == other.m_textRendering && m_isSpecifiedFont == other.m_isSpecifiedFont && m_orientation == other.m_orientation + && m_textOrientation == other.m_textOrientation && m_widthVariant == other.m_widthVariant; } |