| Index: sky/engine/core/rendering/RenderBox.h
|
| diff --git a/sky/engine/core/rendering/RenderBox.h b/sky/engine/core/rendering/RenderBox.h
|
| index f89d2658aa1f5ae267acef849222a8a18cd9c3d2..90b23708d4b1127cee281d1d2031af04b669fa93 100644
|
| --- a/sky/engine/core/rendering/RenderBox.h
|
| +++ b/sky/engine/core/rendering/RenderBox.h
|
| @@ -125,45 +125,27 @@ public:
|
|
|
| void setLogicalLeft(LayoutUnit left)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setX(left);
|
| - else
|
| - setY(left);
|
| + setX(left);
|
| }
|
| void setLogicalTop(LayoutUnit top)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setY(top);
|
| - else
|
| - setX(top);
|
| + setY(top);
|
| }
|
| void setLogicalLocation(const LayoutPoint& location)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setLocation(location);
|
| - else
|
| - setLocation(location.transposedPoint());
|
| + setLocation(location);
|
| }
|
| void setLogicalWidth(LayoutUnit size)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setWidth(size);
|
| - else
|
| - setHeight(size);
|
| + setWidth(size);
|
| }
|
| void setLogicalHeight(LayoutUnit size)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setHeight(size);
|
| - else
|
| - setWidth(size);
|
| + setHeight(size);
|
| }
|
| void setLogicalSize(const LayoutSize& size)
|
| {
|
| - if (style()->isHorizontalWritingMode())
|
| - setSize(size);
|
| - else
|
| - setSize(size.transposedSize());
|
| + setSize(size);
|
| }
|
|
|
| LayoutPoint location() const { return m_frameRect.location(); }
|
|
|