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

Unified Diff: Source/core/html/HTMLTextFormControlElement.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 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
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/forms/TypeAhead.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index 97396f7fe46049e5e9536dbaf9ef5a918743eed5..80157c196801b7286dc9885908f8c226123b047c 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -119,7 +119,7 @@ String HTMLTextFormControlElement::strippedPlaceholder() const
// According to the HTML5 specification, we need to remove CR and LF from
// the attribute value.
const AtomicString& attributeValue = fastGetAttribute(placeholderAttr);
- if (!attributeValue.contains(newlineCharacter) && !attributeValue.contains(carriageReturn))
+ if (!attributeValue.contains(newlineCharacter) && !attributeValue.contains(carriageReturnCharacter))
return attributeValue;
StringBuilder stripped;
@@ -127,14 +127,14 @@ String HTMLTextFormControlElement::strippedPlaceholder() const
stripped.reserveCapacity(length);
for (unsigned i = 0; i < length; ++i) {
UChar character = attributeValue[i];
- if (character == newlineCharacter || character == carriageReturn)
+ if (character == newlineCharacter || character == carriageReturnCharacter)
continue;
stripped.append(character);
}
return stripped.toString();
}
-static bool isNotLineBreak(UChar ch) { return ch != newlineCharacter && ch != carriageReturn; }
+static bool isNotLineBreak(UChar ch) { return ch != newlineCharacter && ch != carriageReturnCharacter; }
bool HTMLTextFormControlElement::isPlaceholderEmpty() const
{
« no previous file with comments | « Source/core/editing/iterators/TextIterator.cpp ('k') | Source/core/html/forms/TypeAhead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698