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 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 Loading... |
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 |
OLD | NEW |