FloatSize ShapeOutsideInfo::shapeToRendererSize(FloatSize size) const
{
    if (!m_renderer.style()->isHorizontalWritingMode())
        return size.transposedSize();
    return size;
}
Beispiel #2
0
static inline FloatSize physicalSizeToLogical(const FloatSize& size, WritingMode writingMode)
{
    if (isHorizontalWritingMode(writingMode))
        return size;
    return size.transposedSize();
}
Beispiel #3
0
FloatSize ShapeOutsideInfo::shapeToLayoutObjectSize(FloatSize size) const
{
    if (!m_layoutBox.style()->isHorizontalWritingMode())
        return size.transposedSize();
    return size;
}