Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: Source/core/dom/ElementRareData.h

Issue 19266007: Web Animations: Introduce ActiveAnimations and AnimationStack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 16 matching lines...) Expand all
27 #include "core/dom/NodeRareData.h" 27 #include "core/dom/NodeRareData.h"
28 #include "core/dom/PseudoElement.h" 28 #include "core/dom/PseudoElement.h"
29 #include "core/dom/shadow/ElementShadow.h" 29 #include "core/dom/shadow/ElementShadow.h"
30 #include "core/html/ClassList.h" 30 #include "core/html/ClassList.h"
31 #include "core/html/ime/InputMethodContext.h" 31 #include "core/html/ime/InputMethodContext.h"
32 #include "core/rendering/style/StyleInheritedData.h" 32 #include "core/rendering/style/StyleInheritedData.h"
33 #include "wtf/OwnPtr.h" 33 #include "wtf/OwnPtr.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class Animation;
38 class HTMLElement; 37 class HTMLElement;
39 38
40 class ElementRareData : public NodeRareData { 39 class ElementRareData : public NodeRareData {
41 public: 40 public:
42 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) { return a doptPtr(new ElementRareData(renderer)); } 41 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) { return a doptPtr(new ElementRareData(renderer)); }
43 42
44 ~ElementRareData(); 43 ~ElementRareData();
45 44
46 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>); 45 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>);
47 PseudoElement* pseudoElement(PseudoId) const; 46 PseudoElement* pseudoElement(PseudoId) const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 123
125 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } 124 DatasetDOMStringMap* dataset() const { return m_dataset.get(); }
126 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas et; } 125 void setDataset(PassOwnPtr<DatasetDOMStringMap> dataset) { m_dataset = datas et; }
127 126
128 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; } 127 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; }
129 void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing = size; } 128 void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing = size; }
130 129
131 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } 130 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; }
132 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si ze; } 131 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si ze; }
133 132
134 Vector<Animation*>* activeAnimations() { return m_activeAnimations.get(); }
135 void setActiveAnimations(PassOwnPtr<Vector<Animation*> > animations)
136 {
137 m_activeAnimations = animations;
138 }
139
140 bool hasPendingResources() const { return m_hasPendingResources; } 133 bool hasPendingResources() const { return m_hasPendingResources; }
141 void setHasPendingResources(bool has) { m_hasPendingResources = has; } 134 void setHasPendingResources(bool has) { m_hasPendingResources = has; }
142 135
143 InputMethodContext* ensureInputMethodContext(HTMLElement* element) 136 InputMethodContext* ensureInputMethodContext(HTMLElement* element)
144 { 137 {
145 if (!m_inputMethodContext) 138 if (!m_inputMethodContext)
146 m_inputMethodContext = InputMethodContext::create(element); 139 m_inputMethodContext = InputMethodContext::create(element);
147 return m_inputMethodContext.get(); 140 return m_inputMethodContext.get();
148 } 141 }
149 142
(...skipping 25 matching lines...) Expand all
175 LayoutSize m_minimumSizeForResizing; 168 LayoutSize m_minimumSizeForResizing;
176 IntSize m_savedLayerScrollOffset; 169 IntSize m_savedLayerScrollOffset;
177 RefPtr<RenderStyle> m_computedStyle; 170 RefPtr<RenderStyle> m_computedStyle;
178 171
179 OwnPtr<DatasetDOMStringMap> m_dataset; 172 OwnPtr<DatasetDOMStringMap> m_dataset;
180 OwnPtr<ClassList> m_classList; 173 OwnPtr<ClassList> m_classList;
181 OwnPtr<ElementShadow> m_shadow; 174 OwnPtr<ElementShadow> m_shadow;
182 OwnPtr<NamedNodeMap> m_attributeMap; 175 OwnPtr<NamedNodeMap> m_attributeMap;
183 OwnPtr<InputMethodContext> m_inputMethodContext; 176 OwnPtr<InputMethodContext> m_inputMethodContext;
184 177
185 OwnPtr<Vector<Animation*> > m_activeAnimations;
186
187 RefPtr<PseudoElement> m_generatedBefore; 178 RefPtr<PseudoElement> m_generatedBefore;
188 RefPtr<PseudoElement> m_generatedAfter; 179 RefPtr<PseudoElement> m_generatedAfter;
189 RefPtr<PseudoElement> m_backdrop; 180 RefPtr<PseudoElement> m_backdrop;
190 181
191 ElementRareData(RenderObject*); 182 ElementRareData(RenderObject*);
192 void releasePseudoElement(PseudoElement*); 183 void releasePseudoElement(PseudoElement*);
193 }; 184 };
194 185
195 inline IntSize defaultMinimumSizeForResizing() 186 inline IntSize defaultMinimumSizeForResizing()
196 { 187 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 setChildrenAffectedByFirstChildRules(false); 285 setChildrenAffectedByFirstChildRules(false);
295 setChildrenAffectedByLastChildRules(false); 286 setChildrenAffectedByLastChildRules(false);
296 setChildrenAffectedByDirectAdjacentRules(false); 287 setChildrenAffectedByDirectAdjacentRules(false);
297 setChildrenAffectedByForwardPositionalRules(false); 288 setChildrenAffectedByForwardPositionalRules(false);
298 setChildrenAffectedByBackwardPositionalRules(false); 289 setChildrenAffectedByBackwardPositionalRules(false);
299 } 290 }
300 291
301 } // namespace 292 } // namespace
302 293
303 #endif // ElementRareData_h 294 #endif // ElementRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698