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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleChangeReason.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 StyleChangeReason_h 5 #ifndef StyleChangeReason_h
6 #define StyleChangeReason_h 6 #define StyleChangeReason_h
7 7
8 #include "core/dom/QualifiedName.h" 8 #include "core/dom/QualifiedName.h"
9 #include "wtf/NullPtr.h" 9 #include "wtf/NullPtr.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void init(); 62 void init();
63 } 63 }
64 64
65 // |StyleChangeReasonForTracing| is used to trace the reason a 65 // |StyleChangeReasonForTracing| is used to trace the reason a
66 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in 66 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in
67 // about:tracing. 67 // about:tracing.
68 // |StyleChangeReasonForTracing| is strictly only for the tracing purpose as 68 // |StyleChangeReasonForTracing| is strictly only for the tracing purpose as
69 // described above. Blink logic must not depend on this value. 69 // described above. Blink logic must not depend on this value.
70 class StyleChangeReasonForTracing { 70 class StyleChangeReasonForTracing {
71 DISALLOW_ALLOCATION(); 71 DISALLOW_NEW();
72 public: 72 public:
73 static StyleChangeReasonForTracing create(StyleChangeReasonString reasonStri ng) 73 static StyleChangeReasonForTracing create(StyleChangeReasonString reasonStri ng)
74 { 74 {
75 return StyleChangeReasonForTracing(reasonString, nullAtom); 75 return StyleChangeReasonForTracing(reasonString, nullAtom);
76 } 76 }
77 77
78 static StyleChangeReasonForTracing createWithExtraData(StyleChangeReasonStri ng reasonString, const AtomicString& extraData) 78 static StyleChangeReasonForTracing createWithExtraData(StyleChangeReasonStri ng reasonString, const AtomicString& extraData)
79 { 79 {
80 return StyleChangeReasonForTracing(reasonString, extraData); 80 return StyleChangeReasonForTracing(reasonString, extraData);
81 } 81 }
(...skipping 17 matching lines...) Expand all
99 void operator==(const StyleChangeReasonForTracing&) const { } 99 void operator==(const StyleChangeReasonForTracing&) const { }
100 void operator!=(const StyleChangeReasonForTracing&) const { } 100 void operator!=(const StyleChangeReasonForTracing&) const { }
101 101
102 const char* m_reason; 102 const char* m_reason;
103 AtomicString m_extraData; 103 AtomicString m_extraData;
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif // StyleChangeReason_h 108 #endif // StyleChangeReason_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/SelectorQuery.h ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698