Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: Source/core/rendering/InlineFlowBox.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/FixedTableLayout.cpp ('k') | Source/core/rendering/InlineIterator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/FixedTableLayout.cpp ('k') | Source/core/rendering/InlineIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698