Bug 58693 - REGRESSION: <progress> doesn't animate if it doesn't have value
Summary: REGRESSION: <progress> doesn't animate if it doesn't have value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Hajime Morrita
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 14:06 PDT by Hajime Morrita
Modified: 2011-04-18 12:21 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.24 KB, patch)
2011-04-15 15:07 PDT, Hajime Morrita
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Morrita 2011-04-15 14:06:18 PDT
The indefinite progress bar, which is rendered by <progress> element without value property should animate.
Looks introduced http://trac.webkit.org/changeset/83065.
Comment 1 Hajime Morrita 2011-04-15 15:07:16 PDT
Created attachment 89862 [details]
Patch
Comment 2 Yael 2011-04-16 04:31:31 PDT
Thanks for fixing it.
Comment 3 Adam Barth 2011-04-17 09:58:51 PDT
Comment on attachment 89862 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=89862&action=review

Nice patch.  Yay for named constants.

> Source/WebCore/ChangeLog:12
> +        No new tests. Testing animated bar is not possible with DRT.

Frown.  This likely means we will continue to have regressions.
Comment 4 Kent Tamura 2011-04-17 19:09:22 PDT
Comment on attachment 89862 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=89862&action=review

> Source/WebCore/html/HTMLProgressElement.cpp:43
> +const double HTMLProgressElement::IndeterminatePosition = -1;
> +const double HTMLProgressElement::InvalidPosition = -2;

In RenderProgress::isDeterminate(), we should use these named constants, or add a comment that "0 <= " means neither indeterminate nor invalid.
Comment 5 Hajime Morrita 2011-04-18 10:07:43 PDT
Adam, Kent-san, thank you for reviewing!
I'll land this with addressing Kent-san's point.
Comment 6 Hajime Morrita 2011-04-18 10:14:16 PDT
Committed r84156: <http://trac.webkit.org/changeset/84156>
Comment 7 WebKit Review Bot 2011-04-18 12:21:13 PDT
http://trac.webkit.org/changeset/84156 might have broken GTK Linux 32-bit Debug