| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } | 60 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } |
| 61 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } | 61 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } |
| 62 const AtomicString& prefix() const { return m_name.prefix(); } | 62 const AtomicString& prefix() const { return m_name.prefix(); } |
| 63 | 63 |
| 64 virtual void trace(Visitor*) OVERRIDE; | 64 virtual void trace(Visitor*) OVERRIDE; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 Attr(Element&, const QualifiedName&); | 67 Attr(Element&, const QualifiedName&); |
| 68 Attr(Document&, const QualifiedName&, const AtomicString& value); | 68 Attr(Document&, const QualifiedName&, const AtomicString& value); |
| 69 | 69 |
| 70 bool isElementNode() const WTF_DELETED_FUNCTION; // Hide to catch useless ca
lls. | 70 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d
oing an unnecessary check. |
| 71 | 71 |
| 72 void createTextChild(); | 72 void createTextChild(); |
| 73 | 73 |
| 74 void setValueInternal(const AtomicString&); | 74 void setValueInternal(const AtomicString&); |
| 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&) OVERRIDE; | 80 virtual void setNodeValue(const String&) OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 97 // use a single field. | 97 // use a single field. |
| 98 AtomicString m_standaloneValueOrAttachedLocalName; | 98 AtomicString m_standaloneValueOrAttachedLocalName; |
| 99 unsigned m_ignoreChildrenChanged; | 99 unsigned m_ignoreChildrenChanged; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); | 102 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 #endif // Attr_h | 106 #endif // Attr_h |
| OLD | NEW |