| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 return legend; | 211 return legend; |
| 212 } | 212 } |
| 213 | 213 |
| 214 LayoutBox* LayoutFieldset::findInFlowLegend() const { | 214 LayoutBox* LayoutFieldset::findInFlowLegend() const { |
| 215 for (LayoutObject* legend = firstChild(); legend; | 215 for (LayoutObject* legend = firstChild(); legend; |
| 216 legend = legend->nextSibling()) { | 216 legend = legend->nextSibling()) { |
| 217 if (legend->isFloatingOrOutOfFlowPositioned()) | 217 if (legend->isFloatingOrOutOfFlowPositioned()) |
| 218 continue; | 218 continue; |
| 219 | 219 |
| 220 if (isHTMLLegendElement(legend->node())) { | 220 if (isHTMLLegendElement(legend->node())) |
| 221 if (legend->isBox()) | 221 return toLayoutBox(legend); |
| 222 return toLayoutBox(legend); | |
| 223 } | |
| 224 } | 222 } |
| 225 return nullptr; | 223 return nullptr; |
| 226 } | 224 } |
| 227 | 225 |
| 228 void LayoutFieldset::paintBoxDecorationBackground( | 226 void LayoutFieldset::paintBoxDecorationBackground( |
| 229 const PaintInfo& paintInfo, | 227 const PaintInfo& paintInfo, |
| 230 const LayoutPoint& paintOffset) const { | 228 const LayoutPoint& paintOffset) const { |
| 231 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); | 229 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); |
| 232 } | 230 } |
| 233 | 231 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 LayoutFlexibleBox::removeChild(oldChild); | 292 LayoutFlexibleBox::removeChild(oldChild); |
| 295 m_innerBlock = nullptr; | 293 m_innerBlock = nullptr; |
| 296 } else if (oldChild->parent() == this) { | 294 } else if (oldChild->parent() == this) { |
| 297 LayoutFlexibleBox::removeChild(oldChild); | 295 LayoutFlexibleBox::removeChild(oldChild); |
| 298 } else if (m_innerBlock) { | 296 } else if (m_innerBlock) { |
| 299 m_innerBlock->removeChild(oldChild); | 297 m_innerBlock->removeChild(oldChild); |
| 300 } | 298 } |
| 301 } | 299 } |
| 302 | 300 |
| 303 } // namespace blink | 301 } // namespace blink |
| OLD | NEW |