Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e2e88d4da878d3391ee224aaaf79974910030dbc |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 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/CSSPropertyAPITextUnderlinePosition.h" |
| + |
| +#include "core/css/CSSValueList.h" |
| +#include "core/css/parser/CSSParserTokenRange.h" |
| +#include "core/css/parser/CSSPropertyParser.h" |
| +#include "core/css/parser/CSSPropertyParserHelpers.h" |
| + |
| +namespace blink { |
| + |
| +const CSSValue* CSSPropertyAPITextUnderlinePosition::parseSingleValue( |
| + CSSParserTokenRange& range, |
| + const CSSParserContext& context) { |
| + // auto | [ under || [ left | right ] ], but we only support auto | under |
| + // for now |
| + DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
| + // auto | [ under || [ left | right ] ], but we only support auto | under |
| + // for now |
| + DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
|
sashab
2017/01/05 04:13:22
These lines are duplicated :)
|
| + return CSSPropertyParserHelpers::consumeIdent<CSSValueAuto, CSSValueUnder>( |
| + range); |
| +} |
| + |
| +} // namespace blink |