Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Unified Diff: third_party/WebKit/Source/core/html/TextControlElement.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698