OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 child->setParent(this); | 99 child->setParent(this); |
100 if (!m_firstChild) { | 100 if (!m_firstChild) { |
101 m_firstChild = child; | 101 m_firstChild = child; |
102 m_lastChild = child; | 102 m_lastChild = child; |
103 } else { | 103 } else { |
104 m_lastChild->setNextOnLine(child); | 104 m_lastChild->setNextOnLine(child); |
105 child->setPrevOnLine(m_lastChild); | 105 child->setPrevOnLine(m_lastChild); |
106 m_lastChild = child; | 106 m_lastChild = child; |
107 } | 107 } |
108 child->setFirstLineStyleBit(isFirstLineStyle()); | 108 child->setFirstLineStyleBit(isFirstLineStyle() == FirstLineStyle); |
109 child->setIsHorizontal(isHorizontal()); | 109 child->setIsHorizontal(isHorizontal()); |
110 if (child->isText()) { | 110 if (child->isText()) { |
111 if (child->renderer().parent() == renderer()) | 111 if (child->renderer().parent() == renderer()) |
112 m_hasTextChildren = true; | 112 m_hasTextChildren = true; |
113 setHasTextDescendantsOnAncestors(this); | 113 setHasTextDescendantsOnAncestors(this); |
114 } else if (child->isInlineFlowBox()) { | 114 } else if (child->isInlineFlowBox()) { |
115 if (toInlineFlowBox(child)->hasTextDescendants()) | 115 if (toInlineFlowBox(child)->hasTextDescendants()) |
116 setHasTextDescendantsOnAncestors(this); | 116 setHasTextDescendantsOnAncestors(this); |
117 } | 117 } |
118 | 118 |
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 ASSERT(child->prevOnLine() == prev); | 1662 ASSERT(child->prevOnLine() == prev); |
1663 prev = child; | 1663 prev = child; |
1664 } | 1664 } |
1665 ASSERT(prev == m_lastChild); | 1665 ASSERT(prev == m_lastChild); |
1666 #endif | 1666 #endif |
1667 } | 1667 } |
1668 | 1668 |
1669 #endif | 1669 #endif |
1670 | 1670 |
1671 } // namespace WebCore | 1671 } // namespace WebCore |
OLD | NEW |