Changeset 167761 in webkit


Ignore:
Timestamp:
Apr 24, 2014 9:27:38 AM (10 years ago)
Author:
tgergely.u-szeged@partner.samsung.com
Message:

ASSERTION FAILED: !begin.isIndefinite() in WebCore::SVGSMILElement::resolveFirstInterval.
https://bugs.webkit.org/show_bug.cgi?id=131097

Reviewed by Darin Adler.

Source/WebCore:
According to smil animation reference, max attribute cannot be 0.

Test: svg/animations/smil-animation-max-attribute-zero-crash.svg

  • svg/animation/SVGSMILElement.cpp:

(WebCore::SVGSMILElement::maxValue):

changed (result < 0) to (result <= 0)

LayoutTests:
Test added.

  • svg/animations/smil-animation-max-attribute-zero-crash-expected.txt: Added.
  • svg/animations/smil-animation-max-attribute-zero-crash.svg: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167754 r167761  
     12014-04-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
     2
     3        ASSERTION FAILED: !begin.isIndefinite() in WebCore::SVGSMILElement::resolveFirstInterval.
     4        https://bugs.webkit.org/show_bug.cgi?id=131097
     5
     6        Reviewed by Darin Adler.
     7
     8        Test added.
     9
     10        * svg/animations/smil-animation-max-attribute-zero-crash-expected.txt: Added.
     11        * svg/animations/smil-animation-max-attribute-zero-crash.svg: Added.
     12
    1132014-04-24  Krzysztof Wolanski  <k.wolanski@samsung.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r167760 r167761  
     12014-04-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
     2
     3        ASSERTION FAILED: !begin.isIndefinite() in WebCore::SVGSMILElement::resolveFirstInterval.
     4        https://bugs.webkit.org/show_bug.cgi?id=131097
     5
     6        Reviewed by Darin Adler.
     7
     8        According to smil animation reference, max attribute cannot be 0.
     9
     10        Test: svg/animations/smil-animation-max-attribute-zero-crash.svg
     11
     12        * svg/animation/SVGSMILElement.cpp:
     13        (WebCore::SVGSMILElement::maxValue):
     14          changed (result < 0) to (result <= 0)
     15
    1162014-04-24  Ryuan Choi  <ryuan.choi@samsung.com>
    217
  • trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp

    r165607 r167761  
    681681    const AtomicString& value = fastGetAttribute(SVGNames::maxAttr);
    682682    SMILTime result = parseClockValue(value);
    683     return m_cachedMax = (result.isUnresolved() || result < 0) ? SMILTime::indefinite() : result;
     683    return m_cachedMax = (result.isUnresolved() || result <= 0) ? SMILTime::indefinite() : result;
    684684}
    685685   
Note: See TracChangeset for help on using the changeset viewer.