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

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

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/SandboxFlags.cpp ('k') | Source/core/dom/SpaceSplitString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SpaceSplitString.h
diff --git a/Source/core/dom/SpaceSplitString.h b/Source/core/dom/SpaceSplitString.h
index c5f47adb6c6173cd23969dcff3e9af3013490683..7763c0ff7b8751acb3fe41148e5f00f95a4dd89e 100644
--- a/Source/core/dom/SpaceSplitString.h
+++ b/Source/core/dom/SpaceSplitString.h
@@ -29,12 +29,13 @@ namespace blink {
class SpaceSplitString {
public:
+ enum CaseFolding { ShouldNotFoldCase, ShouldFoldCase };
SpaceSplitString() { }
- SpaceSplitString(const AtomicString& string, bool shouldFoldCase) { set(string, shouldFoldCase); }
+ SpaceSplitString(const AtomicString& string, CaseFolding caseFolding) { set(string, caseFolding); }
bool operator!=(const SpaceSplitString& other) const { return m_data != other.m_data; }
- void set(const AtomicString&, bool shouldFoldCase);
+ void set(const AtomicString&, CaseFolding);
void clear() { m_data.clear(); }
bool contains(const AtomicString& string) const { return m_data && m_data->contains(string); }
« no previous file with comments | « Source/core/dom/SandboxFlags.cpp ('k') | Source/core/dom/SpaceSplitString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698