summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSSVGPathSegListCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSSVGPathSegListCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSSVGPathSegListCustom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bindings/js/JSSVGPathSegListCustom.cpp b/WebCore/bindings/js/JSSVGPathSegListCustom.cpp
index 850e533..9767c1a 100644
--- a/WebCore/bindings/js/JSSVGPathSegListCustom.cpp
+++ b/WebCore/bindings/js/JSSVGPathSegListCustom.cpp
@@ -71,7 +71,7 @@ JSValue JSSVGPathSegList::getItem(ExecState* exec)
ExceptionCode ec = 0;
bool indexOk;
- unsigned index = exec->argument(0).toInt32(exec, indexOk);
+ unsigned index = finiteInt32Value(exec->argument(0), exec, indexOk);
if (!indexOk) {
setDOMException(exec, TYPE_MISMATCH_ERR);
return jsUndefined();
@@ -92,7 +92,7 @@ JSValue JSSVGPathSegList::insertItemBefore(ExecState* exec)
SVGPathSeg* newItem = toSVGPathSeg(exec->argument(0));
bool indexOk;
- unsigned index = exec->argument(1).toInt32(exec, indexOk);
+ unsigned index = finiteInt32Value(exec->argument(1), exec, indexOk);
if (!indexOk) {
setDOMException(exec, TYPE_MISMATCH_ERR);
return jsUndefined();
@@ -114,7 +114,7 @@ JSValue JSSVGPathSegList::replaceItem(ExecState* exec)
SVGPathSeg* newItem = toSVGPathSeg(exec->argument(0));
bool indexOk;
- unsigned index = exec->argument(1).toInt32(exec, indexOk);
+ unsigned index = finiteInt32Value(exec->argument(1), exec, indexOk);
if (!indexOk) {
setDOMException(exec, TYPE_MISMATCH_ERR);
return jsUndefined();
@@ -135,7 +135,7 @@ JSValue JSSVGPathSegList::removeItem(ExecState* exec)
ExceptionCode ec = 0;
bool indexOk;
- unsigned index = exec->argument(0).toInt32(exec, indexOk);
+ unsigned index = finiteInt32Value(exec->argument(0), exec, indexOk);
if (!indexOk) {
setDOMException(exec, TYPE_MISMATCH_ERR);
return jsUndefined();