summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp')
-rw-r--r--Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp b/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp
index 910747bed..3802bb3ec 100644
--- a/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp
+++ b/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp
@@ -49,7 +49,7 @@ static v8::Handle<v8::Value> getNamedItems(HTMLCollection* collection, AtomicStr
collection->namedItems(name, namedItems);
if (!namedItems.size())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
if (namedItems.size() == 1)
return toV8(namedItems.at(0).release(), isolate);
@@ -65,12 +65,12 @@ v8::Handle<v8::Value> V8HTMLCollection::namedPropertyGetter(v8::Local<v8::String
INC_STATS("DOM.HTMLCollection.NamedPropertyGetter");
if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
if (info.Holder()->HasRealNamedCallbackProperty(name))
- return v8::Handle<v8::Value>();
+ return v8Undefined();
HTMLCollection* imp = V8HTMLCollection::toNative(info.Holder());
- return getNamedItems(imp, v8StringToAtomicWebCoreString(name), info.GetIsolate());
+ return getNamedItems(imp, v8ValueToAtomicWebCoreString(name), info.GetIsolate());
}
v8::Handle<v8::Value> V8HTMLCollection::namedItemCallback(const v8::Arguments& args)