Index: Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h |
diff --git a/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h b/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h |
index de7d151104a266b4c50b5ecd7a80ac7650dcdccb..1cdc50cea5e8f26762b293bdb28c98a15d1d491a 100644 |
--- a/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h |
+++ b/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h |
@@ -81,9 +81,9 @@ public: |
// SVG*List DOM interface: |
// WebIDL requires "unsigned long" type instead of size_t. |
- unsigned long numberOfItems() |
+ unsigned long length() |
{ |
- return toDerived()->target()->numberOfItems(); |
+ return toDerived()->target()->length(); |
} |
void clear(ExceptionState& exceptionState) |
@@ -162,6 +162,12 @@ public: |
return createItemTearOff(value.release()); |
} |
+ bool anonymousIndexedSetter(unsigned index, PassRefPtr<ItemTearOffType> passItem, ExceptionState& exceptionState) |
+ { |
+ replaceItem(passItem, index, exceptionState); |
+ return true; |
+ } |
+ |
PassRefPtr<ItemTearOffType> removeItem(unsigned long index, ExceptionState& exceptionState) |
{ |
RefPtr<ItemPropertyType> value = toDerived()->target()->removeItem(index, exceptionState); |