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

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

Issue 2683853005: bindings: Make some value iterator properties aliases to Array.prototype functions (Closed)
Patch Set: Remove constexpr from Internals.h to fix the Android build Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMTokenList.h ('k') | third_party/WebKit/Source/core/dom/NodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMTokenList.h ('k') | third_party/WebKit/Source/core/dom/NodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698