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 PropertyHandle_h | 5 #ifndef PropertyHandle_h |
6 #define PropertyHandle_h | 6 #define PropertyHandle_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/dom/QualifiedName.h" | 10 #include "core/dom/QualifiedName.h" |
11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class CORE_EXPORT PropertyHandle { | 15 class CORE_EXPORT PropertyHandle { |
16 ALLOW_ONLY_INLINE_ALLOCATION(); | 16 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
17 public: | 17 public: |
18 explicit PropertyHandle(CSSPropertyID property) | 18 explicit PropertyHandle(CSSPropertyID property) |
19 : handleType(HandleCSSProperty) | 19 : handleType(HandleCSSProperty) |
20 , property(property) | 20 , property(property) |
21 { | 21 { |
22 ASSERT(property != CSSPropertyInvalid); | 22 ASSERT(property != CSSPropertyInvalid); |
23 } | 23 } |
24 | 24 |
25 explicit PropertyHandle(const QualifiedName& attributeName) | 25 explicit PropertyHandle(const QualifiedName& attributeName) |
26 : handleType(HandleSVGAttribute) | 26 : handleType(HandleSVGAttribute) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 static blink::PropertyHandle emptyValue() | 97 static blink::PropertyHandle emptyValue() |
98 { | 98 { |
99 return blink::PropertyHandle::emptyValueForHashTraits(); | 99 return blink::PropertyHandle::emptyValueForHashTraits(); |
100 } | 100 } |
101 }; | 101 }; |
102 | 102 |
103 } // namespace WTF | 103 } // namespace WTF |
104 | 104 |
105 #endif // PropertyHandle_h | 105 #endif // PropertyHandle_h |
OLD | NEW |