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

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

Issue 2895903002: DOMTokenList: Update serialization algorithm on add()/remove() (Closed)
Patch Set: Apply review comments Created 3 years, 7 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: third_party/WebKit/Source/core/dom/DOMTokenList.h
diff --git a/third_party/WebKit/Source/core/dom/DOMTokenList.h b/third_party/WebKit/Source/core/dom/DOMTokenList.h
index d7e8776c7027158c25bcef5969645a907232e0f6..1bc79a276b8dc3dcd96192b3e746c894216fa9e3 100644
--- a/third_party/WebKit/Source/core/dom/DOMTokenList.h
+++ b/third_party/WebKit/Source/core/dom/DOMTokenList.h
@@ -89,10 +89,12 @@ class CORE_EXPORT DOMTokenList : public GarbageCollectedFinalized<DOMTokenList>,
bool ValidateToken(const String&, ExceptionState&) const;
bool ValidateTokens(const Vector<String>&, ExceptionState&) const;
virtual bool ValidateTokenValue(const AtomicString&, ExceptionState&) const;
- static AtomicString AddToken(const AtomicString&, const AtomicString&);
- static AtomicString AddTokens(const AtomicString&, const Vector<String>&);
- static AtomicString RemoveToken(const AtomicString&, const AtomicString&);
- static AtomicString RemoveTokens(const AtomicString&, const Vector<String>&);
+ AtomicString AddToken(const AtomicString&);
+ AtomicString AddTokens(const Vector<String>&);
+ AtomicString RemoveToken(const AtomicString&);
+ AtomicString RemoveTokens(const Vector<String>&);
+ virtual SpaceSplitString& MutableSet() { return tokens_; }
+ static AtomicString SerializeSet(const SpaceSplitString&);
private:
SpaceSplitString tokens_;

Powered by Google App Engine
This is Rietveld 408576698