Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e34cabe4ba2550c481d329152e48d1ba7119731c |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp |
| @@ -0,0 +1,21 @@ |
| +// 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. |
| + |
| +#include "core/css/properties/CSSPropertyAPIPage.h" |
| + |
| +#include "core/css/CSSValueList.h" |
|
Bugs Nash
2017/01/05 23:04:16
not needed
aazzam
2017/01/08 02:42:25
removed :)
|
| +#include "core/css/parser/CSSParserTokenRange.h" |
|
Bugs Nash
2017/01/05 23:04:16
can be forward declared instead of included
aazzam
2017/01/08 02:42:25
fixed!
|
| +#include "core/css/parser/CSSPropertyParserHelpers.h" |
| + |
| +namespace blink { |
| + |
| +const CSSValue* CSSPropertyAPIPage::parseSingleValue( |
| + CSSParserTokenRange& range, |
| + const CSSParserContext& context) { |
| + if (range.peek().id() == CSSValueAuto) |
| + return CSSPropertyParserHelpers::consumeIdent(range); |
| + return CSSPropertyParserHelpers::consumeCustomIdent(range); |
| +} |
| + |
| +} // namespace blink |