Index: Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h |
=================================================================== |
--- Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h (revision 144107) |
+++ Source/WebCore/svg/properties/SVGPathSegListPropertyTearOff.h (working copy) |
@@ -75,6 +75,7 @@ |
return 0; |
} |
+ clearContextAndRoles(); |
ListItemType newItem = passNewItem; |
return Base::initializeValues(newItem, ec); |
} |
@@ -93,18 +94,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) |
@@ -129,6 +120,8 @@ |
SVGPathElement* contextElement() const; |
+ void clearContextAndRoles(); |
+ |
using Base::m_role; |
virtual bool isReadOnly() const |