DeprecatedRenderSelect.h [plain text]
#ifndef DeprecatedRenderSelect_h
#define DeprecatedRenderSelect_h
#include "RenderFormElement.h"
namespace WebCore {
class HTMLSelectElement;
class ListBox;
class DeprecatedRenderSelect : public RenderFormElement {
public:
DeprecatedRenderSelect(HTMLSelectElement*);
virtual const char* renderName() const { return "DeprecatedRenderSelect"; }
short baselinePosition(bool f, bool b) const;
int calcReplacedHeight() const { if (!m_useListBox) return intrinsicHeight(); return RenderFormElement::calcReplacedHeight(); }
virtual bool canHaveIntrinsicMargins() const { return true; }
virtual void calcMinMaxWidth();
virtual void layout();
void setOptionsChanged(bool);
bool selectionChanged() { return m_selectionChanged; }
void setSelectionChanged(bool selectionChanged) { m_selectionChanged = selectionChanged; }
virtual void updateFromElement();
virtual void setStyle(RenderStyle*);
void updateSelection();
private:
virtual void selectionChanged(Widget*);
protected:
ListBox* createListBox();
void setWidgetWritingDirection();
unsigned m_size;
bool m_multiple;
bool m_useListBox;
bool m_selectionChanged;
bool m_ignoreSelectEvents;
bool m_optionsChanged;
};
}
#endif // DeprecatedRenderSelect_h