diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp b/Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp index 1fd52a919..e4e545a1b 100644 --- a/Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp +++ b/Source/WebCore/platform/graphics/FractionalLayoutBoxExtent.cpp @@ -35,6 +35,16 @@ namespace WebCore { +FractionalLayoutUnit FractionalLayoutBoxExtent::logicalTop(const RenderStyle* style) const +{ + return style->isHorizontalWritingMode() ? m_top : m_left; +} + +FractionalLayoutUnit FractionalLayoutBoxExtent::logicalBottom(const RenderStyle* style) const +{ + return style->isHorizontalWritingMode() ? m_bottom : m_right; +} + FractionalLayoutUnit FractionalLayoutBoxExtent::logicalLeft(const RenderStyle* style) const { return style->isHorizontalWritingMode() ? m_left : m_top; |