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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserObserverWrapper.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 CSSParserObserverWrapper_h 5 #ifndef CSSParserObserverWrapper_h
6 #define CSSParserObserverWrapper_h 6 #define CSSParserObserverWrapper_h
7 7
8 #include "core/css/parser/CSSParserObserver.h" 8 #include "core/css/parser/CSSParserObserver.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 25 matching lines...) Expand all
36 m_firstParserToken = firstParserToken; 36 m_firstParserToken = firstParserToken;
37 m_commentIterator = m_commentOffsets.begin(); 37 m_commentIterator = m_commentOffsets.begin();
38 } 38 }
39 39
40 private: 40 private:
41 CSSParserObserver& m_observer; 41 CSSParserObserver& m_observer;
42 Vector<unsigned> m_tokenOffsets; 42 Vector<unsigned> m_tokenOffsets;
43 CSSParserToken* m_firstParserToken; 43 CSSParserToken* m_firstParserToken;
44 44
45 struct CommentPosition { 45 struct CommentPosition {
46 ALLOW_ONLY_INLINE_ALLOCATION(); 46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
47 unsigned startOffset; 47 unsigned startOffset;
48 unsigned endOffset; 48 unsigned endOffset;
49 unsigned tokensBefore; 49 unsigned tokensBefore;
50 }; 50 };
51 51
52 Vector<CommentPosition> m_commentOffsets; 52 Vector<CommentPosition> m_commentOffsets;
53 Vector<CommentPosition>::iterator m_commentIterator; 53 Vector<CommentPosition>::iterator m_commentIterator;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // CSSParserObserverWrapper_h 58 #endif // CSSParserObserverWrapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698