Changeset 109610 in webkit


Ignore:
Timestamp:
Mar 2, 2012 1:40:54 PM (12 years ago)
Author:
igor.o@sisa.samsung.com
Message:

animation-timing-function falls back to ease when overriding animation-name
https://bugs.webkit.org/show_bug.cgi?id=71623

Source/WebCore:

In this patch the animation name needs to be the first value declared, if
a different value is found, we do not check for the animation name again.

Reviewed by Dean Jackson.

Test: animations/animation-shorthand-overriding.html

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseAnimationShorthand):

LayoutTests:

Add a test to verify if the override the animation-name property works when the parent
animation did not set the animation name.

Reviewed by Dean Jackson.

  • animations/animation-shorthand-overriding-expected.txt: Added.
  • animations/animation-shorthand-overriding.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r109604 r109610  
     12012-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
    1142012-03-02  Mike Reed  <reed@google.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r109609 r109610  
     12012-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
    1162012-03-02  Martin Robinson  <mrobinson@igalia.com>
    217
  • trunk/Source/WebCore/css/CSSParser.cpp

    r109116 r109610  
    25752575
    25762576    int i;
     2577    int initialParsedPropertyIndex = 0;
    25772578    while (m_valueList->current()) {
    25782579        CSSParserValue* val = m_valueList->current();
    25792580        if (val->unit == CSSParserValue::Operator && val->iValue == ',') {
    25802581            // We hit the end.  Fill in all remaining values with the initial value.
     2582            initialParsedPropertyIndex = 0;
    25812583            m_valueList->next();
    25822584            for (i = 0; i < numProperties; ++i) {
     
    25902592
    25912593        bool found = false;
    2592         for (i = 0; !found && i < numProperties; ++i) {
     2594        for (i = initialParsedPropertyIndex; !found && i < numProperties; ++i) {
    25932595            if (!parsedProperty[i]) {
    25942596                RefPtr<CSSValue> val;
    25952597                if (parseAnimationProperty(properties[i], val)) {
    25962598                    parsedProperty[i] = found = true;
     2599                    initialParsedPropertyIndex = 1;
    25972600                    addAnimationValue(values[i], val.release());
    25982601                }
Note: See TracChangeset for help on using the changeset viewer.