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, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } | 96 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } |
97 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas
et; } | 97 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas
et; } |
98 | 98 |
99 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing;
} | 99 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing;
} |
100 void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing =
size; } | 100 void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing =
size; } |
101 | 101 |
102 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } | 102 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } |
103 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } | 103 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } |
104 | 104 |
105 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } | 105 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } |
106 void setActiveAnimations(PassOwnPtr<ActiveAnimations> activeAnimations) | 106 void setActiveAnimations(PassOwnPtrWillBeRawPtr<ActiveAnimations> activeAnim
ations) |
107 { | 107 { |
108 m_activeAnimations = activeAnimations; | 108 m_activeAnimations = activeAnimations; |
109 } | 109 } |
110 | 110 |
111 bool hasInputMethodContext() const { return m_inputMethodContext; } | 111 bool hasInputMethodContext() const { return m_inputMethodContext; } |
112 InputMethodContext& ensureInputMethodContext(HTMLElement* element) | 112 InputMethodContext& ensureInputMethodContext(HTMLElement* element) |
113 { | 113 { |
114 if (!m_inputMethodContext) | 114 if (!m_inputMethodContext) |
115 m_inputMethodContext = InputMethodContext::create(element); | 115 m_inputMethodContext = InputMethodContext::create(element); |
116 return *m_inputMethodContext; | 116 return *m_inputMethodContext; |
(...skipping 10 matching lines...) Expand all Loading... |
127 unsigned short m_childIndex; | 127 unsigned short m_childIndex; |
128 | 128 |
129 LayoutSize m_minimumSizeForResizing; | 129 LayoutSize m_minimumSizeForResizing; |
130 IntSize m_savedLayerScrollOffset; | 130 IntSize m_savedLayerScrollOffset; |
131 | 131 |
132 OwnPtr<DatasetDOMStringMap> m_dataset; | 132 OwnPtr<DatasetDOMStringMap> m_dataset; |
133 OwnPtr<ClassList> m_classList; | 133 OwnPtr<ClassList> m_classList; |
134 OwnPtr<ElementShadow> m_shadow; | 134 OwnPtr<ElementShadow> m_shadow; |
135 OwnPtr<NamedNodeMap> m_attributeMap; | 135 OwnPtr<NamedNodeMap> m_attributeMap; |
136 OwnPtr<InputMethodContext> m_inputMethodContext; | 136 OwnPtr<InputMethodContext> m_inputMethodContext; |
137 OwnPtr<ActiveAnimations> m_activeAnimations; | 137 OwnPtrWillBePersistent<ActiveAnimations> m_activeAnimations; |
138 OwnPtr<InlineCSSStyleDeclaration> m_cssomWrapper; | 138 OwnPtr<InlineCSSStyleDeclaration> m_cssomWrapper; |
139 | 139 |
140 RefPtr<RenderStyle> m_computedStyle; | 140 RefPtr<RenderStyle> m_computedStyle; |
141 RefPtr<CustomElementDefinition> m_customElementDefinition; | 141 RefPtr<CustomElementDefinition> m_customElementDefinition; |
142 | 142 |
143 RefPtr<PseudoElement> m_generatedBefore; | 143 RefPtr<PseudoElement> m_generatedBefore; |
144 RefPtr<PseudoElement> m_generatedAfter; | 144 RefPtr<PseudoElement> m_generatedAfter; |
145 RefPtr<PseudoElement> m_backdrop; | 145 RefPtr<PseudoElement> m_backdrop; |
146 | 146 |
147 explicit ElementRareData(RenderObject*); | 147 explicit ElementRareData(RenderObject*); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 inline void ElementRareData::resetStyleState() | 220 inline void ElementRareData::resetStyleState() |
221 { | 221 { |
222 clearElementFlag(StyleAffectedByEmpty); | 222 clearElementFlag(StyleAffectedByEmpty); |
223 setChildIndex(0); | 223 setChildIndex(0); |
224 } | 224 } |
225 | 225 |
226 } // namespace | 226 } // namespace |
227 | 227 |
228 #endif // ElementRareData_h | 228 #endif // ElementRareData_h |
OLD | NEW |