#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&, RenderStyle&&);
virtual ~RenderSlider();
HTMLInputElement& element() const;
bool inDragMode() const;
private:
const char* renderName() const override { return "RenderSlider"; }
bool isSlider() const override { return true; }
int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
void computePreferredLogicalWidths() override;
bool requiresForcedStyleRecalcPropagation() const override { return true; }
void layout() override;
bool isFlexibleBoxImpl() const override { return true; }
};
}
SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSlider, isSlider())
#endif // RenderSlider_h