| 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 | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 if (!parent.canHaveChildren()) | 259 if (!parent.canHaveChildren()) |
| 260 return false; | 260 return false; |
| 261 | 261 |
| 262 if (isEditingText()) | 262 if (isEditingText()) |
| 263 return true; | 263 return true; |
| 264 | 264 |
| 265 if (!length()) | 265 if (!length()) |
| 266 return false; | 266 return false; |
| 267 | 267 |
| 268 if (style.display() == EDisplay::None) | 268 if (style.display() == EDisplay::kNone) |
| 269 return false; | 269 return false; |
| 270 | 270 |
| 271 if (!containsOnlyWhitespace()) | 271 if (!containsOnlyWhitespace()) |
| 272 return true; | 272 return true; |
| 273 | 273 |
| 274 if (!canHaveWhitespaceChildren(parent)) | 274 if (!canHaveWhitespaceChildren(parent)) |
| 275 return false; | 275 return false; |
| 276 | 276 |
| 277 // pre-wrap in SVG never makes layoutObject. | 277 // pre-wrap in SVG never makes layoutObject. |
| 278 if (style.whiteSpace() == EWhiteSpace::kPreWrap && parent.isSVG()) | 278 if (style.whiteSpace() == EWhiteSpace::kPreWrap && parent.isSVG()) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 462 |
| 463 Text* Text::cloneWithData(const String& data) { | 463 Text* Text::cloneWithData(const String& data) { |
| 464 return create(document(), data); | 464 return create(document(), data); |
| 465 } | 465 } |
| 466 | 466 |
| 467 DEFINE_TRACE(Text) { | 467 DEFINE_TRACE(Text) { |
| 468 CharacterData::trace(visitor); | 468 CharacterData::trace(visitor); |
| 469 } | 469 } |
| 470 | 470 |
| 471 } // namespace blink | 471 } // namespace blink |
| OLD | NEW |