| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "core/animation/ElementAnimations.h" | 25 #include "core/animation/ElementAnimations.h" |
| 26 #include "core/dom/Attr.h" | 26 #include "core/dom/Attr.h" |
| 27 #include "core/dom/DatasetDOMStringMap.h" | 27 #include "core/dom/DatasetDOMStringMap.h" |
| 28 #include "core/dom/NamedNodeMap.h" | 28 #include "core/dom/NamedNodeMap.h" |
| 29 #include "core/dom/NodeRareData.h" | 29 #include "core/dom/NodeRareData.h" |
| 30 #include "core/dom/PseudoElement.h" | 30 #include "core/dom/PseudoElement.h" |
| 31 #include "core/dom/custom/CustomElementDefinition.h" | 31 #include "core/dom/custom/CustomElementDefinition.h" |
| 32 #include "core/dom/shadow/ElementShadow.h" | 32 #include "core/dom/shadow/ElementShadow.h" |
| 33 #include "core/html/ClassList.h" | 33 #include "core/html/ClassList.h" |
| 34 #include "core/html/ime/InputMethodContext.h" | |
| 35 #include "core/style/StyleInheritedData.h" | 34 #include "core/style/StyleInheritedData.h" |
| 36 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 37 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
| 38 | 37 |
| 39 namespace blink { | 38 namespace blink { |
| 40 | 39 |
| 41 class HTMLElement; | 40 class HTMLElement; |
| 42 | 41 |
| 43 class ElementRareData : public NodeRareData { | 42 class ElementRareData : public NodeRareData { |
| 44 public: | 43 public: |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 104 |
| 106 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } | 105 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } |
| 107 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } | 106 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si
ze; } |
| 108 | 107 |
| 109 ElementAnimations* elementAnimations() { return m_elementAnimations.get(); } | 108 ElementAnimations* elementAnimations() { return m_elementAnimations.get(); } |
| 110 void setElementAnimations(PassOwnPtrWillBeRawPtr<ElementAnimations> elementA
nimations) | 109 void setElementAnimations(PassOwnPtrWillBeRawPtr<ElementAnimations> elementA
nimations) |
| 111 { | 110 { |
| 112 m_elementAnimations = elementAnimations; | 111 m_elementAnimations = elementAnimations; |
| 113 } | 112 } |
| 114 | 113 |
| 115 bool hasInputMethodContext() const { return m_inputMethodContext; } | |
| 116 InputMethodContext& ensureInputMethodContext(HTMLElement* element) | |
| 117 { | |
| 118 if (!m_inputMethodContext) | |
| 119 m_inputMethodContext = InputMethodContext::create(element); | |
| 120 return *m_inputMethodContext; | |
| 121 } | |
| 122 | |
| 123 bool hasPseudoElements() const; | 114 bool hasPseudoElements() const; |
| 124 void clearPseudoElements(); | 115 void clearPseudoElements(); |
| 125 | 116 |
| 126 uint32_t incrementProxyCount() { return ++m_proxyCount; } | 117 uint32_t incrementProxyCount() { return ++m_proxyCount; } |
| 127 uint32_t decrementProxyCount() | 118 uint32_t decrementProxyCount() |
| 128 { | 119 { |
| 129 ASSERT(m_proxyCount); | 120 ASSERT(m_proxyCount); |
| 130 return --m_proxyCount; | 121 return --m_proxyCount; |
| 131 } | 122 } |
| 132 uint32_t proxyCount() const { return m_proxyCount; } | 123 uint32_t proxyCount() const { return m_proxyCount; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 146 unsigned short m_proxyCount : 10; | 137 unsigned short m_proxyCount : 10; |
| 147 | 138 |
| 148 LayoutSize m_minimumSizeForResizing; | 139 LayoutSize m_minimumSizeForResizing; |
| 149 IntSize m_savedLayerScrollOffset; | 140 IntSize m_savedLayerScrollOffset; |
| 150 | 141 |
| 151 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; | 142 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; |
| 152 OwnPtrWillBeMember<ClassList> m_classList; | 143 OwnPtrWillBeMember<ClassList> m_classList; |
| 153 OwnPtrWillBeMember<ElementShadow> m_shadow; | 144 OwnPtrWillBeMember<ElementShadow> m_shadow; |
| 154 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; | 145 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; |
| 155 OwnPtrWillBeMember<AttrNodeList> m_attrNodeList; | 146 OwnPtrWillBeMember<AttrNodeList> m_attrNodeList; |
| 156 OwnPtrWillBeMember<InputMethodContext> m_inputMethodContext; | |
| 157 OwnPtrWillBeMember<ElementAnimations> m_elementAnimations; | 147 OwnPtrWillBeMember<ElementAnimations> m_elementAnimations; |
| 158 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; | 148 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; |
| 159 | 149 |
| 160 RefPtr<ComputedStyle> m_computedStyle; | 150 RefPtr<ComputedStyle> m_computedStyle; |
| 161 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition; | 151 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition; |
| 162 | 152 |
| 163 RefPtrWillBeMember<PseudoElement> m_generatedBefore; | 153 RefPtrWillBeMember<PseudoElement> m_generatedBefore; |
| 164 RefPtrWillBeMember<PseudoElement> m_generatedAfter; | 154 RefPtrWillBeMember<PseudoElement> m_generatedAfter; |
| 165 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter; | 155 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter; |
| 166 RefPtrWillBeMember<PseudoElement> m_backdrop; | 156 RefPtrWillBeMember<PseudoElement> m_backdrop; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 case FIRST_LETTER: | 237 case FIRST_LETTER: |
| 248 return m_generatedFirstLetter.get(); | 238 return m_generatedFirstLetter.get(); |
| 249 default: | 239 default: |
| 250 return 0; | 240 return 0; |
| 251 } | 241 } |
| 252 } | 242 } |
| 253 | 243 |
| 254 } // namespace | 244 } // namespace |
| 255 | 245 |
| 256 #endif // ElementRareData_h | 246 #endif // ElementRareData_h |
| OLD | NEW |