#ifndef RenderProgress_h
#define RenderProgress_h
#include "RenderBlockFlow.h"
namespace WebCore {
class HTMLProgressElement;
class RenderProgress final : public RenderBlockFlow {
public:
RenderProgress(HTMLElement&, PassRef<RenderStyle>);
virtual ~RenderProgress();
double position() const { return m_position; }
double animationProgress() const;
double animationStartTime() const { return m_animationStartTime; }
bool isDeterminate() const;
virtual void updateFromElement() override;
HTMLProgressElement* progressElement() const;
private:
virtual const char* renderName() const override { return "RenderProgress"; }
virtual bool isProgress() const override { return true; }
virtual bool requiresForcedStyleRecalcPropagation() const override { return true; }
virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;
void animationTimerFired(Timer&);
void updateAnimationState();
double m_position;
double m_animationStartTime;
double m_animationRepeatInterval;
double m_animationDuration;
bool m_animating;
Timer m_animationTimer;
};
RENDER_OBJECT_TYPE_CASTS(RenderProgress, isProgress())
}
#endif // RenderProgress_h