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