| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } | 110 DatasetDOMStringMap* dataset() const { return m_dataset.get(); } |
| 111 void setDataset(DatasetDOMStringMap* dataset) { m_dataset = dataset; } | 111 void setDataset(DatasetDOMStringMap* dataset) { m_dataset = dataset; } |
| 112 | 112 |
| 113 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; } | 113 LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; } |
| 114 void setMinimumSizeForResizing(LayoutSize size) { | 114 void setMinimumSizeForResizing(LayoutSize size) { |
| 115 m_minimumSizeForResizing = size; | 115 m_minimumSizeForResizing = size; |
| 116 } | 116 } |
| 117 | 117 |
| 118 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; } | 118 ScrollOffset savedLayerScrollOffset() const { |
| 119 void setSavedLayerScrollOffset(IntSize size) { | 119 return m_savedLayerScrollOffset; |
| 120 m_savedLayerScrollOffset = size; | 120 } |
| 121 void setSavedLayerScrollOffset(ScrollOffset offset) { |
| 122 m_savedLayerScrollOffset = offset; |
| 121 } | 123 } |
| 122 | 124 |
| 123 ElementAnimations* elementAnimations() { return m_elementAnimations.get(); } | 125 ElementAnimations* elementAnimations() { return m_elementAnimations.get(); } |
| 124 void setElementAnimations(ElementAnimations* elementAnimations) { | 126 void setElementAnimations(ElementAnimations* elementAnimations) { |
| 125 m_elementAnimations = elementAnimations; | 127 m_elementAnimations = elementAnimations; |
| 126 } | 128 } |
| 127 | 129 |
| 128 bool hasPseudoElements() const; | 130 bool hasPseudoElements() const; |
| 129 void clearPseudoElements(); | 131 void clearPseudoElements(); |
| 130 | 132 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 177 |
| 176 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); | 178 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); |
| 177 | 179 |
| 178 private: | 180 private: |
| 179 CompositorProxiedPropertySet& ensureCompositorProxiedPropertySet(); | 181 CompositorProxiedPropertySet& ensureCompositorProxiedPropertySet(); |
| 180 void clearCompositorProxiedPropertySet() { m_proxiedProperties = nullptr; } | 182 void clearCompositorProxiedPropertySet() { m_proxiedProperties = nullptr; } |
| 181 | 183 |
| 182 short m_tabindex; | 184 short m_tabindex; |
| 183 | 185 |
| 184 LayoutSize m_minimumSizeForResizing; | 186 LayoutSize m_minimumSizeForResizing; |
| 185 IntSize m_savedLayerScrollOffset; | 187 ScrollOffset m_savedLayerScrollOffset; |
| 186 | 188 |
| 187 Member<DatasetDOMStringMap> m_dataset; | 189 Member<DatasetDOMStringMap> m_dataset; |
| 188 Member<ElementShadow> m_shadow; | 190 Member<ElementShadow> m_shadow; |
| 189 Member<ClassList> m_classList; | 191 Member<ClassList> m_classList; |
| 190 Member<NamedNodeMap> m_attributeMap; | 192 Member<NamedNodeMap> m_attributeMap; |
| 191 Member<AttrNodeList> m_attrNodeList; | 193 Member<AttrNodeList> m_attrNodeList; |
| 192 Member<InlineCSSStyleDeclaration> m_cssomWrapper; | 194 Member<InlineCSSStyleDeclaration> m_cssomWrapper; |
| 193 Member<InlineStylePropertyMap> m_cssomMapWrapper; | 195 Member<InlineStylePropertyMap> m_cssomMapWrapper; |
| 194 std::unique_ptr<CompositorProxiedPropertySet> m_proxiedProperties; | 196 std::unique_ptr<CompositorProxiedPropertySet> m_proxiedProperties; |
| 195 | 197 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 inline CompositorProxiedPropertySet& | 264 inline CompositorProxiedPropertySet& |
| 263 ElementRareData::ensureCompositorProxiedPropertySet() { | 265 ElementRareData::ensureCompositorProxiedPropertySet() { |
| 264 if (!m_proxiedProperties) | 266 if (!m_proxiedProperties) |
| 265 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 267 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
| 266 return *m_proxiedProperties; | 268 return *m_proxiedProperties; |
| 267 } | 269 } |
| 268 | 270 |
| 269 } // namespace blink | 271 } // namespace blink |
| 270 | 272 |
| 271 #endif // ElementRareData_h | 273 #endif // ElementRareData_h |
| OLD | NEW |