Changeset 71066 in webkit


Ignore:
Timestamp:
Nov 1, 2010 3:40:25 PM (13 years ago)
Author:
mdelaney@apple.com
Message:

2010-11-01 Matthew Delaney <mdelaney@apple.com>

Reviewed by Simon Fraser.

Setting attr repeatDur=0 on SVG element causes hang
https://bugs.webkit.org/show_bug.cgi?id=48785

Test: svg/animations/repeatDur-zero.xhtml

  • svg/animation/SVGSMILElement.cpp: Fixing bound checking for legal repeatDur values.

2010-11-01 Matthew Delaney <mdelaney@apple.com>

Reviewed by Simon Fraser.

Setting attr repeatDur=0 on SVG element causes hang
https://bugs.webkit.org/show_bug.cgi?id=48785

  • svg/animations/repeatDur-zero.xhtml: Added. Tests if setting attr repeatDur=0 causes a hang or not.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r71063 r71066  
     12010-11-01  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Setting attr repeatDur=0 on SVG element causes hang
     6        https://bugs.webkit.org/show_bug.cgi?id=48785
     7
     8        * svg/animations/repeatDur-zero.xhtml: Added. Tests if setting attr repeatDur=0 causes a hang or not.
     9
    1102010-11-01  Dmitry Titov  <dimich@chromium.org>
    211
  • trunk/WebCore/ChangeLog

    r71065 r71066  
     12010-11-01  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Setting attr repeatDur=0 on SVG element causes hang
     6        https://bugs.webkit.org/show_bug.cgi?id=48785
     7
     8        Test: svg/animations/repeatDur-zero.xhtml
     9
     10        * svg/animation/SVGSMILElement.cpp: Fixing bound checking for legal repeatDur values.
     11
    1122010-10-31  Adam Barth  <abarth@webkit.org>
    213
  • trunk/WebCore/svg/animation/SVGSMILElement.cpp

    r69868 r71066  
    529529    const AtomicString& value = getAttribute(SVGNames::repeatDurAttr);
    530530    SMILTime clockValue = parseClockValue(value);
    531     return m_cachedRepeatDur = clockValue < 0 ? SMILTime::unresolved() : clockValue;
     531    m_cachedRepeatDur = clockValue <= 0 ? SMILTime::unresolved() : clockValue;
     532    return m_cachedRepeatDur;
    532533}
    533534   
Note: See TracChangeset for help on using the changeset viewer.