Index: Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h |
=================================================================== |
--- Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h (revision 143527) |
+++ Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h (working copy) |
@@ -76,6 +76,7 @@ |
return 0; |
} |
+ clearContextAndRoles(); |
ListItemType newItem = passNewItem; |
return Base::initializeValues(newItem, ec); |
} |
@@ -94,18 +95,8 @@ |
return Base::insertItemBeforeValues(newItem, index, ec); |
} |
- PassListItemType replaceItem(PassListItemType passNewItem, unsigned index, ExceptionCode& ec) |
- { |
- // Not specified, but FF/Opera do it this way, and it's just sane. |
- if (!passNewItem) { |
- ec = SVGException::SVG_WRONG_TYPE_ERR; |
- return 0; |
- } |
+ PassListItemType replaceItem(PassListItemType, unsigned index, ExceptionCode&); |
- ListItemType newItem = passNewItem; |
- return Base::replaceItemValues(newItem, index, ec); |
- } |
- |
PassListItemType removeItem(unsigned index, ExceptionCode&); |
PassListItemType appendItem(PassListItemType passNewItem, ExceptionCode& ec) |
@@ -130,6 +121,8 @@ |
SVGPathElement* contextElement() const; |
+ void clearContextAndRoles(); |
+ |
using Base::m_role; |
virtual bool isReadOnly() const |