Chromium Code Reviews| 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 c7bd628c362ceab76b710601987503f7c45c8cc6..6e4825e01e618972b190c7575157951b3db3125a 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -1314,9 +1314,7 @@ static inline String canonicalizedTitle(Document* document, |
| bool pendingWhitespace = false; |
| for (unsigned i = 0; i < length; ++i) { |
| UChar32 c = characters[i]; |
| - if (c <= 0x20 || c == 0x7F || |
| - (WTF::Unicode::category(c) & |
| - (WTF::Unicode::Separator_Line | WTF::Unicode::Separator_Paragraph))) { |
| + if ((c <= 0x20 && c != 0x0b) || c == 0x7F) { |
|
skobes
2016/11/03 14:31:41
Can you use named constants for these instead of m
|
| if (builderIndex != 0) |
| pendingWhitespace = true; |
| } else { |