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

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

Issue 112843002: Make calls to AtomicString(const String&) explicit in dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 2d69533d6b3f64c216508cc8cbd34855723f5d12..07098c9d5e387863a3eec4c99ac9ef656b3691fd 100644
--- a/Source/core/dom/DOMSettableTokenList.cpp
+++ b/Source/core/dom/DOMSettableTokenList.cpp
@@ -58,9 +58,9 @@ 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(tokens[i], false);
+ m_tokens.set(AtomicString(tokens[i]), false);
else
- m_tokens.add(tokens[i]);
+ m_tokens.add(AtomicString(tokens[i]));
}
}
@@ -77,7 +77,7 @@ void DOMSettableTokenList::remove(const Vector<String>& tokens, ExceptionState&
{
DOMTokenList::remove(tokens, exceptionState);
for (size_t i = 0; i < tokens.size(); ++i)
- m_tokens.remove(tokens[i]);
+ m_tokens.remove(AtomicString(tokens[i]));
}
void DOMSettableTokenList::removeInternal(const AtomicString& token)

Powered by Google App Engine
This is Rietveld 408576698