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

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

Issue 238633002: Web Animations API: Add runtime flag for minimal element.animate feature (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectations. Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3163 return false; 3163 return false;
3164 args->next(); 3164 args->next();
3165 return true; 3165 return true;
3166 } 3166 }
3167 3167
3168 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAnimationTimingFunction () 3168 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAnimationTimingFunction ()
3169 { 3169 {
3170 CSSParserValue* value = m_valueList->current(); 3170 CSSParserValue* value = m_valueList->current();
3171 if (value->id == CSSValueEase || value->id == CSSValueLinear || value->id == CSSValueEaseIn || value->id == CSSValueEaseOut 3171 if (value->id == CSSValueEase || value->id == CSSValueLinear || value->id == CSSValueEaseIn || value->id == CSSValueEaseOut
3172 || value->id == CSSValueEaseInOut || value->id == CSSValueStepStart || v alue->id == CSSValueStepEnd 3172 || value->id == CSSValueEaseInOut || value->id == CSSValueStepStart || v alue->id == CSSValueStepEnd
3173 || (value->id == CSSValueStepMiddle && RuntimeEnabledFeatures::webAnimat ionsAPIEnabled())) 3173 || (value->id == CSSValueStepMiddle && RuntimeEnabledFeatures::webAnimat ionsElementAnimateEnabled()))
3174 return cssValuePool().createIdentifierValue(value->id); 3174 return cssValuePool().createIdentifierValue(value->id);
3175 3175
3176 // We must be a function. 3176 // We must be a function.
3177 if (value->unit != CSSParserValue::Function) 3177 if (value->unit != CSSParserValue::Function)
3178 return nullptr; 3178 return nullptr;
3179 3179
3180 CSSParserValueList* args = value->function->args.get(); 3180 CSSParserValueList* args = value->function->args.get();
3181 3181
3182 if (equalIgnoringCase(value->function->name, "steps(")) { 3182 if (equalIgnoringCase(value->function->name, "steps(")) {
3183 // For steps, 1 or 2 params must be specified (comma-separated) 3183 // For steps, 1 or 2 params must be specified (comma-separated)
(...skipping 5332 matching lines...) Expand 10 before | Expand all | Expand 10 after
8516 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8516 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8517 if (!seenStroke) 8517 if (!seenStroke)
8518 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8518 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8519 if (!seenMarkers) 8519 if (!seenMarkers)
8520 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8520 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8521 8521
8522 return parsedValues.release(); 8522 return parsedValues.release();
8523 } 8523 }
8524 8524
8525 } // namespace WebCore 8525 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698