Index: third_party/WebKit/Source/core/dom/DOMTokenList.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DOMTokenList.cpp b/third_party/WebKit/Source/core/dom/DOMTokenList.cpp |
index fe524336ed681971e9ce9d44c1d54252401a9271..22645cfa083755089119fdd0f8e93f652556a608 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMTokenList.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMTokenList.cpp |
@@ -287,9 +287,29 @@ AtomicString DOMTokenList::removeTokens(const AtomicString& input, const Vector< |
return output.toAtomicString(); |
} |
+void DOMTokenList::setValue(const AtomicString& value) |
+{ |
+ m_value = value; |
+ m_tokens.set(value, SpaceSplitString::ShouldNotFoldCase); |
+ if (m_observer) |
+ m_observer->valueWasSet(); |
+} |
+ |
+bool DOMTokenList::containsInternal(const AtomicString& token) const |
+{ |
+ return m_tokens.contains(token); |
+} |
+ |
ValueIterable<String>::IterationSource* DOMTokenList::startIteration(ScriptState*, ExceptionState&) |
{ |
return new DOMTokenListIterationSource(this); |
} |
+const AtomicString DOMTokenList::item(unsigned index) const |
+{ |
+ if (index >= length()) |
+ return AtomicString(); |
+ return m_tokens[index]; |
+} |
+ |
} // namespace blink |