Changeset 109610 in webkit
- Timestamp:
- Mar 2, 2012 1:40:54 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r109604 r109610 1 2012-03-02 Igor Oliveira <igor.o@sisa.samsung.com> 2 3 animation-timing-function falls back to ease when overriding animation-name 4 https://bugs.webkit.org/show_bug.cgi?id=71623 5 6 Add a test to verify if the override the animation-name property works when the parent 7 animation did not set the animation name. 8 9 Reviewed by Dean Jackson. 10 11 * animations/animation-shorthand-overriding-expected.txt: Added. 12 * animations/animation-shorthand-overriding.html: Added. 13 1 14 2012-03-02 Mike Reed <reed@google.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r109609 r109610 1 2012-03-02 Igor Oliveira <igor.o@sisa.samsung.com> 2 3 animation-timing-function falls back to ease when overriding animation-name 4 https://bugs.webkit.org/show_bug.cgi?id=71623 5 6 In this patch the animation name needs to be the first value declared, if 7 a different value is found, we do not check for the animation name again. 8 9 Reviewed by Dean Jackson. 10 11 Test: animations/animation-shorthand-overriding.html 12 13 * css/CSSParser.cpp: 14 (WebCore::CSSParser::parseAnimationShorthand): 15 1 16 2012-03-02 Martin Robinson <mrobinson@igalia.com> 2 17 -
trunk/Source/WebCore/css/CSSParser.cpp
r109116 r109610 2575 2575 2576 2576 int i; 2577 int initialParsedPropertyIndex = 0; 2577 2578 while (m_valueList->current()) { 2578 2579 CSSParserValue* val = m_valueList->current(); 2579 2580 if (val->unit == CSSParserValue::Operator && val->iValue == ',') { 2580 2581 // We hit the end. Fill in all remaining values with the initial value. 2582 initialParsedPropertyIndex = 0; 2581 2583 m_valueList->next(); 2582 2584 for (i = 0; i < numProperties; ++i) { … … 2590 2592 2591 2593 bool found = false; 2592 for (i = 0; !found && i < numProperties; ++i) {2594 for (i = initialParsedPropertyIndex; !found && i < numProperties; ++i) { 2593 2595 if (!parsedProperty[i]) { 2594 2596 RefPtr<CSSValue> val; 2595 2597 if (parseAnimationProperty(properties[i], val)) { 2596 2598 parsedProperty[i] = found = true; 2599 initialParsedPropertyIndex = 1; 2597 2600 addAnimationValue(values[i], val.release()); 2598 2601 }
Note: See TracChangeset
for help on using the changeset viewer.