| 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 * 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |