Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: sky/engine/core/rendering/RenderBox.h

Issue 684383002: Delete a ton more dead vertical writing mode code. (Closed) Base URL: git@github.com:domokit/mojo.git@writingmode1
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderBlockLineLayout.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(); }
« no previous file with comments | « sky/engine/core/rendering/RenderBlockLineLayout.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698