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