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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 if (style.display() == EDisplay::None) | 266 if (style.display() == EDisplay::None) |
267 return false; | 267 return false; |
268 | 268 |
269 if (!containsOnlyWhitespace()) | 269 if (!containsOnlyWhitespace()) |
270 return true; | 270 return true; |
271 | 271 |
272 if (!canHaveWhitespaceChildren(parent)) | 272 if (!canHaveWhitespaceChildren(parent)) |
273 return false; | 273 return false; |
274 | 274 |
275 // pre-wrap in SVG never makes layoutObject. | 275 // pre-wrap in SVG never makes layoutObject. |
276 if (style.whiteSpace() == EWhiteSpace::PreWrap && parent.isSVG()) | 276 if (style.whiteSpace() == EWhiteSpace::kPreWrap && parent.isSVG()) |
277 return false; | 277 return false; |
278 | 278 |
279 // pre/pre-wrap/pre-line always make layoutObjects. | 279 // pre/pre-wrap/pre-line always make layoutObjects. |
280 if (style.preserveNewline()) | 280 if (style.preserveNewline()) |
281 return true; | 281 return true; |
282 | 282 |
283 // childNeedsDistributionRecalc() here is rare, only happens JS calling | 283 // childNeedsDistributionRecalc() here is rare, only happens JS calling |
284 // surroundContents() etc. from DOMNodeInsertedIntoDocument etc. | 284 // surroundContents() etc. from DOMNodeInsertedIntoDocument etc. |
285 if (document().childNeedsDistributionRecalc()) | 285 if (document().childNeedsDistributionRecalc()) |
286 return true; | 286 return true; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 449 |
450 Text* Text::cloneWithData(const String& data) { | 450 Text* Text::cloneWithData(const String& data) { |
451 return create(document(), data); | 451 return create(document(), data); |
452 } | 452 } |
453 | 453 |
454 DEFINE_TRACE(Text) { | 454 DEFINE_TRACE(Text) { |
455 CharacterData::trace(visitor); | 455 CharacterData::trace(visitor); |
456 } | 456 } |
457 | 457 |
458 } // namespace blink | 458 } // namespace blink |
OLD | NEW |