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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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/RenderListBox.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('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) 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 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 { 214 {
215 return lastChild() == m_marker; 215 return lastChild() == m_marker;
216 } 216 }
217 217
218 static RenderObject* getParentOfFirstLineBox(RenderBlock* curr, RenderObject* ma rker) 218 static RenderObject* getParentOfFirstLineBox(RenderBlock* curr, RenderObject* ma rker)
219 { 219 {
220 RenderObject* firstChild = curr->firstChild(); 220 RenderObject* firstChild = curr->firstChild();
221 if (!firstChild) 221 if (!firstChild)
222 return 0; 222 return 0;
223 223
224 bool inQuirksMode = curr->document()->inQuirksMode(); 224 bool inQuirksMode = curr->document().inQuirksMode();
225 for (RenderObject* currChild = firstChild; currChild; currChild = currChild- >nextSibling()) { 225 for (RenderObject* currChild = firstChild; currChild; currChild = currChild- >nextSibling()) {
226 if (currChild == marker) 226 if (currChild == marker)
227 continue; 227 continue;
228 228
229 if (currChild->isInline() && (!currChild->isRenderInline() || curr->gene ratesLineBoxesForInlineChild(currChild))) 229 if (currChild->isInline() && (!currChild->isRenderInline() || curr->gene ratesLineBoxesForInlineChild(currChild)))
230 return curr; 230 return curr;
231 231
232 if (currChild->isFloating() || currChild->isOutOfFlowPositioned()) 232 if (currChild->isFloating() || currChild->isOutOfFlowPositioned())
233 continue; 233 continue;
234 234
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // assume that all the following ones have too. 504 // assume that all the following ones have too.
505 // This gives us the opportunity to stop here and avoid 505 // This gives us the opportunity to stop here and avoid
506 // marking the same nodes again. 506 // marking the same nodes again.
507 break; 507 break;
508 } 508 }
509 item->updateValue(); 509 item->updateValue();
510 } 510 }
511 } 511 }
512 512
513 } // namespace WebCore 513 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698