2315
|
1 |
diff --git a/WebCore/bindings/js/JSSVGPODListCustom.h b/WebCore/bindings/js/JSSVGPODListCustom.h
|
|
2 |
index 3852505..6ae534f 100644
|
|
3 |
--- a/WebCore/bindings/js/JSSVGPODListCustom.h
|
|
4 |
+++ b/WebCore/bindings/js/JSSVGPODListCustom.h
|
|
5 |
@@ -103,9 +103,8 @@ static JSC::JSValue initialize(JSPODListType* wrapper, JSC::ExecState* exec, con
|
|
6 |
{
|
|
7 |
ExceptionCode ec = 0;
|
|
8 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
9 |
- return finishSetter<PODType>(exec, ec, wrapper->context(), listImp,
|
|
10 |
- listImp->initialize(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), ec));
|
|
11 |
-
|
|
12 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->initialize(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), ec);
|
|
13 |
+ return finishSetter<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
14 |
}
|
|
15 |
|
|
16 |
template<typename JSPODListType, typename PODType>
|
|
17 |
@@ -121,8 +120,8 @@ static JSC::JSValue getItem(JSPODListType* wrapper, JSC::ExecState* exec, const
|
|
18 |
|
|
19 |
ExceptionCode ec = 0;
|
|
20 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
21 |
- return finishGetter<PODType>(exec, ec, wrapper->context(), listImp,
|
|
22 |
- listImp->getItem(index, ec));
|
|
23 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->getItem(index, ec);
|
|
24 |
+ return finishGetter<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
25 |
}
|
|
26 |
|
|
27 |
template<typename JSPODListType, typename PODType>
|
|
28 |
@@ -138,8 +137,8 @@ static JSC::JSValue insertItemBefore(JSPODListType* wrapper, JSC::ExecState* exe
|
|
29 |
|
|
30 |
ExceptionCode ec = 0;
|
|
31 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
32 |
- return finishSetter<PODType>(exec, ec, wrapper->context(), listImp,
|
|
33 |
- listImp->insertItemBefore(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), index, ec));
|
|
34 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->insertItemBefore(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), index, ec);
|
|
35 |
+ return finishSetter<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
36 |
}
|
|
37 |
|
|
38 |
template<typename JSPODListType, typename PODType>
|
|
39 |
@@ -155,8 +154,8 @@ static JSC::JSValue replaceItem(JSPODListType* wrapper, JSC::ExecState* exec, co
|
|
40 |
|
|
41 |
ExceptionCode ec = 0;
|
|
42 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
43 |
- return finishSetter<PODType>(exec, ec, wrapper->context(), listImp,
|
|
44 |
- listImp->replaceItem(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), index, ec));
|
|
45 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->replaceItem(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), index, ec);
|
|
46 |
+ return finishSetter<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
47 |
}
|
|
48 |
|
|
49 |
template<typename JSPODListType, typename PODType>
|
|
50 |
@@ -172,8 +171,8 @@ static JSC::JSValue removeItem(JSPODListType* wrapper, JSC::ExecState* exec, con
|
|
51 |
|
|
52 |
ExceptionCode ec = 0;
|
|
53 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
54 |
- return finishSetterReadOnlyResult<PODType>(exec, ec, wrapper->context(), listImp,
|
|
55 |
- listImp->removeItem(index, ec));
|
|
56 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->removeItem(index, ec);
|
|
57 |
+ return finishSetterReadOnlyResult<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
58 |
}
|
|
59 |
|
|
60 |
template<typename JSPODListType, typename PODType>
|
|
61 |
@@ -182,8 +181,8 @@ static JSC::JSValue appendItem(JSPODListType* wrapper, JSC::ExecState* exec, con
|
|
62 |
{
|
|
63 |
ExceptionCode ec = 0;
|
|
64 |
typename JSSVGPODListTraits<PODType>::PODList* listImp = wrapper->impl();
|
|
65 |
- return finishSetter<PODType>(exec, ec, wrapper->context(), listImp,
|
|
66 |
- listImp->appendItem(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), ec));
|
|
67 |
+ PassRefPtr<typename JSSVGPODListTraits<PODType>::PODListItem> item = listImp->appendItem(JSSVGPODListTraits<PODType>::PODListItem::copy(conversion(args.at(0))), ec);
|
|
68 |
+ return finishSetter<PODType>(exec, ec, wrapper->context(), listImp, item);
|
|
69 |
}
|
|
70 |
|
|
71 |
}
|