| 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/CSSCalculationValue.h" | 8 #include "core/css/CSSCalculationValue.h" |
| 9 #include "core/css/CSSCounterValue.h" | 9 #include "core/css/CSSCounterValue.h" |
| 10 #include "core/css/CSSCrossfadeValue.h" | 10 #include "core/css/CSSCrossfadeValue.h" |
| (...skipping 3197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3208 return consumeLengthOrPercent(m_range, SVGAttributeMode, ValueRangeAll,
UnitlessQuirk::Forbid); | 3208 return consumeLengthOrPercent(m_range, SVGAttributeMode, ValueRangeAll,
UnitlessQuirk::Forbid); |
| 3209 case CSSPropertyCursor: | 3209 case CSSPropertyCursor: |
| 3210 return consumeCursor(m_range, m_context, inQuirksMode()); | 3210 return consumeCursor(m_range, m_context, inQuirksMode()); |
| 3211 case CSSPropertyContain: | 3211 case CSSPropertyContain: |
| 3212 return consumeContain(m_range); | 3212 return consumeContain(m_range); |
| 3213 case CSSPropertyTransformOrigin: | 3213 case CSSPropertyTransformOrigin: |
| 3214 return consumeTransformOrigin(m_range, m_context.mode(), UnitlessQuirk::
Forbid); | 3214 return consumeTransformOrigin(m_range, m_context.mode(), UnitlessQuirk::
Forbid); |
| 3215 case CSSPropertyContent: | 3215 case CSSPropertyContent: |
| 3216 return consumeContent(m_range, m_context); | 3216 return consumeContent(m_range, m_context); |
| 3217 case CSSPropertyListStyleImage: | 3217 case CSSPropertyListStyleImage: |
| 3218 case CSSPropertyBorderImageSource: |
| 3219 case CSSPropertyWebkitMaskBoxImageSource: |
| 3218 return consumeImage(m_range, m_context); | 3220 return consumeImage(m_range, m_context); |
| 3219 case CSSPropertyPerspective: | 3221 case CSSPropertyPerspective: |
| 3220 return consumePerspective(m_range, m_context.mode(), unresolvedProperty)
; | 3222 return consumePerspective(m_range, m_context.mode(), unresolvedProperty)
; |
| 3221 case CSSPropertyScrollSnapCoordinate: | 3223 case CSSPropertyScrollSnapCoordinate: |
| 3222 return consumeScrollSnapCoordinate(m_range, m_context.mode()); | 3224 return consumeScrollSnapCoordinate(m_range, m_context.mode()); |
| 3223 case CSSPropertyScrollSnapPointsX: | 3225 case CSSPropertyScrollSnapPointsX: |
| 3224 case CSSPropertyScrollSnapPointsY: | 3226 case CSSPropertyScrollSnapPointsY: |
| 3225 return consumeScrollSnapPoints(m_range, m_context.mode()); | 3227 return consumeScrollSnapPoints(m_range, m_context.mode()); |
| 3226 case CSSPropertyBorderTopRightRadius: | 3228 case CSSPropertyBorderTopRightRadius: |
| 3227 case CSSPropertyBorderTopLeftRadius: | 3229 case CSSPropertyBorderTopLeftRadius: |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3934 m_currentShorthand = oldShorthand; | 3936 m_currentShorthand = oldShorthand; |
| 3935 CSSParserValueList valueList(m_range); | 3937 CSSParserValueList valueList(m_range); |
| 3936 if (!valueList.size()) | 3938 if (!valueList.size()) |
| 3937 return false; | 3939 return false; |
| 3938 m_valueList = &valueList; | 3940 m_valueList = &valueList; |
| 3939 return legacyParseShorthand(unresolvedProperty, important); | 3941 return legacyParseShorthand(unresolvedProperty, important); |
| 3940 } | 3942 } |
| 3941 } | 3943 } |
| 3942 | 3944 |
| 3943 } // namespace blink | 3945 } // namespace blink |
| OLD | NEW |