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

Unified Diff: Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h

Issue 195313003: [SVG2] Add getters and setters to SVG*List interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s/slength/size Created 6 years, 9 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 | « Source/core/svg/properties/NewSVGListPropertyHelper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/svg/properties/NewSVGListPropertyHelper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698