| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StyleInheritedVariables_h | 5 #ifndef StyleInheritedVariables_h |
| 6 #define StyleInheritedVariables_h | 6 #define StyleInheritedVariables_h |
| 7 | 7 |
| 8 #include "core/css/CSSValue.h" | 8 #include "core/css/CSSValue.h" |
| 9 #include "core/css/CSSVariableData.h" | 9 #include "core/css/CSSVariableData.h" |
| 10 #include "wtf/Forward.h" | 10 #include "platform/wtf/Forward.h" |
| 11 #include "wtf/HashMap.h" | 11 #include "platform/wtf/HashMap.h" |
| 12 #include "wtf/RefCounted.h" | 12 #include "platform/wtf/RefCounted.h" |
| 13 #include "wtf/text/AtomicStringHash.h" | 13 #include "platform/wtf/text/AtomicStringHash.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class StyleInheritedVariables : public RefCounted<StyleInheritedVariables> { | 17 class StyleInheritedVariables : public RefCounted<StyleInheritedVariables> { |
| 18 public: | 18 public: |
| 19 static PassRefPtr<StyleInheritedVariables> Create() { | 19 static PassRefPtr<StyleInheritedVariables> Create() { |
| 20 return AdoptRef(new StyleInheritedVariables()); | 20 return AdoptRef(new StyleInheritedVariables()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 PassRefPtr<StyleInheritedVariables> Copy() { | 23 PassRefPtr<StyleInheritedVariables> Copy() { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 friend class CSSVariableResolver; | 52 friend class CSSVariableResolver; |
| 53 | 53 |
| 54 HashMap<AtomicString, RefPtr<CSSVariableData>> data_; | 54 HashMap<AtomicString, RefPtr<CSSVariableData>> data_; |
| 55 HashMap<AtomicString, Persistent<CSSValue>> registered_data_; | 55 HashMap<AtomicString, Persistent<CSSValue>> registered_data_; |
| 56 RefPtr<StyleInheritedVariables> root_; | 56 RefPtr<StyleInheritedVariables> root_; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // StyleInheritedVariables_h | 61 #endif // StyleInheritedVariables_h |
| OLD | NEW |