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 22 matching lines...) Expand all Loading... |
33 #include "core/html/ime/InputMethodContext.h" | 33 #include "core/html/ime/InputMethodContext.h" |
34 #include "core/rendering/style/StyleInheritedData.h" | 34 #include "core/rendering/style/StyleInheritedData.h" |
35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class HTMLElement; | 39 class HTMLElement; |
40 | 40 |
41 class ElementRareData : public NodeRareData { | 41 class ElementRareData : public NodeRareData { |
42 public: | 42 public: |
43 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) { return a
doptPtr(new ElementRareData(renderer)); } | 43 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) |
| 44 { |
| 45 return adoptPtr(new ElementRareData(renderer)); |
| 46 } |
44 | 47 |
45 ~ElementRareData(); | 48 ~ElementRareData(); |
46 | 49 |
47 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>); | 50 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>); |
48 PseudoElement* pseudoElement(PseudoId) const; | 51 PseudoElement* pseudoElement(PseudoId) const; |
49 | 52 |
50 void resetStyleState(); | 53 void resetStyleState(); |
51 | 54 |
52 short tabIndex() const { return m_tabindex; } | 55 short tabIndex() const { return m_tabindex; } |
53 | 56 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 222 |
220 inline void ElementRareData::resetStyleState() | 223 inline void ElementRareData::resetStyleState() |
221 { | 224 { |
222 clearElementFlag(StyleAffectedByEmpty); | 225 clearElementFlag(StyleAffectedByEmpty); |
223 setChildIndex(0); | 226 setChildIndex(0); |
224 } | 227 } |
225 | 228 |
226 } // namespace | 229 } // namespace |
227 | 230 |
228 #endif // ElementRareData_h | 231 #endif // ElementRareData_h |
OLD | NEW |