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

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

Issue 1481683002: CSS: Retire runtime flag CSSMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 "config.h" 5 #include "config.h"
6 #include "core/css/parser/CSSPropertyParser.h" 6 #include "core/css/parser/CSSPropertyParser.h"
7 7
8 #include "core/StylePropertyShorthand.h" 8 #include "core/StylePropertyShorthand.h"
9 #include "core/css/CSSCalculationValue.h" 9 #include "core/css/CSSCalculationValue.h"
10 #include "core/css/CSSCustomIdentValue.h" 10 #include "core/css/CSSCustomIdentValue.h"
(...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS 3, so treat as CSS3 1986 case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS 3, so treat as CSS3
1987 case CSSPropertyBoxShadow: 1987 case CSSPropertyBoxShadow:
1988 return consumeShadow(m_range, m_context, property == CSSPropertyBoxShado w); 1988 return consumeShadow(m_range, m_context, property == CSSPropertyBoxShado w);
1989 case CSSPropertyWebkitFilter: 1989 case CSSPropertyWebkitFilter:
1990 case CSSPropertyBackdropFilter: 1990 case CSSPropertyBackdropFilter:
1991 return consumeFilter(m_range, m_context); 1991 return consumeFilter(m_range, m_context);
1992 case CSSPropertyWebkitTextDecorationsInEffect: 1992 case CSSPropertyWebkitTextDecorationsInEffect:
1993 case CSSPropertyTextDecorationLine: 1993 case CSSPropertyTextDecorationLine:
1994 return consumeTextDecorationLine(m_range); 1994 return consumeTextDecorationLine(m_range);
1995 case CSSPropertyMotionPath: 1995 case CSSPropertyMotionPath:
1996 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
1997 return consumeMotionPath(m_range); 1996 return consumeMotionPath(m_range);
1998 case CSSPropertyMotionOffset: 1997 case CSSPropertyMotionOffset:
1999 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2000 return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeAll); 1998 return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeAll);
2001 case CSSPropertyMotionRotation: 1999 case CSSPropertyMotionRotation:
2002 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2003 return consumeMotionRotation(m_range, m_context.mode()); 2000 return consumeMotionRotation(m_range, m_context.mode());
2004 case CSSPropertyWebkitTextEmphasisStyle: 2001 case CSSPropertyWebkitTextEmphasisStyle:
2005 return consumeTextEmphasisStyle(m_range); 2002 return consumeTextEmphasisStyle(m_range);
2006 case CSSPropertyOutlineColor: 2003 case CSSPropertyOutlineColor:
2007 return consumeOutlineColor(m_range, m_context); 2004 return consumeOutlineColor(m_range, m_context);
2008 case CSSPropertyOutlineOffset: 2005 case CSSPropertyOutlineOffset:
2009 return consumeLength(m_range, m_context.mode(), ValueRangeAll); 2006 return consumeLength(m_range, m_context.mode(), ValueRangeAll);
2010 case CSSPropertyOutlineWidth: 2007 case CSSPropertyOutlineWidth:
2011 return consumeLineWidth(m_range, m_context.mode()); 2008 return consumeLineWidth(m_range, m_context.mode());
2012 case CSSPropertyTransform: 2009 case CSSPropertyTransform:
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 if (!textDecoration || !m_range.atEnd()) 2578 if (!textDecoration || !m_range.atEnd())
2582 return false; 2579 return false;
2583 addProperty(CSSPropertyTextDecoration, textDecoration.release(), importa nt); 2580 addProperty(CSSPropertyTextDecoration, textDecoration.release(), importa nt);
2584 return true; 2581 return true;
2585 } 2582 }
2586 case CSSPropertyMargin: 2583 case CSSPropertyMargin:
2587 return consume4Values(marginShorthand(), important); 2584 return consume4Values(marginShorthand(), important);
2588 case CSSPropertyPadding: 2585 case CSSPropertyPadding:
2589 return consume4Values(paddingShorthand(), important); 2586 return consume4Values(paddingShorthand(), important);
2590 case CSSPropertyMotion: 2587 case CSSPropertyMotion:
2591 ASSERT(RuntimeEnabledFeatures::cssMotionPathEnabled());
2592 return consumeShorthandGreedily(motionShorthand(), important); 2588 return consumeShorthandGreedily(motionShorthand(), important);
2593 case CSSPropertyWebkitTextEmphasis: 2589 case CSSPropertyWebkitTextEmphasis:
2594 return consumeShorthandGreedily(webkitTextEmphasisShorthand(), important ); 2590 return consumeShorthandGreedily(webkitTextEmphasisShorthand(), important );
2595 case CSSPropertyOutline: 2591 case CSSPropertyOutline:
2596 return consumeShorthandGreedily(outlineShorthand(), important); 2592 return consumeShorthandGreedily(outlineShorthand(), important);
2597 case CSSPropertyWebkitBorderStart: 2593 case CSSPropertyWebkitBorderStart:
2598 return consumeShorthandGreedily(webkitBorderStartShorthand(), important) ; 2594 return consumeShorthandGreedily(webkitBorderStartShorthand(), important) ;
2599 case CSSPropertyWebkitBorderEnd: 2595 case CSSPropertyWebkitBorderEnd:
2600 return consumeShorthandGreedily(webkitBorderEndShorthand(), important); 2596 return consumeShorthandGreedily(webkitBorderEndShorthand(), important);
2601 case CSSPropertyWebkitBorderBefore: 2597 case CSSPropertyWebkitBorderBefore:
(...skipping 16 matching lines...) Expand all
2618 return consumeFlex(important); 2614 return consumeFlex(important);
2619 case CSSPropertyFlexFlow: 2615 case CSSPropertyFlexFlow:
2620 return consumeShorthandGreedily(flexFlowShorthand(), important); 2616 return consumeShorthandGreedily(flexFlowShorthand(), important);
2621 default: 2617 default:
2622 m_currentShorthand = oldShorthand; 2618 m_currentShorthand = oldShorthand;
2623 return false; 2619 return false;
2624 } 2620 }
2625 } 2621 }
2626 2622
2627 } // namespace blink 2623 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698