diff options
Diffstat (limited to 'WebCore/bindings/js/JSSVGPointListCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSSVGPointListCustom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bindings/js/JSSVGPointListCustom.cpp b/WebCore/bindings/js/JSSVGPointListCustom.cpp index af4fc91..2c7127f 100644 --- a/WebCore/bindings/js/JSSVGPointListCustom.cpp +++ b/WebCore/bindings/js/JSSVGPointListCustom.cpp @@ -56,7 +56,7 @@ JSValue* JSSVGPointList::initialize(ExecState* exec, const List& args) SVGPointList* imp = static_cast<SVGPointList*>(impl()); SVGList<RefPtr<SVGPODListItem<FloatPoint> > >* listImp = imp; - SVGPODListItem<FloatPoint>* listItem = listImp->initialize(SVGPODListItem<FloatPoint>::copy(newItem), ec).get(); + SVGPODListItem<FloatPoint>* listItem = listImp->initialize(new SVGPODListItem<FloatPoint>(newItem), ec).get(); JSSVGPODTypeWrapperCreatorForList<FloatPoint>* obj = new JSSVGPODTypeWrapperCreatorForList<FloatPoint>(listItem, imp->associatedAttributeName()); KJS::JSValue* result = toJS(exec, obj, m_context.get()); @@ -104,7 +104,7 @@ JSValue* JSSVGPointList::insertItemBefore(ExecState* exec, const List& args) SVGPointList* imp = static_cast<SVGPointList*>(impl()); SVGList<RefPtr<SVGPODListItem<FloatPoint> > >* listImp = imp; - SVGPODListItem<FloatPoint>* listItem = listImp->insertItemBefore(SVGPODListItem<FloatPoint>::copy(newItem), index, ec).get(); + SVGPODListItem<FloatPoint>* listItem = listImp->insertItemBefore(new SVGPODListItem<FloatPoint>(newItem), index, ec).get(); JSSVGPODTypeWrapperCreatorForList<FloatPoint>* obj = new JSSVGPODTypeWrapperCreatorForList<FloatPoint>(listItem, imp->associatedAttributeName()); KJS::JSValue* result = toJS(exec, obj, m_context.get()); @@ -130,7 +130,7 @@ JSValue* JSSVGPointList::replaceItem(ExecState* exec, const List& args) SVGPointList* imp = static_cast<SVGPointList*>(impl()); SVGList<RefPtr<SVGPODListItem<FloatPoint> > >* listImp = imp; - SVGPODListItem<FloatPoint>* listItem = listImp->replaceItem(SVGPODListItem<FloatPoint>::copy(newItem), index, ec).get(); + SVGPODListItem<FloatPoint>* listItem = listImp->replaceItem(new SVGPODListItem<FloatPoint>(newItem), index, ec).get(); JSSVGPODTypeWrapperCreatorForList<FloatPoint>* obj = new JSSVGPODTypeWrapperCreatorForList<FloatPoint>(listItem, imp->associatedAttributeName()); KJS::JSValue* result = toJS(exec, obj, m_context.get()); @@ -174,7 +174,7 @@ JSValue* JSSVGPointList::appendItem(ExecState* exec, const List& args) SVGPointList* imp = static_cast<SVGPointList*>(impl()); SVGList<RefPtr<SVGPODListItem<FloatPoint> > >* listImp = imp; - SVGPODListItem<FloatPoint>* listItem = listImp->appendItem(SVGPODListItem<FloatPoint>::copy(newItem), ec).get(); + SVGPODListItem<FloatPoint>* listItem = listImp->appendItem(new SVGPODListItem<FloatPoint>(newItem), ec).get(); JSSVGPODTypeWrapperCreatorForList<FloatPoint>* obj = new JSSVGPODTypeWrapperCreatorForList<FloatPoint>(listItem, imp->associatedAttributeName()); KJS::JSValue* result = toJS(exec, obj, m_context.get()); |