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

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

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/DOMTokenList.h
diff --git a/Source/core/dom/DOMTokenList.h b/Source/core/dom/DOMTokenList.h
index d758214d09a94386619bc627fddf7387ee138010..bdaf34de64418a2ed14dd49cf2883851a2eff5f5 100644
--- a/Source/core/dom/DOMTokenList.h
+++ b/Source/core/dom/DOMTokenList.h
@@ -69,12 +69,12 @@ protected:
virtual bool containsInternal(const AtomicString&) const = 0;
virtual void removeInternal(const AtomicString&);
- static bool validateToken(const AtomicString&, ExceptionState&);
+ static bool validateToken(const String&, ExceptionState&);
static bool validateTokens(const Vector<String>&, ExceptionState&);
- static String addToken(const AtomicString&, const AtomicString&);
- static String addTokens(const AtomicString&, const Vector<String>&);
- static String removeToken(const AtomicString&, const AtomicString&);
- static String removeTokens(const AtomicString&, const Vector<String>&);
+ static AtomicString addToken(const AtomicString&, const AtomicString&);
eseidel 2013/12/15 16:51:26 Why are these atomic?
Inactive 2013/12/16 14:26:27 Because all the callers expect an AtomicString. Th
eseidel 2013/12/30 17:19:27 You should add comments whenever you're changing t
+ static AtomicString addTokens(const AtomicString&, const Vector<String>&);
+ static AtomicString removeToken(const AtomicString&, const AtomicString&);
+ static AtomicString removeTokens(const AtomicString&, const Vector<String>&);
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698