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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2476293003: Move named constant to CharacterNames.h (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/wtf/text/CharacterNames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 45d0d75298aab800192866d674e0428b87022329..8e74cce616f5e72df0703dfb09758b936805789e 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -255,6 +255,7 @@
#include "wtf/HashFunctions.h"
#include "wtf/PtrUtil.h"
#include "wtf/StdLibExtras.h"
+#include "wtf/text/CharacterNames.h"
#include "wtf/text/StringBuffer.h"
#include "wtf/text/TextEncodingRegistry.h"
#include <memory>
@@ -1314,9 +1315,6 @@ static inline String canonicalizedTitle(Document* document,
// Replace control characters with spaces and collapse whitespace.
bool pendingWhitespace = false;
- const UChar lineTabulationCharacter = 0x0b;
- const UChar spaceCharacter = 0x20;
- const UChar deleteCharacter = 0x7f;
for (unsigned i = 0; i < length; ++i) {
UChar32 c = characters[i];
if ((c <= spaceCharacter && c != lineTabulationCharacter) ||
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/CharacterNames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698