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

Unified Diff: Source/core/dom/SpaceSplitString.cpp

Issue 1035573005: Change a bool type to an enum type in constructor argument of SpaceSplitString. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move enum struct to SpaceSplitString and rename. Created 5 years, 9 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/dom/SpaceSplitString.h ('k') | Source/core/html/ClassList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SpaceSplitString.cpp
diff --git a/Source/core/dom/SpaceSplitString.cpp b/Source/core/dom/SpaceSplitString.cpp
index 45472171e0394c16bc281c1e38f5d48a810e731a..0b90f84eb9ae4ecb342a5a611aefb6ab39ec1c14 100644
--- a/Source/core/dom/SpaceSplitString.cpp
+++ b/Source/core/dom/SpaceSplitString.cpp
@@ -151,7 +151,7 @@ SpaceSplitString::DataMap& SpaceSplitString::sharedDataMap()
return map;
}
-void SpaceSplitString::set(const AtomicString& inputString, bool shouldFoldCase)
+void SpaceSplitString::set(const AtomicString& inputString, CaseFolding caseFolding)
{
if (inputString.isNull()) {
clear();
@@ -159,7 +159,7 @@ void SpaceSplitString::set(const AtomicString& inputString, bool shouldFoldCase)
}
String string(inputString.string());
- if (shouldFoldCase && hasNonASCIIOrUpper(string))
+ if (caseFolding == ShouldFoldCase && hasNonASCIIOrUpper(string))
string = string.foldCase();
m_data = Data::create(AtomicString(string));
« no previous file with comments | « Source/core/dom/SpaceSplitString.h ('k') | Source/core/html/ClassList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698