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 10 matching lines...) Expand all Loading... |
21 * | 21 * |
22 */ | 22 */ |
23 | 23 |
24 #include "core/layout/LayoutFieldset.h" | 24 #include "core/layout/LayoutFieldset.h" |
25 | 25 |
26 #include "core/CSSPropertyNames.h" | 26 #include "core/CSSPropertyNames.h" |
27 #include "core/HTMLNames.h" | 27 #include "core/HTMLNames.h" |
28 #include "core/html/HTMLLegendElement.h" | 28 #include "core/html/HTMLLegendElement.h" |
29 #include "core/paint/FieldsetPainter.h" | 29 #include "core/paint/FieldsetPainter.h" |
30 | 30 |
31 using namespace std; | |
32 | |
33 namespace blink { | 31 namespace blink { |
34 | 32 |
35 using namespace HTMLNames; | 33 using namespace HTMLNames; |
36 | 34 |
37 LayoutFieldset::LayoutFieldset(Element* element) : LayoutBlockFlow(element) {} | 35 LayoutFieldset::LayoutFieldset(Element* element) : LayoutBlockFlow(element) {} |
38 | 36 |
39 void LayoutFieldset::computePreferredLogicalWidths() { | 37 void LayoutFieldset::computePreferredLogicalWidths() { |
40 LayoutBlockFlow::computePreferredLogicalWidths(); | 38 LayoutBlockFlow::computePreferredLogicalWidths(); |
41 if (LayoutBox* legend = findInFlowLegend()) { | 39 if (LayoutBox* legend = findInFlowLegend()) { |
42 int legendMinWidth = legend->minPreferredLogicalWidth().toInt(); | 40 int legendMinWidth = legend->minPreferredLogicalWidth().toInt(); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 const LayoutPoint& paintOffset) const { | 152 const LayoutPoint& paintOffset) const { |
155 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); | 153 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); |
156 } | 154 } |
157 | 155 |
158 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, | 156 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, |
159 const LayoutPoint& paintOffset) const { | 157 const LayoutPoint& paintOffset) const { |
160 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); | 158 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); |
161 } | 159 } |
162 | 160 |
163 } // namespace blink | 161 } // namespace blink |
OLD | NEW |