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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 String name() const { return qualifiedName().toString(); } | 49 String name() const { return qualifiedName().toString(); } |
50 bool specified() const { return true; } | 50 bool specified() const { return true; } |
51 Element* ownerElement() const { return m_element; } | 51 Element* ownerElement() const { return m_element; } |
52 | 52 |
53 const AtomicString& value() const; | 53 const AtomicString& value() const; |
54 void setValue(const AtomicString&, ExceptionState&); | 54 void setValue(const AtomicString&, ExceptionState&); |
55 void setValue(const AtomicString&); | 55 void setValue(const AtomicString&); |
56 | 56 |
57 const QualifiedName& qualifiedName() const { return m_name; } | 57 const QualifiedName& qualifiedName() const { return m_name; } |
58 | 58 |
59 bool isId() const; | |
60 | |
61 void attachToElement(Element*); | 59 void attachToElement(Element*); |
62 void detachFromElementWithValue(const AtomicString&); | 60 void detachFromElementWithValue(const AtomicString&); |
63 | 61 |
64 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } | 62 virtual const AtomicString& localName() const OVERRIDE { return m_name.local
Name(); } |
65 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } | 63 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na
mespaceURI(); } |
66 virtual const AtomicString& prefix() const OVERRIDE FINAL { return m_name.pr
efix(); } | 64 virtual const AtomicString& prefix() const OVERRIDE FINAL { return m_name.pr
efix(); } |
67 | 65 |
68 void setPrefix(const AtomicString&, ExceptionState&); | 66 void setPrefix(const AtomicString&, ExceptionState&); |
69 | 67 |
70 private: | 68 private: |
(...skipping 22 matching lines...) Expand all Loading... |
93 QualifiedName m_name; | 91 QualifiedName m_name; |
94 AtomicString m_standaloneValue; | 92 AtomicString m_standaloneValue; |
95 unsigned m_ignoreChildrenChanged; | 93 unsigned m_ignoreChildrenChanged; |
96 }; | 94 }; |
97 | 95 |
98 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); | 96 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); |
99 | 97 |
100 } // namespace WebCore | 98 } // namespace WebCore |
101 | 99 |
102 #endif // Attr_h | 100 #endif // Attr_h |
OLD | NEW |