Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "core/css/properties/CSSPropertyAPITextUnderlinePosition.h" | |
| 6 | |
| 7 #include "core/css/CSSValueList.h" | |
| 8 #include "core/css/parser/CSSParserTokenRange.h" | |
| 9 #include "core/css/parser/CSSPropertyParser.h" | |
| 10 #include "core/css/parser/CSSPropertyParserHelpers.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 const CSSValue* CSSPropertyAPITextUnderlinePosition::parseSingleValue( | |
| 15 CSSParserTokenRange& range, | |
| 16 const CSSParserContext& context) { | |
| 17 // auto | [ under || [ left | right ] ], but we only support auto | under | |
| 18 // for now | |
| 19 DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | |
| 20 // auto | [ under || [ left | right ] ], but we only support auto | under | |
| 21 // for now | |
| 22 DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | |
|
sashab
2017/01/05 04:13:22
These lines are duplicated :)
| |
| 23 return CSSPropertyParserHelpers::consumeIdent<CSSValueAuto, CSSValueUnder>( | |
| 24 range); | |
| 25 } | |
| 26 | |
| 27 } // namespace blink | |
| OLD | NEW |