RenderProgress does not repaint on value change
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 01:54:13 +0000 (01:54 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 01:54:13 +0000 (01:54 +0000)
commit9f90988f3b9a7ba4eacadf04de229e44ff94a483
tree6812182f41f13d349939d0ada1e7fd27c6414f46
parentf9dcc20a33f64c1c4e50c87cf19fadd9def3a09d
RenderProgress does not repaint on value change
https://bugs.webkit.org/show_bug.cgi?id=106977

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-01-23
Reviewed by Joseph Pecoraro.

No test because the ouput depends on the code of RenderTheme, and
we use the platform theme for testing.

* rendering/RenderProgress.cpp:
(WebCore::RenderProgress::updateFromElement):
(WebCore::RenderProgress::updateAnimationState):
Previously, repaint() was only called on two occasions:
-On animationTimerFired().
-In response to updateFromElement() if and only if the RenderTheme start/stop an
 animation previously stopped/running.

When changing the value of HTMLProgressElement, no repaint was called until
the next timer fired for the animation.
This is a problem if:
-The animation of RenderTheme is slow.
-If there is no animation (the element is never updated in that case).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderProgress.cpp