Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..248d07bc51070676c2503123a1e93dbbcdd7eaf2 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp |
| @@ -0,0 +1,22 @@ |
| +// 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/CSSPropertyAPID.h" |
| + |
| +#include "core/CSSValueKeywords.h" |
| +#include "core/css/parser/CSSPropertyParserHelpers.h" |
| + |
| +namespace blink { |
| + |
| +const CSSValue* CSSPropertyAPID::parseSingleValue( |
|
aazzam
2017/01/19 23:06:56
is the logic here now duplicated from consumePathO
Eric Willigers
2017/01/19 23:24:46
Temporarily.
I intent to rename consumePathOrNone
|
| + CSSParserTokenRange& range, |
| + const CSSParserContext* context) { |
| + CSSValueID id = range.peek().id(); |
| + if (id == CSSValueNone) |
| + return CSSPropertyParserHelpers::consumeIdent(range); |
| + |
| + return CSSPropertyParserHelpers::consumePath(range); |
| +} |
| + |
| +} // namespace blink |