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 13 matching lines...) Expand all Loading... |
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 CSSStyleDeclaration; | 33 class CSSStyleDeclaration; |
34 class StylePropertySet; | 34 class MutableStylePropertySet; |
35 | 35 |
36 // Attr can have Text children | 36 // Attr can have Text children |
37 // therefore it has to be a fullblown Node. The plan | 37 // therefore it has to be a fullblown Node. The plan |
38 // is to dynamically allocate a textchild and store the | 38 // is to dynamically allocate a textchild and store the |
39 // resulting nodevalue in the attribute upon | 39 // resulting nodevalue in the attribute upon |
40 // destruction. however, this is not yet implemented. | 40 // destruction. however, this is not yet implemented. |
41 | 41 |
42 class Attr FINAL : public ContainerNode { | 42 class Attr FINAL : public ContainerNode { |
43 public: | 43 public: |
44 static PassRefPtr<Attr> create(Element*, const QualifiedName&); | 44 static PassRefPtr<Attr> create(Element*, const QualifiedName&); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 89 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
90 | 90 |
91 Attribute& elementAttribute(); | 91 Attribute& elementAttribute(); |
92 | 92 |
93 // Attr wraps either an element/name, or a name/value pair (when it's a stan
dalone Node.) | 93 // Attr wraps either an element/name, or a name/value pair (when it's a stan
dalone Node.) |
94 // Note that m_name is always set, but m_element/m_standaloneValue may be nu
ll. | 94 // Note that m_name is always set, but m_element/m_standaloneValue may be nu
ll. |
95 Element* m_element; | 95 Element* m_element; |
96 QualifiedName m_name; | 96 QualifiedName m_name; |
97 AtomicString m_standaloneValue; | 97 AtomicString m_standaloneValue; |
98 | 98 |
99 RefPtr<StylePropertySet> m_style; | 99 RefPtr<MutableStylePropertySet> m_style; |
100 unsigned m_ignoreChildrenChanged : 31; | 100 unsigned m_ignoreChildrenChanged : 31; |
101 bool m_specified : 1; | 101 bool m_specified : 1; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace WebCore | 104 } // namespace WebCore |
105 | 105 |
106 #endif // Attr_h | 106 #endif // Attr_h |
OLD | NEW |