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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual bool canContainRangeEndPoint() const { return true; } | 55 virtual bool canContainRangeEndPoint() const { return true; } |
56 virtual NodeType nodeType() const; | 56 virtual NodeType nodeType() const; |
57 | 57 |
58 protected: | 58 protected: |
59 Text(Handle<Document> document, const String& data, ConstructionType type) | 59 Text(Handle<Document> document, const String& data, ConstructionType type) |
60 : CharacterData(document, data, type) | 60 : CharacterData(document, data, type) |
61 { | 61 { |
62 ScriptWrappable::init(this); | 62 ScriptWrappable::init(this); |
63 } | 63 } |
64 | 64 |
| 65 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 66 |
65 private: | 67 private: |
66 virtual String nodeName() const; | 68 virtual String nodeName() const; |
67 virtual PassRefPtr<Node> cloneNode(bool deep); | 69 virtual PassRefPtr<Node> cloneNode(bool deep); |
68 virtual bool childTypeAllowed(NodeType) const; | 70 virtual bool childTypeAllowed(NodeType) const; |
69 | 71 |
70 virtual PassRefPtr<Text> virtualCreate(const String&); | 72 virtual PassRefPtr<Text> virtualCreate(const String&); |
71 | 73 |
72 #ifndef NDEBUG | 74 #ifndef NDEBUG |
73 virtual void formatForDebugger(char* buffer, unsigned length) const; | 75 virtual void formatForDebugger(char* buffer, unsigned length) const; |
74 #endif | 76 #endif |
75 }; | 77 }; |
76 | 78 |
77 inline Text* toText(Node* node) | 79 inline Text* toText(Node* node) |
78 { | 80 { |
79 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isTextNode()); | 81 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isTextNode()); |
80 return static_cast<Text*>(node); | 82 return static_cast<Text*>(node); |
81 } | 83 } |
82 | 84 |
83 } // namespace WebCore | 85 } // namespace WebCore |
84 | 86 |
85 #endif // Text_h | 87 #endif // Text_h |
OLD | NEW |