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 3757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3768 bool allowQuirkyLengths = inQuirksMode() | 3768 bool allowQuirkyLengths = inQuirksMode() |
3769 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS
SPropertyBorderWidth); | 3769 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS
SPropertyBorderWidth); |
3770 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni
tlessQuirk::Forbid; | 3770 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni
tlessQuirk::Forbid; |
3771 return consumeBorderWidth(m_range, m_context.mode(), unitless); | 3771 return consumeBorderWidth(m_range, m_context.mode(), unitless); |
3772 } | 3772 } |
3773 case CSSPropertyZIndex: | 3773 case CSSPropertyZIndex: |
3774 return consumeZIndex(m_range); | 3774 return consumeZIndex(m_range); |
3775 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS
3, so treat as CSS3 | 3775 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS
3, so treat as CSS3 |
3776 case CSSPropertyBoxShadow: | 3776 case CSSPropertyBoxShadow: |
3777 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB
oxShadow); | 3777 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB
oxShadow); |
3778 case CSSPropertyWebkitFilter: | 3778 case CSSPropertyFilter: |
3779 case CSSPropertyBackdropFilter: | 3779 case CSSPropertyBackdropFilter: |
3780 return consumeFilter(m_range, m_context.mode()); | 3780 return consumeFilter(m_range, m_context.mode()); |
3781 case CSSPropertyTextDecoration: | 3781 case CSSPropertyTextDecoration: |
3782 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | 3782 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
3783 // fallthrough | 3783 // fallthrough |
3784 case CSSPropertyWebkitTextDecorationsInEffect: | 3784 case CSSPropertyWebkitTextDecorationsInEffect: |
3785 case CSSPropertyTextDecorationLine: | 3785 case CSSPropertyTextDecorationLine: |
3786 return consumeTextDecorationLine(m_range); | 3786 return consumeTextDecorationLine(m_range); |
3787 case CSSPropertyD: | 3787 case CSSPropertyD: |
3788 case CSSPropertyMotionPath: | 3788 case CSSPropertyMotionPath: |
(...skipping 22 matching lines...) Expand all Loading... |
3811 return consumeLength(m_range, m_context.mode(), ValueRangeAll); | 3811 return consumeLength(m_range, m_context.mode(), ValueRangeAll); |
3812 case CSSPropertyFill: | 3812 case CSSPropertyFill: |
3813 case CSSPropertyStroke: | 3813 case CSSPropertyStroke: |
3814 return consumePaintStroke(m_range, m_context.mode()); | 3814 return consumePaintStroke(m_range, m_context.mode()); |
3815 case CSSPropertyPaintOrder: | 3815 case CSSPropertyPaintOrder: |
3816 return consumePaintOrder(m_range); | 3816 return consumePaintOrder(m_range); |
3817 case CSSPropertyMarkerStart: | 3817 case CSSPropertyMarkerStart: |
3818 case CSSPropertyMarkerMid: | 3818 case CSSPropertyMarkerMid: |
3819 case CSSPropertyMarkerEnd: | 3819 case CSSPropertyMarkerEnd: |
3820 case CSSPropertyClipPath: | 3820 case CSSPropertyClipPath: |
3821 case CSSPropertyFilter: | |
3822 case CSSPropertyMask: | 3821 case CSSPropertyMask: |
3823 return consumeNoneOrURI(m_range); | 3822 return consumeNoneOrURI(m_range); |
3824 case CSSPropertyFlexBasis: | 3823 case CSSPropertyFlexBasis: |
3825 return consumeFlexBasis(m_range, m_context.mode()); | 3824 return consumeFlexBasis(m_range, m_context.mode()); |
3826 case CSSPropertyFlexGrow: | 3825 case CSSPropertyFlexGrow: |
3827 case CSSPropertyFlexShrink: | 3826 case CSSPropertyFlexShrink: |
3828 return consumeNumber(m_range, ValueRangeNonNegative); | 3827 return consumeNumber(m_range, ValueRangeNonNegative); |
3829 case CSSPropertyStrokeDasharray: | 3828 case CSSPropertyStrokeDasharray: |
3830 return consumeStrokeDasharray(m_range); | 3829 return consumeStrokeDasharray(m_range); |
3831 case CSSPropertyColumnRuleWidth: | 3830 case CSSPropertyColumnRuleWidth: |
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5168 case CSSPropertyGridTemplate: | 5167 case CSSPropertyGridTemplate: |
5169 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 5168 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
5170 case CSSPropertyGrid: | 5169 case CSSPropertyGrid: |
5171 return consumeGridShorthand(important); | 5170 return consumeGridShorthand(important); |
5172 default: | 5171 default: |
5173 return false; | 5172 return false; |
5174 } | 5173 } |
5175 } | 5174 } |
5176 | 5175 |
5177 } // namespace blink | 5176 } // namespace blink |
OLD | NEW |