OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> | 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef ElementRareData_h | 22 #ifndef ElementRareData_h |
23 #define ElementRareData_h | 23 #define ElementRareData_h |
24 | 24 |
25 #include "core/animation/ActiveAnimations.h" | 25 #include "core/animation/ActiveAnimations.h" |
| 26 #include "core/dom/Attr.h" |
26 #include "core/dom/DatasetDOMStringMap.h" | 27 #include "core/dom/DatasetDOMStringMap.h" |
27 #include "core/dom/NamedNodeMap.h" | 28 #include "core/dom/NamedNodeMap.h" |
28 #include "core/dom/NodeRareData.h" | 29 #include "core/dom/NodeRareData.h" |
29 #include "core/dom/PseudoElement.h" | 30 #include "core/dom/PseudoElement.h" |
30 #include "core/dom/custom/CustomElementDefinition.h" | 31 #include "core/dom/custom/CustomElementDefinition.h" |
31 #include "core/dom/shadow/ElementShadow.h" | 32 #include "core/dom/shadow/ElementShadow.h" |
32 #include "core/html/ClassList.h" | 33 #include "core/html/ClassList.h" |
33 #include "core/html/ime/InputMethodContext.h" | 34 #include "core/html/ime/InputMethodContext.h" |
34 #include "core/rendering/style/StyleInheritedData.h" | 35 #include "core/rendering/style/StyleInheritedData.h" |
35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 m_inputMethodContext = InputMethodContext::create(element); | 117 m_inputMethodContext = InputMethodContext::create(element); |
117 return *m_inputMethodContext; | 118 return *m_inputMethodContext; |
118 } | 119 } |
119 | 120 |
120 bool hasPseudoElements() const; | 121 bool hasPseudoElements() const; |
121 void clearPseudoElements(); | 122 void clearPseudoElements(); |
122 | 123 |
123 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti
on) { m_customElementDefinition = definition; } | 124 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definiti
on) { m_customElementDefinition = definition; } |
124 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } | 125 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } |
125 | 126 |
| 127 WillBeHeapVector<RefPtrWillBeMember<Attr> >& ensureAttrNodeList(); |
| 128 WillBeHeapVector<RefPtrWillBeMember<Attr> >* attrNodeList() { return m_attrN
odeList.get(); } |
| 129 void removeAttrNodeList() { m_attrNodeList.clear(); } |
| 130 |
126 void traceAfterDispatch(Visitor*); | 131 void traceAfterDispatch(Visitor*); |
127 | 132 |
128 private: | 133 private: |
129 short m_tabindex; | 134 short m_tabindex; |
130 | 135 |
131 LayoutSize m_minimumSizeForResizing; | 136 LayoutSize m_minimumSizeForResizing; |
132 IntSize m_savedLayerScrollOffset; | 137 IntSize m_savedLayerScrollOffset; |
133 | 138 |
134 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; | 139 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; |
135 OwnPtrWillBeMember<ClassList> m_classList; | 140 OwnPtrWillBeMember<ClassList> m_classList; |
136 OwnPtrWillBeMember<ElementShadow> m_shadow; | 141 OwnPtrWillBeMember<ElementShadow> m_shadow; |
137 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; | 142 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; |
| 143 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Attr> > > m_attrNodeL
ist; |
138 OwnPtrWillBeMember<InputMethodContext> m_inputMethodContext; | 144 OwnPtrWillBeMember<InputMethodContext> m_inputMethodContext; |
139 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; | 145 OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; |
140 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; | 146 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; |
141 | 147 |
142 RefPtr<RenderStyle> m_computedStyle; | 148 RefPtr<RenderStyle> m_computedStyle; |
143 RefPtr<CustomElementDefinition> m_customElementDefinition; | 149 RefPtr<CustomElementDefinition> m_customElementDefinition; |
144 | 150 |
145 RefPtrWillBeMember<PseudoElement> m_generatedBefore; | 151 RefPtrWillBeMember<PseudoElement> m_generatedBefore; |
146 RefPtrWillBeMember<PseudoElement> m_generatedAfter; | 152 RefPtrWillBeMember<PseudoElement> m_generatedAfter; |
147 RefPtrWillBeMember<PseudoElement> m_backdrop; | 153 RefPtrWillBeMember<PseudoElement> m_backdrop; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 } | 228 } |
223 | 229 |
224 inline void ElementRareData::resetStyleState() | 230 inline void ElementRareData::resetStyleState() |
225 { | 231 { |
226 clearElementFlag(StyleAffectedByEmpty); | 232 clearElementFlag(StyleAffectedByEmpty); |
227 } | 233 } |
228 | 234 |
229 } // namespace | 235 } // namespace |
230 | 236 |
231 #endif // ElementRareData_h | 237 #endif // ElementRareData_h |
OLD | NEW |