Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: third_party/WebKit/Source/core/animation/PropertyHandle.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698