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 3303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3314 case CSSPropertyWebkitBorderHorizontalSpacing: | 3314 case CSSPropertyWebkitBorderHorizontalSpacing: |
3315 case CSSPropertyWebkitBorderVerticalSpacing: | 3315 case CSSPropertyWebkitBorderVerticalSpacing: |
3316 return consumeLength(m_range, m_context.mode(), ValueRangeNonNegative); | 3316 return consumeLength(m_range, m_context.mode(), ValueRangeNonNegative); |
3317 case CSSPropertyCounterIncrement: | 3317 case CSSPropertyCounterIncrement: |
3318 case CSSPropertyCounterReset: | 3318 case CSSPropertyCounterReset: |
3319 return consumeCounter(m_range, m_context.mode(), property == CSSProperty
CounterIncrement ? 1 : 0); | 3319 return consumeCounter(m_range, m_context.mode(), property == CSSProperty
CounterIncrement ? 1 : 0); |
3320 case CSSPropertySize: | 3320 case CSSPropertySize: |
3321 return consumeSize(m_range, m_context.mode()); | 3321 return consumeSize(m_range, m_context.mode()); |
3322 case CSSPropertySnapHeight: | 3322 case CSSPropertySnapHeight: |
3323 return consumeSnapHeight(m_range, m_context.mode()); | 3323 return consumeSnapHeight(m_range, m_context.mode()); |
| 3324 case CSSPropertySnapWidth: |
| 3325 return consumeLength(m_range, m_context.mode(), ValueRangeNonNegative); |
3324 case CSSPropertyTextIndent: | 3326 case CSSPropertyTextIndent: |
3325 return consumeTextIndent(m_range, m_context.mode()); | 3327 return consumeTextIndent(m_range, m_context.mode()); |
3326 case CSSPropertyMaxWidth: | 3328 case CSSPropertyMaxWidth: |
3327 case CSSPropertyMaxHeight: | 3329 case CSSPropertyMaxHeight: |
3328 return consumeMaxWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow)
; | 3330 return consumeMaxWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow)
; |
3329 case CSSPropertyWebkitMaxLogicalWidth: | 3331 case CSSPropertyWebkitMaxLogicalWidth: |
3330 case CSSPropertyWebkitMaxLogicalHeight: | 3332 case CSSPropertyWebkitMaxLogicalHeight: |
3331 return consumeMaxWidthOrHeight(m_range, m_context); | 3333 return consumeMaxWidthOrHeight(m_range, m_context); |
3332 case CSSPropertyMinWidth: | 3334 case CSSPropertyMinWidth: |
3333 case CSSPropertyMinHeight: | 3335 case CSSPropertyMinHeight: |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4665 m_currentShorthand = oldShorthand; | 4667 m_currentShorthand = oldShorthand; |
4666 CSSParserValueList valueList(m_range); | 4668 CSSParserValueList valueList(m_range); |
4667 if (!valueList.size()) | 4669 if (!valueList.size()) |
4668 return false; | 4670 return false; |
4669 m_valueList = &valueList; | 4671 m_valueList = &valueList; |
4670 return legacyParseShorthand(unresolvedProperty, important); | 4672 return legacyParseShorthand(unresolvedProperty, important); |
4671 } | 4673 } |
4672 } | 4674 } |
4673 | 4675 |
4674 } // namespace blink | 4676 } // namespace blink |
OLD | NEW |