summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSNodeListCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSNodeListCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSNodeListCustom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/bindings/js/JSNodeListCustom.cpp b/WebCore/bindings/js/JSNodeListCustom.cpp
index dd59c15..c81914c 100644
--- a/WebCore/bindings/js/JSNodeListCustom.cpp
+++ b/WebCore/bindings/js/JSNodeListCustom.cpp
@@ -26,10 +26,10 @@
#include "config.h"
#include "JSNodeList.h"
-#include "AtomicString.h"
#include "JSNode.h"
#include "Node.h"
#include "NodeList.h"
+#include <wtf/text/AtomicString.h>
using namespace JSC;
@@ -39,7 +39,7 @@ namespace WebCore {
static EncodedJSValue JSC_HOST_CALL callNodeList(ExecState* exec)
{
bool ok;
- unsigned index = exec->argument(0).toString(exec).toUInt32(&ok);
+ unsigned index = Identifier::toUInt32(exec->argument(0).toString(exec), ok);
if (!ok)
return JSValue::encode(jsUndefined());
return JSValue::encode(toJS(exec, static_cast<JSNodeList*>(exec->callee())->impl()->item(index)));