| 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..952dbcbdcde6370891f40ee3d447df6823148c30
|
| --- /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 use_alias_parsing);
|
| + bool GetUseAliasParsing();
|
| +
|
| + private:
|
| + bool use_alias_parsing_;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // CSSParserLocalContext_h
|
|
|