Changeset 17995 in webkit
- Timestamp:
- Dec 4, 2006 1:21:08 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r17993 r17995 1 2006-12-04 Rob Buis <buis@kde.org> 2 3 Reviewed by dhyatt. 4 5 Patch by pmax. 6 7 Testcase for: 8 http://bugs.webkit.org/show_bug.cgi?id=3280 9 With LEGEND element, align=right value is not supported 10 http://bugs.webkit.org/show_bug.cgi?id=11544 11 <legend> rendering doesn't take align into account 12 13 * fast/forms/fieldset-align-expected.checksum: Added. 14 * fast/forms/fieldset-align-expected.png: Added. 15 * fast/forms/fieldset-align-expected.txt: Added. 16 * fast/forms/fieldset-align.html: Added. 17 1 18 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org> 2 19 -
trunk/WebCore/ChangeLog
r17994 r17995 1 2006-12-04 Rob Buis <buis@kde.org> 2 3 Reviewed by dhyatt. 4 5 Patch by pmax. 6 7 http://bugs.webkit.org/show_bug.cgi?id=3280 8 With LEGEND element, align=right value is not supported 9 http://bugs.webkit.org/show_bug.cgi?id=11544 10 <legend> rendering doesn't take align into account 11 12 Allow aligning for legends in both RTL and LTR mode. 13 14 * rendering/RenderFieldset.cpp: 15 (WebCore::RenderFieldset::layoutLegend): 16 1 17 2006-12-03 Mark Rowe <bdash@webkit.org> 2 18 -
trunk/WebCore/rendering/RenderFieldset.cpp
r17521 r17995 50 50 legend->layoutIfNeeded(); 51 51 52 int xPos = borderLeft() + paddingLeft() + legend->marginLeft(); 53 if (style()->direction() == RTL) 54 xPos = m_width - paddingRight() - borderRight() - legend->width() - legend->marginRight(); 52 int xPos; 53 if (style()->direction() == RTL) { 54 switch (legend->style()->textAlign()) { 55 case LEFT: 56 xPos = borderLeft() + paddingLeft(); 57 break; 58 case CENTER: 59 xPos = (m_width - legend->width()) / 2; 60 break; 61 default: 62 xPos = m_width - paddingRight() - borderRight() - legend->width() - legend->marginRight(); 63 } 64 } else { 65 switch (legend->style()->textAlign()) { 66 case RIGHT: 67 xPos = m_width - paddingRight() - borderRight() - legend->width(); 68 break; 69 case CENTER: 70 xPos = (m_width - legend->width()) / 2; 71 break; 72 default: 73 xPos = borderLeft() + paddingLeft() + legend->marginLeft(); 74 } 75 } 55 76 int b = borderTop(); 56 77 int h = legend->height();
Note: See TracChangeset
for help on using the changeset viewer.