Index: Source/core/svg/SVGPathSegListTearOff.h |
diff --git a/Source/core/svg/SVGPathSegListTearOff.h b/Source/core/svg/SVGPathSegListTearOff.h |
index b95e6b20a6657d40b87fad6d2deaf47eeff7c76b..6c5b6ecd3ef22e5ea2f8762b3b5ca2fb1aa9a351 100644 |
--- a/Source/core/svg/SVGPathSegListTearOff.h |
+++ b/Source/core/svg/SVGPathSegListTearOff.h |
@@ -48,6 +48,12 @@ public: |
{ |
ASSERT(attributeName == SVGNames::dAttr); |
RefPtrWillBeRawPtr<ItemTearOffType> newItem = passNewItem; |
+ |
+ // SVG2-Draft Spec: If newItem is already in a list, then a new object is created with the same values as newItem and this item is inserted into the list. |
fs
2015/06/17 16:02:05
I think I would prefer just "Spec" here, you can d
Shanmuga Pandi
2015/06/18 11:30:45
Done.
|
+ // Otherwise, newItem itself is inserted into the list. |
+ if (newItem->ownerList()) |
+ newItem = newItem->clone(); |
+ |
newItem->setContextElement(contextElement); |
return newItem.release(); |
} |