| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/css/properties/CSSPropertyAPIContent.h" | 5 #include "core/css/properties/CSSPropertyAPIContent.h" |
| 6 | 6 |
| 7 #include "core/CSSValueKeywords.h" | 7 #include "core/CSSValueKeywords.h" |
| 8 #include "core/css/CSSCounterValue.h" | 8 #include "core/css/CSSCounterValue.h" |
| 9 #include "core/css/CSSFunctionValue.h" | 9 #include "core/css/CSSFunctionValue.h" |
| 10 #include "core/css/CSSStringValue.h" | 10 #include "core/css/CSSStringValue.h" |
| 11 #include "core/css/CSSValueList.h" | 11 #include "core/css/CSSValueList.h" |
| 12 #include "core/css/parser/CSSParserContext.h" | 12 #include "core/css/parser/CSSParserContext.h" |
| 13 #include "core/css/parser/CSSPropertyParserHelpers.h" | 13 #include "core/css/parser/CSSPropertyParserHelpers.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 using CSSCounterValue = cssvalue::CSSCounterValue; |
| 18 |
| 17 namespace { | 19 namespace { |
| 18 | 20 |
| 19 CSSValue* consumeAttr(CSSParserTokenRange args, | 21 CSSValue* consumeAttr(CSSParserTokenRange args, |
| 20 const CSSParserContext* context) { | 22 const CSSParserContext* context) { |
| 21 if (args.peek().type() != IdentToken) | 23 if (args.peek().type() != IdentToken) |
| 22 return nullptr; | 24 return nullptr; |
| 23 | 25 |
| 24 AtomicString attrName = | 26 AtomicString attrName = |
| 25 args.consumeIncludingWhitespace().value().toAtomicString(); | 27 args.consumeIncludingWhitespace().value().toAtomicString(); |
| 26 if (!args.atEnd()) | 28 if (!args.atEnd()) |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 if (!parsedValue) | 105 if (!parsedValue) |
| 104 return nullptr; | 106 return nullptr; |
| 105 } | 107 } |
| 106 values->append(*parsedValue); | 108 values->append(*parsedValue); |
| 107 } while (!range.atEnd()); | 109 } while (!range.atEnd()); |
| 108 | 110 |
| 109 return values; | 111 return values; |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace blink | 114 } // namespace blink |
| OLD | NEW |