| 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 } | 599 } |
| 600 } | 600 } |
| 601 } while (consumeCommaIncludingWhitespace(range)); | 601 } while (consumeCommaIncludingWhitespace(range)); |
| 602 return list; | 602 return list; |
| 603 } | 603 } |
| 604 | 604 |
| 605 static CSSValue* consumeSpacing(CSSParserTokenRange& range, CSSParserMode cssPar
serMode) | 605 static CSSValue* consumeSpacing(CSSParserTokenRange& range, CSSParserMode cssPar
serMode) |
| 606 { | 606 { |
| 607 if (range.peek().id() == CSSValueNormal) | 607 if (range.peek().id() == CSSValueNormal) |
| 608 return consumeIdent(range); | 608 return consumeIdent(range); |
| 609 // TODO(timloh): Don't allow unitless values, and allow <percentage>s in wor
d-spacing. | 609 // TODO(timloh): allow <percentage>s in word-spacing. |
| 610 return consumeLength(range, cssParserMode, ValueRangeAll, UnitlessQuirk::All
ow); | 610 return consumeLength(range, cssParserMode, ValueRangeAll, UnitlessQuirk::All
ow); |
| 611 } | 611 } |
| 612 | 612 |
| 613 static CSSValue* consumeTabSize(CSSParserTokenRange& range, CSSParserMode cssPar
serMode) | 613 static CSSValue* consumeTabSize(CSSParserTokenRange& range, CSSParserMode cssPar
serMode) |
| 614 { | 614 { |
| 615 CSSPrimitiveValue* parsedValue = consumeInteger(range, 0); | 615 CSSPrimitiveValue* parsedValue = consumeInteger(range, 0); |
| 616 if (parsedValue) | 616 if (parsedValue) |
| 617 return parsedValue; | 617 return parsedValue; |
| 618 return consumeLength(range, cssParserMode, ValueRangeNonNegative); | 618 return consumeLength(range, cssParserMode, ValueRangeNonNegative); |
| 619 } | 619 } |
| (...skipping 4337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4957 case CSSPropertyGridTemplate: | 4957 case CSSPropertyGridTemplate: |
| 4958 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 4958 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
| 4959 case CSSPropertyGrid: | 4959 case CSSPropertyGrid: |
| 4960 return consumeGridShorthand(important); | 4960 return consumeGridShorthand(important); |
| 4961 default: | 4961 default: |
| 4962 return false; | 4962 return false; |
| 4963 } | 4963 } |
| 4964 } | 4964 } |
| 4965 | 4965 |
| 4966 } // namespace blink | 4966 } // namespace blink |
| OLD | NEW |