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

Unified Diff: Source/core/svg/SVGStringListTearOff.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/SVGStringList.idl ('k') | Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStringListTearOff.h
diff --git a/Source/core/svg/SVGStringListTearOff.h b/Source/core/svg/SVGStringListTearOff.h
index 3e16f5c8154140d2af37d25e1c5ec241ba82ce4e..ed7419a339d3ab77b14c042e4dd3ab95db7f7313 100644
--- a/Source/core/svg/SVGStringListTearOff.h
+++ b/Source/core/svg/SVGStringListTearOff.h
@@ -46,9 +46,9 @@ public:
// SVGStringList DOM interface:
// WebIDL requires "unsigned long" type instead of size_t.
- unsigned long numberOfItems()
+ unsigned long length()
{
- return target()->numberOfItems();
+ return target()->length();
}
void clear(ExceptionState& exceptionState)
@@ -106,6 +106,12 @@ public:
return item;
}
+ bool anonymousIndexedSetter(unsigned index, const String& item, ExceptionState& exceptionState)
+ {
+ replaceItem(item, index, exceptionState);
+ return true;
+ }
+
String removeItem(unsigned long index, ExceptionState& exceptionState)
{
if (isImmutable()) {
« no previous file with comments | « Source/core/svg/SVGStringList.idl ('k') | Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698