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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef Attr_h | 25 #ifndef Attr_h |
26 #define Attr_h | 26 #define Attr_h |
27 | 27 |
28 #include "core/dom/ContainerNode.h" | 28 #include "core/dom/ContainerNode.h" |
29 #include "core/dom/QualifiedName.h" | 29 #include "core/dom/QualifiedName.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class ExceptionState; | |
34 | |
35 // Attr can have Text children | 33 // Attr can have Text children |
36 // therefore it has to be a fullblown Node. The plan | 34 // therefore it has to be a fullblown Node. The plan |
37 // is to dynamically allocate a textchild and store the | 35 // is to dynamically allocate a textchild and store the |
38 // resulting nodevalue in the attribute upon | 36 // resulting nodevalue in the attribute upon |
39 // destruction. however, this is not yet implemented. | 37 // destruction. however, this is not yet implemented. |
40 | 38 |
41 class Attr FINAL : public ContainerNode { | 39 class Attr FINAL : public ContainerNode { |
42 public: | 40 public: |
43 static PassRefPtrWillBeRawPtr<Attr> create(Element&, const QualifiedName&); | 41 static PassRefPtrWillBeRawPtr<Attr> create(Element&, const QualifiedName&); |
44 static PassRefPtrWillBeRawPtr<Attr> create(Document&, const QualifiedName&,
const AtomicString& value); | 42 static PassRefPtrWillBeRawPtr<Attr> create(Document&, const QualifiedName&,
const AtomicString& value); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // use a single field. | 95 // use a single field. |
98 AtomicString m_standaloneValueOrAttachedLocalName; | 96 AtomicString m_standaloneValueOrAttachedLocalName; |
99 unsigned m_ignoreChildrenChanged; | 97 unsigned m_ignoreChildrenChanged; |
100 }; | 98 }; |
101 | 99 |
102 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); | 100 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); |
103 | 101 |
104 } // namespace WebCore | 102 } // namespace WebCore |
105 | 103 |
106 #endif // Attr_h | 104 #endif // Attr_h |
OLD | NEW |