| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 } | 226 } |
| 227 | 227 |
| 228 String Text::nodeName() const { | 228 String Text::nodeName() const { |
| 229 return "#text"; | 229 return "#text"; |
| 230 } | 230 } |
| 231 | 231 |
| 232 Node::NodeType Text::getNodeType() const { | 232 Node::NodeType Text::getNodeType() const { |
| 233 return kTextNode; | 233 return kTextNode; |
| 234 } | 234 } |
| 235 | 235 |
| 236 Node* Text::cloneNode(bool /*deep*/) { | 236 Node* Text::cloneNode(bool /*deep*/, ExceptionState&) { |
| 237 return cloneWithData(data()); | 237 return cloneWithData(data()); |
| 238 } | 238 } |
| 239 | 239 |
| 240 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) { | 240 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) { |
| 241 // <button> and <fieldset> should allow whitespace even though | 241 // <button> and <fieldset> should allow whitespace even though |
| 242 // LayoutFlexibleBox doesn't. | 242 // LayoutFlexibleBox doesn't. |
| 243 if (parent.isLayoutButton() || parent.isFieldset()) | 243 if (parent.isLayoutButton() || parent.isFieldset()) |
| 244 return true; | 244 return true; |
| 245 | 245 |
| 246 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() || | 246 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() || |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 Text* Text::cloneWithData(const String& data) { | 452 Text* Text::cloneWithData(const String& data) { |
| 453 return create(document(), data); | 453 return create(document(), data); |
| 454 } | 454 } |
| 455 | 455 |
| 456 DEFINE_TRACE(Text) { | 456 DEFINE_TRACE(Text) { |
| 457 CharacterData::trace(visitor); | 457 CharacterData::trace(visitor); |
| 458 } | 458 } |
| 459 | 459 |
| 460 } // namespace blink | 460 } // namespace blink |
| OLD | NEW |