Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h |
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h b/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..761f20d7f1246321fc56d4f443c30558e95058ba |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSParserLocalContext.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CSSParserLocalContext_h |
| +#define CSSParserLocalContext_h |
| + |
| +#include "platform/wtf/Allocator.h" |
| + |
| +namespace blink { |
| + |
| +// A wrapper class containing all local context when parsing a property. |
| +// TODO(jiameng): add info for shorthand properties into this class. |
| + |
| +class CSSParserLocalContext { |
| + STACK_ALLOCATED(); |
| + |
| + public: |
| + CSSParserLocalContext(); |
| + explicit CSSParserLocalContext(bool); |
|
meade_UTC10
2017/05/26 00:29:23
I'd keep the name of the bool here for clarity. Th
|
| + bool GetUseAliasParsing(); |
| + |
| + private: |
| + bool use_alias_parsing_; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // CSSParserLocalContext_h |