| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index c6863dd163eeb4dc38938418a5e5d5027aa0a35c..aeeb8785a2b51fbd6b95bea94070fe3c95757245 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -549,26 +549,20 @@ bool HTMLInputElement::canStartSelection() const {
|
| }
|
|
|
| unsigned HTMLInputElement::selectionStartForBinding(
|
| + bool& isNull,
|
| ExceptionState& exceptionState) const {
|
| if (!m_inputType->supportsSelectionAPI()) {
|
| - UseCounter::count(document(), UseCounter::InputSelectionGettersThrow);
|
| - exceptionState.throwDOMException(InvalidStateError,
|
| - "The input element's type ('" +
|
| - m_inputType->formControlType() +
|
| - "') does not support selection.");
|
| + isNull = true;
|
| return 0;
|
| }
|
| return TextControlElement::selectionStart();
|
| }
|
|
|
| unsigned HTMLInputElement::selectionEndForBinding(
|
| + bool& isNull,
|
| ExceptionState& exceptionState) const {
|
| if (!m_inputType->supportsSelectionAPI()) {
|
| - UseCounter::count(document(), UseCounter::InputSelectionGettersThrow);
|
| - exceptionState.throwDOMException(InvalidStateError,
|
| - "The input element's type ('" +
|
| - m_inputType->formControlType() +
|
| - "') does not support selection.");
|
| + isNull = true;
|
| return 0;
|
| }
|
| return TextControlElement::selectionEnd();
|
| @@ -577,11 +571,6 @@ unsigned HTMLInputElement::selectionEndForBinding(
|
| String HTMLInputElement::selectionDirectionForBinding(
|
| ExceptionState& exceptionState) const {
|
| if (!m_inputType->supportsSelectionAPI()) {
|
| - UseCounter::count(document(), UseCounter::InputSelectionGettersThrow);
|
| - exceptionState.throwDOMException(InvalidStateError,
|
| - "The input element's type ('" +
|
| - m_inputType->formControlType() +
|
| - "') does not support selection.");
|
| return String();
|
| }
|
| return TextControlElement::selectionDirection();
|
|
|