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