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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 { | 263 { |
264 if (!parent.canHaveChildren()) | 264 if (!parent.canHaveChildren()) |
265 return false; | 265 return false; |
266 | 266 |
267 if (isEditingText()) | 267 if (isEditingText()) |
268 return true; | 268 return true; |
269 | 269 |
270 if (!length()) | 270 if (!length()) |
271 return false; | 271 return false; |
272 | 272 |
273 if (style.display() == NONE) | 273 if (style.display() == EDisplay::None) |
274 return false; | 274 return false; |
275 | 275 |
276 if (!containsOnlyWhitespace()) | 276 if (!containsOnlyWhitespace()) |
277 return true; | 277 return true; |
278 | 278 |
279 if (!canHaveWhitespaceChildren(parent)) | 279 if (!canHaveWhitespaceChildren(parent)) |
280 return false; | 280 return false; |
281 | 281 |
282 // pre-wrap in SVG never makes layoutObject. | 282 // pre-wrap in SVG never makes layoutObject. |
283 if (style.whiteSpace() == PRE_WRAP && parent.isSVG()) | 283 if (style.whiteSpace() == PRE_WRAP && parent.isSVG()) |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 { | 438 { |
439 return create(document(), data); | 439 return create(document(), data); |
440 } | 440 } |
441 | 441 |
442 DEFINE_TRACE(Text) | 442 DEFINE_TRACE(Text) |
443 { | 443 { |
444 CharacterData::trace(visitor); | 444 CharacterData::trace(visitor); |
445 } | 445 } |
446 | 446 |
447 } // namespace blink | 447 } // namespace blink |
OLD | NEW |