Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp

Issue 2614903002: Implements CSSPropertyAPI for the text-underline-position property. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698