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

Side by Side Diff: Source/core/css/parser/CSSSupportsParser.h

Issue 1278103002: Oilpan: tidy up some inter-stack object references. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use STACK_ALLOCATED() more often Created 5 years, 4 months 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 CSSSupportsParser_h 5 #ifndef CSSSupportsParser_h
6 #define CSSSupportsParser_h 6 #define CSSSupportsParser_h
7 7
8 #include "platform/heap/Handle.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 class CSSParserImpl; 12 class CSSParserImpl;
11 class CSSParserTokenRange; 13 class CSSParserTokenRange;
12 14
13 class CSSSupportsParser { 15 class CSSSupportsParser {
16 STACK_ALLOCATED();
14 public: 17 public:
15 enum SupportsResult { 18 enum SupportsResult {
16 Unsupported = false, 19 Unsupported = false,
17 Supported = true, 20 Supported = true,
18 Invalid 21 Invalid
19 }; 22 };
20 23
21 static SupportsResult supportsCondition(CSSParserTokenRange, CSSParserImpl&) ; 24 static SupportsResult supportsCondition(CSSParserTokenRange, CSSParserImpl&) ;
22 25
23 private: 26 private:
24 CSSSupportsParser(CSSParserImpl& parser) : m_parser(parser) { } 27 CSSSupportsParser(CSSParserImpl& parser) : m_parser(parser) { }
25 28
26 SupportsResult consumeCondition(CSSParserTokenRange); 29 SupportsResult consumeCondition(CSSParserTokenRange);
27 SupportsResult consumeNegation(CSSParserTokenRange); 30 SupportsResult consumeNegation(CSSParserTokenRange);
28 31
29 SupportsResult consumeConditionInParenthesis(CSSParserTokenRange&); 32 SupportsResult consumeConditionInParenthesis(CSSParserTokenRange&);
30 33
31 CSSParserImpl& m_parser; 34 CSSParserImpl& m_parser;
32 }; 35 };
33 36
34 } // namespace blink 37 } // namespace blink
35 38
36 #endif // CSSSupportsParser_h 39 #endif // CSSSupportsParser_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserObserverWrapper.h ('k') | Source/core/css/resolver/FontBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698