OLD | NEW |
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 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi
dth + borderAndPaddingWidth()); | 61 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi
dth + borderAndPaddingWidth()); |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
SubtreeLayoutScope&) | 65 LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
SubtreeLayoutScope&) |
66 { | 66 { |
67 LayoutBox* legend = findLegend(); | 67 LayoutBox* legend = findLegend(); |
68 if (legend) { | 68 if (legend) { |
69 if (relayoutChildren) | 69 if (relayoutChildren) |
70 legend->setNeedsLayoutAndFullPaintInvalidation(); | 70 legend->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationRea
son::FieldsetChanged); |
71 legend->layoutIfNeeded(); | 71 legend->layoutIfNeeded(); |
72 | 72 |
73 LayoutUnit logicalLeft; | 73 LayoutUnit logicalLeft; |
74 if (style()->isLeftToRightDirection()) { | 74 if (style()->isLeftToRightDirection()) { |
75 switch (legend->style()->textAlign()) { | 75 switch (legend->style()->textAlign()) { |
76 case CENTER: | 76 case CENTER: |
77 logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) /
2; | 77 logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) /
2; |
78 break; | 78 break; |
79 case RIGHT: | 79 case RIGHT: |
80 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi
calWidthForChild(*legend); | 80 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi
calWidthForChild(*legend); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 { | 142 { |
143 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); | 143 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); |
144 } | 144 } |
145 | 145 |
146 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) | 146 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) |
147 { | 147 { |
148 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); | 148 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); |
149 } | 149 } |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
OLD | NEW |