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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 LayoutUnit constrainLogicalWidthByMinMax(LayoutUnit, LayoutUnit, RenderBlock *) const; 119 LayoutUnit constrainLogicalWidthByMinMax(LayoutUnit, LayoutUnit, RenderBlock *) const;
120 LayoutUnit constrainLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUn it intrinsicContentHeight) const; 120 LayoutUnit constrainLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUn it intrinsicContentHeight) const;
121 LayoutUnit constrainContentBoxLogicalHeightByMinMax(LayoutUnit logicalHeight , LayoutUnit intrinsicContentHeight) const; 121 LayoutUnit constrainContentBoxLogicalHeightByMinMax(LayoutUnit logicalHeight , LayoutUnit intrinsicContentHeight) const;
122 122
123 int pixelSnappedLogicalHeight() const { return pixelSnappedHeight(); } 123 int pixelSnappedLogicalHeight() const { return pixelSnappedHeight(); }
124 int pixelSnappedLogicalWidth() const { return pixelSnappedWidth(); } 124 int pixelSnappedLogicalWidth() const { return pixelSnappedWidth(); }
125 125
126 void setLogicalLeft(LayoutUnit left) 126 void setLogicalLeft(LayoutUnit left)
127 { 127 {
128 if (style()->isHorizontalWritingMode()) 128 setX(left);
129 setX(left);
130 else
131 setY(left);
132 } 129 }
133 void setLogicalTop(LayoutUnit top) 130 void setLogicalTop(LayoutUnit top)
134 { 131 {
135 if (style()->isHorizontalWritingMode()) 132 setY(top);
136 setY(top);
137 else
138 setX(top);
139 } 133 }
140 void setLogicalLocation(const LayoutPoint& location) 134 void setLogicalLocation(const LayoutPoint& location)
141 { 135 {
142 if (style()->isHorizontalWritingMode()) 136 setLocation(location);
143 setLocation(location);
144 else
145 setLocation(location.transposedPoint());
146 } 137 }
147 void setLogicalWidth(LayoutUnit size) 138 void setLogicalWidth(LayoutUnit size)
148 { 139 {
149 if (style()->isHorizontalWritingMode()) 140 setWidth(size);
150 setWidth(size);
151 else
152 setHeight(size);
153 } 141 }
154 void setLogicalHeight(LayoutUnit size) 142 void setLogicalHeight(LayoutUnit size)
155 { 143 {
156 if (style()->isHorizontalWritingMode()) 144 setHeight(size);
157 setHeight(size);
158 else
159 setWidth(size);
160 } 145 }
161 void setLogicalSize(const LayoutSize& size) 146 void setLogicalSize(const LayoutSize& size)
162 { 147 {
163 if (style()->isHorizontalWritingMode()) 148 setSize(size);
164 setSize(size);
165 else
166 setSize(size.transposedSize());
167 } 149 }
168 150
169 LayoutPoint location() const { return m_frameRect.location(); } 151 LayoutPoint location() const { return m_frameRect.location(); }
170 LayoutSize locationOffset() const { return LayoutSize(x(), y()); } 152 LayoutSize locationOffset() const { return LayoutSize(x(), y()); }
171 LayoutSize size() const { return m_frameRect.size(); } 153 LayoutSize size() const { return m_frameRect.size(); }
172 IntSize pixelSnappedSize() const { return m_frameRect.pixelSnappedSize(); } 154 IntSize pixelSnappedSize() const { return m_frameRect.pixelSnappedSize(); }
173 155
174 void setLocation(const LayoutPoint& location) { m_frameRect.setLocation(loca tion); } 156 void setLocation(const LayoutPoint& location) { m_frameRect.setLocation(loca tion); }
175 157
176 void setSize(const LayoutSize& size) { m_frameRect.setSize(size); } 158 void setSize(const LayoutSize& size) { m_frameRect.setSize(size); }
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 if (UNLIKELY(inlineBoxWrapper() != 0)) 765 if (UNLIKELY(inlineBoxWrapper() != 0))
784 deleteLineBoxWrapper(); 766 deleteLineBoxWrapper();
785 } 767 }
786 768
787 ensureRareData().m_inlineBoxWrapper = boxWrapper; 769 ensureRareData().m_inlineBoxWrapper = boxWrapper;
788 } 770 }
789 771
790 } // namespace blink 772 } // namespace blink
791 773
792 #endif // RenderBox_h 774 #endif // RenderBox_h
OLDNEW
« 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