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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 const QualifiedName& qualifiedName() const { return m_name; } | 57 const QualifiedName& qualifiedName() const { return m_name; } |
58 | 58 |
59 bool isId() const; | 59 bool isId() const; |
60 | 60 |
61 void setSpecified(bool specified) { m_specified = specified; } | 61 void setSpecified(bool specified) { m_specified = specified; } |
62 | 62 |
63 void attachToElement(Element*); | 63 void attachToElement(Element*); |
64 void detachFromElementWithValue(const AtomicString&); | 64 void detachFromElementWithValue(const AtomicString&); |
65 | 65 |
| 66 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } |
| 67 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } |
| 68 virtual const AtomicString& prefix() const OVERRIDE { return m_name.prefix()
; } |
| 69 |
| 70 virtual void setPrefix(const AtomicString&, ExceptionState&) OVERRIDE; |
| 71 |
66 private: | 72 private: |
67 Attr(Element*, const QualifiedName&); | 73 Attr(Element*, const QualifiedName&); |
68 Attr(Document*, const QualifiedName&, const AtomicString& value); | 74 Attr(Document*, const QualifiedName&, const AtomicString& value); |
69 | 75 |
70 void createTextChild(); | 76 void createTextChild(); |
71 | 77 |
72 virtual String nodeName() const OVERRIDE { return name(); } | 78 virtual String nodeName() const OVERRIDE { return name(); } |
73 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; } | 79 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; } |
74 | 80 |
75 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } | |
76 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } | |
77 virtual const AtomicString& prefix() const OVERRIDE { return m_name.prefix()
; } | |
78 | |
79 virtual void setPrefix(const AtomicString&, ExceptionState&); | |
80 | |
81 virtual String nodeValue() const OVERRIDE { return value(); } | 81 virtual String nodeValue() const OVERRIDE { return value(); } |
82 virtual void setNodeValue(const String&); | 82 virtual void setNodeValue(const String&); |
83 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 83 virtual PassRefPtr<Node> cloneNode(bool deep = true); |
84 | 84 |
85 virtual bool isAttributeNode() const { return true; } | 85 virtual bool isAttributeNode() const { return true; } |
86 virtual bool childTypeAllowed(NodeType) const; | 86 virtual bool childTypeAllowed(NodeType) const; |
87 | 87 |
88 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 88 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
89 | 89 |
90 Attribute& elementAttribute(); | 90 Attribute& elementAttribute(); |
(...skipping 16 matching lines...) Expand all Loading... |
107 | 107 |
108 inline const Attr* toAttr(const Node* node) | 108 inline const Attr* toAttr(const Node* node) |
109 { | 109 { |
110 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isAttributeNode()); | 110 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isAttributeNode()); |
111 return static_cast<const Attr*>(node); | 111 return static_cast<const Attr*>(node); |
112 } | 112 } |
113 | 113 |
114 } // namespace WebCore | 114 } // namespace WebCore |
115 | 115 |
116 #endif // Attr_h | 116 #endif // Attr_h |
OLD | NEW |