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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 128 } |
129 return legend; | 129 return legend; |
130 } | 130 } |
131 | 131 |
132 LayoutBox* LayoutFieldset::findInFlowLegend() const | 132 LayoutBox* LayoutFieldset::findInFlowLegend() const |
133 { | 133 { |
134 for (LayoutObject* legend = firstChild(); legend; legend = legend->nextSibli
ng()) { | 134 for (LayoutObject* legend = firstChild(); legend; legend = legend->nextSibli
ng()) { |
135 if (legend->isFloatingOrOutOfFlowPositioned()) | 135 if (legend->isFloatingOrOutOfFlowPositioned()) |
136 continue; | 136 continue; |
137 | 137 |
138 if (isHTMLLegendElement(legend->node())) | 138 if (isHTMLLegendElement(legend->node())) { |
139 return toLayoutBox(legend); | 139 if (legend->isBox()) |
| 140 return toLayoutBox(legend); |
| 141 } |
140 } | 142 } |
141 return nullptr; | 143 return nullptr; |
142 } | 144 } |
143 | 145 |
144 void LayoutFieldset::paintBoxDecorationBackground(const PaintInfo& paintInfo, co
nst LayoutPoint& paintOffset) const | 146 void LayoutFieldset::paintBoxDecorationBackground(const PaintInfo& paintInfo, co
nst LayoutPoint& paintOffset) const |
145 { | 147 { |
146 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); | 148 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); |
147 } | 149 } |
148 | 150 |
149 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) const | 151 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) const |
150 { | 152 { |
151 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); | 153 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); |
152 } | 154 } |
153 | 155 |
154 } // namespace blink | 156 } // namespace blink |
OLD | NEW |