#ifndef RenderSlider_h
#define RenderSlider_h
#include "RenderFlexibleBox.h"
namespace WebCore {
class HTMLInputElement;
class MouseEvent;
class SliderThumbElement;
class RenderSlider final : public RenderFlexibleBox {
public:
static const int defaultTrackLength;
RenderSlider(HTMLInputElement&, PassRef<RenderStyle>);
virtual ~RenderSlider();
HTMLInputElement& element() const;
bool inDragMode() const;
private:
virtual const char* renderName() const override { return "RenderSlider"; }
virtual bool isSlider() const override { return true; }
virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
virtual void computePreferredLogicalWidths() override;
virtual bool requiresForcedStyleRecalcPropagation() const override { return true; }
virtual void layout() override;
};
RENDER_OBJECT_TYPE_CASTS(RenderSlider, isSlider())
}
#endif // RenderSlider_h