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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2683853005: bindings: Make some value iterator properties aliases to Array.prototype functions (Closed)
Patch Set: Patch v2: IDLs and test expectations adjusted 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
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 96e83435a308d75ec39b2c25f292262b1f2607c3..c1af8b3c4bc317a88531faa235ba6ad570d60b99 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -157,23 +157,6 @@
namespace blink {
-namespace {
-
-class InternalsIterationSource final
- : public ValueIterable<int>::IterationSource {
- public:
- bool next(ScriptState* scriptState,
- int& value,
- ExceptionState& exceptionState) override {
- if (m_index >= 5)
- return false;
- value = m_index * m_index;
- return true;
- }
-};
-
-} // namespace
-
static WTF::Optional<DocumentMarker::MarkerType> markerTypeFrom(
const String& markerType) {
if (equalIgnoringCase(markerType, "Spelling"))
@@ -2991,12 +2974,6 @@ float Internals::visualViewportScrollY() {
return frame()->view()->getScrollableArea()->getScrollOffset().height();
}
-ValueIterable<int>::IterationSource* Internals::startIteration(
- ScriptState*,
- ExceptionState&) {
- return new InternalsIterationSource();
-}
-
bool Internals::isUseCounted(Document* document, int useCounterId) {
if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures)
return false;

Powered by Google App Engine
This is Rietveld 408576698