Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CSSParserLocalContext_h | |
| 6 #define CSSParserLocalContext_h | |
| 7 | |
| 8 #include "platform/wtf/Allocator.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 // A wrapper class containing all local context when parsing a property. | |
| 13 // TODO(jiameng): add info for shorthand properties into this class. | |
| 14 | |
| 15 class CSSParserLocalContext { | |
| 16 STACK_ALLOCATED(); | |
| 17 | |
| 18 public: | |
| 19 CSSParserLocalContext(); | |
| 20 explicit CSSParserLocalContext(bool); | |
|
meade_UTC10
2017/05/26 00:29:23
I'd keep the name of the bool here for clarity. Th
| |
| 21 bool GetUseAliasParsing(); | |
| 22 | |
| 23 private: | |
| 24 bool use_alias_parsing_; | |
| 25 }; | |
| 26 | |
| 27 } // namespace blink | |
| 28 | |
| 29 #endif // CSSParserLocalContext_h | |
| OLD | NEW |