| 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 1149d40fbb15821f490493f7be53d807bdc428f7..5702c286cb57cc8366b9b31a616e85ce18ab8010 100644
|
| --- a/third_party/WebKit/Source/core/dom/DOMTokenList.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DOMTokenList.cpp
|
| @@ -31,34 +31,6 @@
|
|
|
| namespace blink {
|
|
|
| -namespace {
|
| -
|
| -class DOMTokenListIterationSource final
|
| - : public ValueIterable<String>::IterationSource {
|
| - public:
|
| - explicit DOMTokenListIterationSource(DOMTokenList* domTokenList)
|
| - : m_domTokenList(domTokenList) {}
|
| -
|
| - bool next(ScriptState* scriptState,
|
| - String& value,
|
| - ExceptionState& exceptionState) override {
|
| - if (m_index >= m_domTokenList->length())
|
| - return false;
|
| - value = m_domTokenList->item(m_index);
|
| - return true;
|
| - }
|
| -
|
| - DEFINE_INLINE_VIRTUAL_TRACE() {
|
| - visitor->trace(m_domTokenList);
|
| - ValueIterable<String>::IterationSource::trace(visitor);
|
| - }
|
| -
|
| - private:
|
| - const Member<DOMTokenList> m_domTokenList;
|
| -};
|
| -
|
| -} // namespace
|
| -
|
| bool DOMTokenList::validateToken(const String& token,
|
| ExceptionState& exceptionState) const {
|
| if (token.isEmpty()) {
|
| @@ -302,12 +274,6 @@ 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();
|
|
|