| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 187 } |
| 188 | 188 |
| 189 using ResizeObserverDataMap = | 189 using ResizeObserverDataMap = |
| 190 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>; | 190 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>; |
| 191 | 191 |
| 192 ResizeObserverDataMap* ResizeObserverData() const { | 192 ResizeObserverDataMap* ResizeObserverData() const { |
| 193 return resize_observer_data_; | 193 return resize_observer_data_; |
| 194 } | 194 } |
| 195 ResizeObserverDataMap& EnsureResizeObserverData(); | 195 ResizeObserverDataMap& EnsureResizeObserverData(); |
| 196 | 196 |
| 197 const AtomicString& GetNonce() const { return nonce_; } |
| 198 void SetNonce(const AtomicString& nonce) { nonce_ = nonce; } |
| 199 |
| 197 DECLARE_TRACE_AFTER_DISPATCH(); | 200 DECLARE_TRACE_AFTER_DISPATCH(); |
| 198 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); | 201 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); |
| 199 | 202 |
| 200 private: | 203 private: |
| 201 CompositorProxiedPropertySet& EnsureCompositorProxiedPropertySet(); | 204 CompositorProxiedPropertySet& EnsureCompositorProxiedPropertySet(); |
| 202 void ClearCompositorProxiedPropertySet() { proxied_properties_ = nullptr; } | 205 void ClearCompositorProxiedPropertySet() { proxied_properties_ = nullptr; } |
| 203 | 206 |
| 204 LayoutSize minimum_size_for_resizing_; | 207 LayoutSize minimum_size_for_resizing_; |
| 205 ScrollOffset saved_layer_scroll_offset_; | 208 ScrollOffset saved_layer_scroll_offset_; |
| 209 AtomicString nonce_; |
| 206 | 210 |
| 207 Member<DatasetDOMStringMap> dataset_; | 211 Member<DatasetDOMStringMap> dataset_; |
| 208 Member<ElementShadow> shadow_; | 212 Member<ElementShadow> shadow_; |
| 209 Member<ClassList> class_list_; | 213 Member<ClassList> class_list_; |
| 210 Member<NamedNodeMap> attribute_map_; | 214 Member<NamedNodeMap> attribute_map_; |
| 211 Member<AttrNodeList> attr_node_list_; | 215 Member<AttrNodeList> attr_node_list_; |
| 212 Member<InlineCSSStyleDeclaration> cssom_wrapper_; | 216 Member<InlineCSSStyleDeclaration> cssom_wrapper_; |
| 213 Member<InlineStylePropertyMap> cssom_map_wrapper_; | 217 Member<InlineStylePropertyMap> cssom_map_wrapper_; |
| 214 std::unique_ptr<CompositorProxiedPropertySet> proxied_properties_; | 218 std::unique_ptr<CompositorProxiedPropertySet> proxied_properties_; |
| 215 | 219 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 inline CompositorProxiedPropertySet& | 290 inline CompositorProxiedPropertySet& |
| 287 ElementRareData::EnsureCompositorProxiedPropertySet() { | 291 ElementRareData::EnsureCompositorProxiedPropertySet() { |
| 288 if (!proxied_properties_) | 292 if (!proxied_properties_) |
| 289 proxied_properties_ = CompositorProxiedPropertySet::Create(); | 293 proxied_properties_ = CompositorProxiedPropertySet::Create(); |
| 290 return *proxied_properties_; | 294 return *proxied_properties_; |
| 291 } | 295 } |
| 292 | 296 |
| 293 } // namespace blink | 297 } // namespace blink |
| 294 | 298 |
| 295 #endif // ElementRareData_h | 299 #endif // ElementRareData_h |
| OLD | NEW |