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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 { | 271 { |
272 if (!child) | 272 if (!child) |
273 return false; | 273 return false; |
274 | 274 |
275 if (child == ancestor) | 275 if (child == ancestor) |
276 return true; | 276 return true; |
277 | 277 |
278 RenderObject* curr = child; | 278 RenderObject* curr = child; |
279 RenderObject* parent = curr->parent(); | 279 RenderObject* parent = curr->parent(); |
280 while (parent && (!parent->isRenderBlock() || parent->isInline())) { | 280 while (parent && (!parent->isRenderBlock() || parent->isInline())) { |
281 if (parent->lastChild() != curr) | 281 if (parent->slowLastChild() != curr) |
282 return false; | 282 return false; |
283 if (parent == ancestor) | 283 if (parent == ancestor) |
284 return true; | 284 return true; |
285 | 285 |
286 curr = parent; | 286 curr = parent; |
287 parent = curr->parent(); | 287 parent = curr->parent(); |
288 } | 288 } |
289 | 289 |
290 return true; | 290 return true; |
291 } | 291 } |
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 ASSERT(child->prevOnLine() == prev); | 1656 ASSERT(child->prevOnLine() == prev); |
1657 prev = child; | 1657 prev = child; |
1658 } | 1658 } |
1659 ASSERT(prev == m_lastChild); | 1659 ASSERT(prev == m_lastChild); |
1660 #endif | 1660 #endif |
1661 } | 1661 } |
1662 | 1662 |
1663 #endif | 1663 #endif |
1664 | 1664 |
1665 } // namespace WebCore | 1665 } // namespace WebCore |
OLD | NEW |