Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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/CSSPropertyAPIClipPath.h" | |
| 6 | |
| 7 #include "core/css/CSSURIValue.h" | |
| 8 #include "core/css/parser/CSSPropertyParserHelpers.h" | |
| 9 #include "core/css/properties/CSSPropertyShapeUtils.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 using namespace CSSPropertyParserHelpers; | |
|
aazzam
2017/01/20 03:15:56
I'm not sure if our style conventions prefer using
ktyliu
2017/01/20 03:18:41
I am happy either way.
Fwiw, I originally didn't h
sashab
2017/01/20 03:46:48
Huh, I totally forgot about 'using namespace'... U
ktyliu
2017/01/20 03:53:59
Done.
Sounds good to be consistent :)
| |
| 14 | |
| 15 const CSSValue* CSSPropertyAPIClipPath::parseSingleValue( | |
| 16 CSSParserTokenRange& range, | |
| 17 const CSSParserContext* context) { | |
| 18 if (range.peek().id() == CSSValueNone) | |
| 19 return consumeIdent(range); | |
| 20 if (CSSURIValue* url = consumeUrl(range, context)) | |
| 21 return url; | |
| 22 return CSSPropertyShapeUtils::consumeBasicShape(range, context); | |
| 23 } | |
| 24 | |
| 25 } // namespace blink | |
| OLD | NEW |