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