OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/parser/CSSPropertyParser.h" | 5 #include "core/css/parser/CSSPropertyParser.h" |
6 | 6 |
7 #include "core/StylePropertyShorthand.h" | 7 #include "core/StylePropertyShorthand.h" |
8 #include "core/css/CSSBasicShapeValues.h" | 8 #include "core/css/CSSBasicShapeValues.h" |
9 #include "core/css/CSSBorderImage.h" | 9 #include "core/css/CSSBorderImage.h" |
10 #include "core/css/CSSContentDistributionValue.h" | 10 #include "core/css/CSSContentDistributionValue.h" |
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 } | 1902 } |
1903 | 1903 |
1904 static CSSValue* consumeStrokeDasharray(CSSParserTokenRange& range) | 1904 static CSSValue* consumeStrokeDasharray(CSSParserTokenRange& range) |
1905 { | 1905 { |
1906 CSSValueID id = range.peek().id(); | 1906 CSSValueID id = range.peek().id(); |
1907 if (id == CSSValueNone) | 1907 if (id == CSSValueNone) |
1908 return consumeIdent(range); | 1908 return consumeIdent(range); |
1909 | 1909 |
1910 CSSValueList* dashes = CSSValueList::createCommaSeparated(); | 1910 CSSValueList* dashes = CSSValueList::createCommaSeparated(); |
1911 do { | 1911 do { |
1912 CSSPrimitiveValue* dash = consumeLengthOrPercent(range, SVGAttributeMode
, ValueRangeNonNegative, UnitlessQuirk::Allow); | 1912 CSSPrimitiveValue* dash = consumeLengthOrPercent(range, SVGAttributeMode
, ValueRangeNonNegative); |
1913 if (!dash || (consumeCommaIncludingWhitespace(range) && range.atEnd())) | 1913 if (!dash || (consumeCommaIncludingWhitespace(range) && range.atEnd())) |
1914 return nullptr; | 1914 return nullptr; |
1915 dashes->append(*dash); | 1915 dashes->append(*dash); |
1916 } while (!range.atEnd()); | 1916 } while (!range.atEnd()); |
1917 return dashes; | 1917 return dashes; |
1918 } | 1918 } |
1919 | 1919 |
1920 static CSSPrimitiveValue* consumeBaselineShift(CSSParserTokenRange& range) | 1920 static CSSPrimitiveValue* consumeBaselineShift(CSSParserTokenRange& range) |
1921 { | 1921 { |
1922 CSSValueID id = range.peek().id(); | 1922 CSSValueID id = range.peek().id(); |
(...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5181 case CSSPropertyGridTemplate: | 5181 case CSSPropertyGridTemplate: |
5182 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 5182 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
5183 case CSSPropertyGrid: | 5183 case CSSPropertyGrid: |
5184 return consumeGridShorthand(important); | 5184 return consumeGridShorthand(important); |
5185 default: | 5185 default: |
5186 return false; | 5186 return false; |
5187 } | 5187 } |
5188 } | 5188 } |
5189 | 5189 |
5190 } // namespace blink | 5190 } // namespace blink |
OLD | NEW |