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, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 if (style.display() == NONE) | 248 if (style.display() == NONE) |
249 return false; | 249 return false; |
250 | 250 |
251 if (!containsOnlyWhitespace()) | 251 if (!containsOnlyWhitespace()) |
252 return true; | 252 return true; |
253 | 253 |
254 if (!parent.canHaveWhitespaceChildren()) | 254 if (!parent.canHaveWhitespaceChildren()) |
255 return false; | 255 return false; |
256 | 256 |
| 257 if (style.whiteSpace() == PRE_WRAP && parent.isSVG()) // pre-wrap in SVG nev
er makes renderer. |
| 258 return false; |
| 259 |
257 if (style.preserveNewline()) // pre/pre-wrap/pre-line always make renderers. | 260 if (style.preserveNewline()) // pre/pre-wrap/pre-line always make renderers. |
258 return true; | 261 return true; |
259 | 262 |
260 const RenderObject* prev = NodeRenderingTraversal::previousSiblingRenderer(t
his); | 263 const RenderObject* prev = NodeRenderingTraversal::previousSiblingRenderer(t
his); |
261 if (prev && prev->isBR()) // <span><br/> <br/></span> | 264 if (prev && prev->isBR()) // <span><br/> <br/></span> |
262 return false; | 265 return false; |
263 | 266 |
264 if (parent.isRenderInline()) { | 267 if (parent.isRenderInline()) { |
265 // <span><div/> <div/></span> | 268 // <span><div/> <div/></span> |
266 if (prev && !prev->isInline()) | 269 if (prev && !prev->isInline()) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 result.appendLiteral("; "); | 370 result.appendLiteral("; "); |
368 result.appendLiteral("value="); | 371 result.appendLiteral("value="); |
369 result.append(s); | 372 result.append(s); |
370 } | 373 } |
371 | 374 |
372 strncpy(buffer, result.toString().utf8().data(), length - 1); | 375 strncpy(buffer, result.toString().utf8().data(), length - 1); |
373 } | 376 } |
374 #endif | 377 #endif |
375 | 378 |
376 } // namespace blink | 379 } // namespace blink |
OLD | NEW |