OLD | NEW |
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 3153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3164 return false; | 3164 return false; |
3165 args->next(); | 3165 args->next(); |
3166 return true; | 3166 return true; |
3167 } | 3167 } |
3168 | 3168 |
3169 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAnimationTimingFunction
() | 3169 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAnimationTimingFunction
() |
3170 { | 3170 { |
3171 CSSParserValue* value = m_valueList->current(); | 3171 CSSParserValue* value = m_valueList->current(); |
3172 if (value->id == CSSValueEase || value->id == CSSValueLinear || value->id ==
CSSValueEaseIn || value->id == CSSValueEaseOut | 3172 if (value->id == CSSValueEase || value->id == CSSValueLinear || value->id ==
CSSValueEaseIn || value->id == CSSValueEaseOut |
3173 || value->id == CSSValueEaseInOut || value->id == CSSValueStepStart || v
alue->id == CSSValueStepEnd | 3173 || value->id == CSSValueEaseInOut || value->id == CSSValueStepStart || v
alue->id == CSSValueStepEnd |
3174 || (value->id == CSSValueStepMiddle && RuntimeEnabledFeatures::webAnimat
ionsElementAnimateEnabled())) | 3174 || value->id == CSSValueStepMiddle) |
3175 return cssValuePool().createIdentifierValue(value->id); | 3175 return cssValuePool().createIdentifierValue(value->id); |
3176 | 3176 |
3177 // We must be a function. | 3177 // We must be a function. |
3178 if (value->unit != CSSParserValue::Function) | 3178 if (value->unit != CSSParserValue::Function) |
3179 return nullptr; | 3179 return nullptr; |
3180 | 3180 |
3181 CSSParserValueList* args = value->function->args.get(); | 3181 CSSParserValueList* args = value->function->args.get(); |
3182 | 3182 |
3183 if (equalIgnoringCase(value->function->name, "steps(")) { | 3183 if (equalIgnoringCase(value->function->name, "steps(")) { |
3184 // For steps, 1 or 2 params must be specified (comma-separated) | 3184 // For steps, 1 or 2 params must be specified (comma-separated) |
(...skipping 5243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8428 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); | 8428 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); |
8429 if (!seenStroke) | 8429 if (!seenStroke) |
8430 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke)
); | 8430 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke)
); |
8431 if (!seenMarkers) | 8431 if (!seenMarkers) |
8432 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers
)); | 8432 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers
)); |
8433 | 8433 |
8434 return parsedValues.release(); | 8434 return parsedValues.release(); |
8435 } | 8435 } |
8436 | 8436 |
8437 } // namespace blink | 8437 } // namespace blink |
OLD | NEW |