There was a hang being caused because the bound checking was just "<0" and not "<=0". As per the spec, a repeatDur of 0 should have no effect:
repeatDur = "<clock-value>"
This causes the element to play repeatedly (loop) for the specified duration. Each repeat iteration lasts for the simple duration. This attribute has no affect if the duration is 0. A repeat duration less than the simple duration specified in dur will cut short the duration. A repeat duration equal to the simple duration is a no-op. Legal values are clock values greater than 0. In addition, "indefinite" may be specified to indicate that the element should repeat indefinitely (subject to the time container semantics). At most one of repeat or repeatDur should be specified (if both are specified, the repeat duration is defined as the minimum of the specified repeatDur, and the simple duration multiplied by the repeat (count).
Created attachment 72563 [details]
Comment on attachment 72563 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=72563&action=review
> - return m_cachedRepeatDur = clockValue < 0 ? SMILTime::unresolved() : clockValue;
> + return m_cachedRepeatDur = clockValue <= 0 ? SMILTime::unresolved() : clockValue;
The assignment in the return statement is pretty grody here. Please change to:
m_cachedRepeatDur = clockValue <= 0 ? SMILTime::unresolved() : clockValue;
> \ No newline at end of file
Please add the newline.
Created attachment 72570 [details]
Committed r71066: <http://trac.webkit.org/changeset/71066>
http://trac.webkit.org/changeset/71066 might have broken GTK Linux 64-bit Debug
The following tests are not passing:
Matthew, can you change the testcase to include
there's no need to dump render tree information there.
At the moment the expected.png/checksum files are missing, but it's useless to add them anyway.
When doing that, you might also want to remove the existing expected.txt files from platform/mac/svg/animations, and from the gtk/qt/win/chromium* platform directories (in case they have already landed their own results), and move the expected.txt file right into svg/animations/
Thanks in advance!