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

Unified Diff: Source/core/dom/DOMSettableTokenList.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/ClassCollection.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMSettableTokenList.cpp
diff --git a/Source/core/dom/DOMSettableTokenList.cpp b/Source/core/dom/DOMSettableTokenList.cpp
index dfdb4f821ef97a1e398baef3bb5a5f988c279a6e..6022a44bd95c6c828f924cdc8e16906cd4ead87c 100644
--- a/Source/core/dom/DOMSettableTokenList.cpp
+++ b/Source/core/dom/DOMSettableTokenList.cpp
@@ -64,7 +64,7 @@ void DOMSettableTokenList::add(const Vector<String>& tokens, ExceptionState& exc
for (size_t i = 0; i < tokens.size(); ++i) {
if (m_tokens.isNull())
- m_tokens.set(AtomicString(tokens[i]), false);
+ m_tokens.set(AtomicString(tokens[i]), SpaceSplitString::ShouldNotFoldCase);
else
m_tokens.add(AtomicString(tokens[i]));
}
@@ -74,7 +74,7 @@ void DOMSettableTokenList::addInternal(const AtomicString& token)
{
DOMTokenList::addInternal(token);
if (m_tokens.isNull())
- m_tokens.set(token, false);
+ m_tokens.set(token, SpaceSplitString::ShouldNotFoldCase);
else
m_tokens.add(token);
}
@@ -95,7 +95,7 @@ void DOMSettableTokenList::removeInternal(const AtomicString& token)
void DOMSettableTokenList::setValue(const AtomicString& value)
{
m_value = value;
- m_tokens.set(value, false);
+ m_tokens.set(value, SpaceSplitString::ShouldNotFoldCase);
if (m_observer)
m_observer->valueChanged();
}
« no previous file with comments | « Source/core/dom/ClassCollection.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698