Index: third_party/WebKit/Source/core/html/TextControlElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp |
index f214cb1c8bbad618e27afd92b3b4c8f2a899c06d..de315a9a98da0153a3b16d90ef5d364ee424c095 100644 |
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp |
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp |
@@ -269,9 +269,10 @@ void TextControlElement::setRangeText(const String& replacement, |
ExceptionState& exceptionState) { |
if (start > end) { |
exceptionState.throwDOMException( |
- IndexSizeError, "The provided start value (" + String::number(start) + |
- ") is larger than the provided end value (" + |
- String::number(end) + ")."); |
+ IndexSizeError, |
+ "The provided start value (" + String::number(start) + |
+ ") is larger than the provided end value (" + String::number(end) + |
+ ")."); |
return; |
} |
if (openShadowRoot()) |
@@ -642,13 +643,15 @@ void TextControlElement::setMaxLength(int newValue, |
ExceptionState& exceptionState) { |
int min = minLength(); |
if (newValue < 0) { |
- exceptionState.throwDOMException( |
- IndexSizeError, "The value provided (" + String::number(newValue) + |
- ") is not positive or 0."); |
+ exceptionState.throwDOMException(IndexSizeError, |
+ "The value provided (" + |
+ String::number(newValue) + |
+ ") is not positive or 0."); |
} else if (min >= 0 && newValue < min) { |
exceptionState.throwDOMException( |
- IndexSizeError, ExceptionMessages::indexExceedsMinimumBound( |
- "maxLength", newValue, min)); |
+ IndexSizeError, |
+ ExceptionMessages::indexExceedsMinimumBound("maxLength", newValue, |
+ min)); |
} else { |
setIntegralAttribute(maxlengthAttr, newValue); |
} |
@@ -658,13 +661,15 @@ void TextControlElement::setMinLength(int newValue, |
ExceptionState& exceptionState) { |
int max = maxLength(); |
if (newValue < 0) { |
- exceptionState.throwDOMException( |
- IndexSizeError, "The value provided (" + String::number(newValue) + |
- ") is not positive or 0."); |
+ exceptionState.throwDOMException(IndexSizeError, |
+ "The value provided (" + |
+ String::number(newValue) + |
+ ") is not positive or 0."); |
} else if (max >= 0 && newValue > max) { |
exceptionState.throwDOMException( |
- IndexSizeError, ExceptionMessages::indexExceedsMaximumBound( |
- "minLength", newValue, max)); |
+ IndexSizeError, |
+ ExceptionMessages::indexExceedsMaximumBound("minLength", newValue, |
+ max)); |
} else { |
setIntegralAttribute(minlengthAttr, newValue); |
} |