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

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: Draft 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
Index: Source/core/dom/DOMSettableTokenList.cpp
diff --git a/Source/core/dom/DOMSettableTokenList.cpp b/Source/core/dom/DOMSettableTokenList.cpp
index dfdb4f821ef97a1e398baef3bb5a5f988c279a6e..4eab0ddd235df59f229981551edcae7aa7a2102c 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]), 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, 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, ShouldNotFoldCase);
if (m_observer)
m_observer->valueChanged();
}

Powered by Google App Engine
This is Rietveld 408576698