void HTMLTextFormControlElement::setSelectionEnd(int end) { setSelectionRange(min(end, selectionStart()), end, selectionDirection()); }
void HTMLTextFormControlElement::setSelectionDirection(const String& direction) { setSelectionRange(selectionStart(), selectionEnd(), direction); }
void HTMLTextFormControlElement::setSelectionStart(int start) { setSelectionRange(start, max(start, selectionEnd()), selectionDirection()); }
void HTMLTextFormControlElement::restoreCachedSelection() { setSelectionRange(m_cachedSelectionStart, m_cachedSelectionEnd, m_cachedSelectionDirection, DispatchSelectEvent); }
void HTMLTextFormControlElement::select(NeedToDispatchSelectEvent eventBehaviour) { document().updateLayoutIgnorePendingStylesheets(); setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirection, eventBehaviour, isFocusable() ? ChangeSelectionAndFocus : NotChangeSelection); }
void WMLInputElement::select() { if (RenderTextControl* r = toRenderTextControl(renderer())) setSelectionRange(this, 0, r->text().length()); }
void HTMLTextFormControlElement::select() { setSelectionRange(0, numeric_limits<int>::max(), SelectionHasNoDirection); }