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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 private: | 70 private: |
71 Attr(Element&, const QualifiedName&); | 71 Attr(Element&, const QualifiedName&); |
72 Attr(Document&, const QualifiedName&, const AtomicString& value); | 72 Attr(Document&, const QualifiedName&, const AtomicString& value); |
73 | 73 |
74 void createTextChild(); | 74 void createTextChild(); |
75 | 75 |
76 virtual String nodeName() const OVERRIDE { return name(); } | 76 virtual String nodeName() const OVERRIDE { return name(); } |
77 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; } | 77 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; } |
78 | 78 |
79 virtual String nodeValue() const OVERRIDE { return value(); } | 79 virtual String nodeValue() const OVERRIDE { return value(); } |
80 virtual void setNodeValue(const String&); | 80 virtual void setNodeValue(const String&) OVERRIDE; |
81 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 81 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE; |
82 | 82 |
83 virtual bool isAttributeNode() const { return true; } | 83 virtual bool isAttributeNode() const OVERRIDE { return true; } |
84 virtual bool childTypeAllowed(NodeType) const; | 84 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
85 | 85 |
86 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 86 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
87 | 87 |
88 Attribute& elementAttribute(); | 88 Attribute& elementAttribute(); |
89 | 89 |
90 // Attr wraps either an element/name, or a name/value pair (when it's a stan
dalone Node.) | 90 // Attr wraps either an element/name, or a name/value pair (when it's a stan
dalone Node.) |
91 // Note that m_name is always set, but m_element/m_standaloneValue may be nu
ll. | 91 // Note that m_name is always set, but m_element/m_standaloneValue may be nu
ll. |
92 Element* m_element; | 92 Element* m_element; |
93 QualifiedName m_name; | 93 QualifiedName m_name; |
94 AtomicString m_standaloneValue; | 94 AtomicString m_standaloneValue; |
95 unsigned m_ignoreChildrenChanged; | 95 unsigned m_ignoreChildrenChanged; |
96 }; | 96 }; |
97 | 97 |
98 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); | 98 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); |
99 | 99 |
100 } // namespace WebCore | 100 } // namespace WebCore |
101 | 101 |
102 #endif // Attr_h | 102 #endif // Attr_h |
OLD | NEW |