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 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); | 132 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); |
133 } else if (firstLetterTextRenderer->isFloatingOrOutOfFlowPositioned()) { | 133 } else if (firstLetterTextRenderer->isFloatingOrOutOfFlowPositioned()) { |
134 if (firstLetterTextRenderer->style()->styleType() == FIRST_LETTER) { | 134 if (firstLetterTextRenderer->style()->styleType() == FIRST_LETTER) { |
135 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChil
d(); | 135 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChil
d(); |
136 break; | 136 break; |
137 } | 137 } |
138 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); | 138 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); |
139 } else if (firstLetterTextRenderer->isReplaced() || firstLetterTextRende
rer->isRenderButton() | 139 } else if (firstLetterTextRenderer->isReplaced() || firstLetterTextRende
rer->isRenderButton() |
140 || firstLetterTextRenderer->isMenuList()) { | 140 || firstLetterTextRenderer->isMenuList()) { |
141 return nullptr; | 141 return nullptr; |
142 } else if (firstLetterTextRenderer->isFlexibleBoxIncludingDeprecated() |
| firstLetterTextRenderer->isRenderGrid()) { | 142 } else if (firstLetterTextRenderer->isFlexibleBoxIncludingDeprecated() |
| firstLetterTextRenderer->isLayoutGrid()) { |
143 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); | 143 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); |
144 } else if (firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER
) | 144 } else if (firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER
) |
145 && firstLetterTextRenderer->canHaveGeneratedChildren()) { | 145 && firstLetterTextRenderer->canHaveGeneratedChildren()) { |
146 // There is a renderer further down the tree which has FIRST_LETTER
set. When that node | 146 // There is a renderer further down the tree which has FIRST_LETTER
set. When that node |
147 // is attached we will handle setting up the first letter then. | 147 // is attached we will handle setting up the first letter then. |
148 return nullptr; | 148 return nullptr; |
149 } else { | 149 } else { |
150 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChild(); | 150 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChild(); |
151 } | 151 } |
152 } | 152 } |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 // We only manage the style for the generated content items. | 305 // We only manage the style for the generated content items. |
306 if (!child->isText() && !child->isQuote() && !child->isImage()) | 306 if (!child->isText() && !child->isQuote() && !child->isImage()) |
307 continue; | 307 continue; |
308 | 308 |
309 child->setPseudoStyle(renderer->style()); | 309 child->setPseudoStyle(renderer->style()); |
310 } | 310 } |
311 } | 311 } |
312 | 312 |
313 } // namespace blink | 313 } // namespace blink |
OLD | NEW |