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 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3749 bool allowQuirkyLengths = inQuirksMode() | 3749 bool allowQuirkyLengths = inQuirksMode() |
3750 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS
SPropertyBorderWidth); | 3750 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS
SPropertyBorderWidth); |
3751 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni
tlessQuirk::Forbid; | 3751 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni
tlessQuirk::Forbid; |
3752 return consumeBorderWidth(m_range, m_context.mode(), unitless); | 3752 return consumeBorderWidth(m_range, m_context.mode(), unitless); |
3753 } | 3753 } |
3754 case CSSPropertyZIndex: | 3754 case CSSPropertyZIndex: |
3755 return consumeZIndex(m_range); | 3755 return consumeZIndex(m_range); |
3756 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS
3, so treat as CSS3 | 3756 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS
3, so treat as CSS3 |
3757 case CSSPropertyBoxShadow: | 3757 case CSSPropertyBoxShadow: |
3758 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB
oxShadow); | 3758 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB
oxShadow); |
3759 case CSSPropertyWebkitFilter: | 3759 case CSSPropertyFilter: |
3760 case CSSPropertyBackdropFilter: | 3760 case CSSPropertyBackdropFilter: |
3761 return consumeFilter(m_range, m_context); | 3761 return consumeFilter(m_range, m_context); |
3762 case CSSPropertyTextDecoration: | 3762 case CSSPropertyTextDecoration: |
3763 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | 3763 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
3764 // fallthrough | 3764 // fallthrough |
3765 case CSSPropertyWebkitTextDecorationsInEffect: | 3765 case CSSPropertyWebkitTextDecorationsInEffect: |
3766 case CSSPropertyTextDecorationLine: | 3766 case CSSPropertyTextDecorationLine: |
3767 return consumeTextDecorationLine(m_range); | 3767 return consumeTextDecorationLine(m_range); |
3768 case CSSPropertyD: | 3768 case CSSPropertyD: |
3769 case CSSPropertyMotionPath: | 3769 case CSSPropertyMotionPath: |
(...skipping 22 matching lines...) Expand all Loading... |
3792 return consumeLength(m_range, m_context.mode(), ValueRangeAll); | 3792 return consumeLength(m_range, m_context.mode(), ValueRangeAll); |
3793 case CSSPropertyFill: | 3793 case CSSPropertyFill: |
3794 case CSSPropertyStroke: | 3794 case CSSPropertyStroke: |
3795 return consumePaintStroke(m_range, m_context.mode()); | 3795 return consumePaintStroke(m_range, m_context.mode()); |
3796 case CSSPropertyPaintOrder: | 3796 case CSSPropertyPaintOrder: |
3797 return consumePaintOrder(m_range); | 3797 return consumePaintOrder(m_range); |
3798 case CSSPropertyMarkerStart: | 3798 case CSSPropertyMarkerStart: |
3799 case CSSPropertyMarkerMid: | 3799 case CSSPropertyMarkerMid: |
3800 case CSSPropertyMarkerEnd: | 3800 case CSSPropertyMarkerEnd: |
3801 case CSSPropertyClipPath: | 3801 case CSSPropertyClipPath: |
3802 case CSSPropertyFilter: | |
3803 case CSSPropertyMask: | 3802 case CSSPropertyMask: |
3804 return consumeNoneOrURI(m_range); | 3803 return consumeNoneOrURI(m_range); |
3805 case CSSPropertyFlexBasis: | 3804 case CSSPropertyFlexBasis: |
3806 return consumeFlexBasis(m_range, m_context.mode()); | 3805 return consumeFlexBasis(m_range, m_context.mode()); |
3807 case CSSPropertyFlexGrow: | 3806 case CSSPropertyFlexGrow: |
3808 case CSSPropertyFlexShrink: | 3807 case CSSPropertyFlexShrink: |
3809 return consumeNumber(m_range, ValueRangeNonNegative); | 3808 return consumeNumber(m_range, ValueRangeNonNegative); |
3810 case CSSPropertyStrokeDasharray: | 3809 case CSSPropertyStrokeDasharray: |
3811 return consumeStrokeDasharray(m_range); | 3810 return consumeStrokeDasharray(m_range); |
3812 case CSSPropertyColumnRuleWidth: | 3811 case CSSPropertyColumnRuleWidth: |
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5157 case CSSPropertyGridTemplate: | 5156 case CSSPropertyGridTemplate: |
5158 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 5157 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
5159 case CSSPropertyGrid: | 5158 case CSSPropertyGrid: |
5160 return consumeGridShorthand(important); | 5159 return consumeGridShorthand(important); |
5161 default: | 5160 default: |
5162 return false; | 5161 return false; |
5163 } | 5162 } |
5164 } | 5163 } |
5165 | 5164 |
5166 } // namespace blink | 5165 } // namespace blink |
OLD | NEW |