Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 1987943002: [wip] unprefix filter Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix animation blur filter test, move it into LayoutTests/animations. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after
3774 bool allowQuirkyLengths = inQuirksMode() 3774 bool allowQuirkyLengths = inQuirksMode()
3775 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS SPropertyBorderWidth); 3775 && (currentShorthand == CSSPropertyInvalid || currentShorthand == CS SPropertyBorderWidth);
3776 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni tlessQuirk::Forbid; 3776 UnitlessQuirk unitless = allowQuirkyLengths ? UnitlessQuirk::Allow : Uni tlessQuirk::Forbid;
3777 return consumeBorderWidth(m_range, m_context.mode(), unitless); 3777 return consumeBorderWidth(m_range, m_context.mode(), unitless);
3778 } 3778 }
3779 case CSSPropertyZIndex: 3779 case CSSPropertyZIndex:
3780 return consumeZIndex(m_range); 3780 return consumeZIndex(m_range);
3781 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS 3, so treat as CSS3 3781 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS 3, so treat as CSS3
3782 case CSSPropertyBoxShadow: 3782 case CSSPropertyBoxShadow:
3783 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB oxShadow); 3783 return consumeShadow(m_range, m_context.mode(), property == CSSPropertyB oxShadow);
3784 case CSSPropertyWebkitFilter: 3784 case CSSPropertyFilter:
3785 case CSSPropertyBackdropFilter: 3785 case CSSPropertyBackdropFilter:
3786 return consumeFilter(m_range, m_context.mode()); 3786 return consumeFilter(m_range, m_context.mode());
3787 case CSSPropertyTextDecoration: 3787 case CSSPropertyTextDecoration:
3788 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled()); 3788 ASSERT(!RuntimeEnabledFeatures::css3TextDecorationsEnabled());
3789 // fallthrough 3789 // fallthrough
3790 case CSSPropertyWebkitTextDecorationsInEffect: 3790 case CSSPropertyWebkitTextDecorationsInEffect:
3791 case CSSPropertyTextDecorationLine: 3791 case CSSPropertyTextDecorationLine:
3792 return consumeTextDecorationLine(m_range); 3792 return consumeTextDecorationLine(m_range);
3793 case CSSPropertyD: 3793 case CSSPropertyD:
3794 case CSSPropertyMotionPath: 3794 case CSSPropertyMotionPath:
(...skipping 22 matching lines...) Expand all
3817 return consumeLength(m_range, m_context.mode(), ValueRangeAll); 3817 return consumeLength(m_range, m_context.mode(), ValueRangeAll);
3818 case CSSPropertyFill: 3818 case CSSPropertyFill:
3819 case CSSPropertyStroke: 3819 case CSSPropertyStroke:
3820 return consumePaintStroke(m_range, m_context.mode()); 3820 return consumePaintStroke(m_range, m_context.mode());
3821 case CSSPropertyPaintOrder: 3821 case CSSPropertyPaintOrder:
3822 return consumePaintOrder(m_range); 3822 return consumePaintOrder(m_range);
3823 case CSSPropertyMarkerStart: 3823 case CSSPropertyMarkerStart:
3824 case CSSPropertyMarkerMid: 3824 case CSSPropertyMarkerMid:
3825 case CSSPropertyMarkerEnd: 3825 case CSSPropertyMarkerEnd:
3826 case CSSPropertyClipPath: 3826 case CSSPropertyClipPath:
3827 case CSSPropertyFilter:
3828 case CSSPropertyMask: 3827 case CSSPropertyMask:
3829 return consumeNoneOrURI(m_range); 3828 return consumeNoneOrURI(m_range);
3830 case CSSPropertyFlexBasis: 3829 case CSSPropertyFlexBasis:
3831 return consumeFlexBasis(m_range, m_context.mode()); 3830 return consumeFlexBasis(m_range, m_context.mode());
3832 case CSSPropertyFlexGrow: 3831 case CSSPropertyFlexGrow:
3833 case CSSPropertyFlexShrink: 3832 case CSSPropertyFlexShrink:
3834 return consumeNumber(m_range, ValueRangeNonNegative); 3833 return consumeNumber(m_range, ValueRangeNonNegative);
3835 case CSSPropertyStrokeDasharray: 3834 case CSSPropertyStrokeDasharray:
3836 return consumeStrokeDasharray(m_range); 3835 return consumeStrokeDasharray(m_range);
3837 case CSSPropertyColumnRuleWidth: 3836 case CSSPropertyColumnRuleWidth:
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
5174 case CSSPropertyGridTemplate: 5173 case CSSPropertyGridTemplate:
5175 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); 5174 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important);
5176 case CSSPropertyGrid: 5175 case CSSPropertyGrid:
5177 return consumeGridShorthand(important); 5176 return consumeGridShorthand(important);
5178 default: 5177 default:
5179 return false; 5178 return false;
5180 } 5179 }
5181 } 5180 }
5182 5181
5183 } // namespace blink 5182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698