Diff
Modified: trunk/Source/WebCore/ChangeLog (124983 => 124984)
--- trunk/Source/WebCore/ChangeLog 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/ChangeLog 2012-08-08 05:02:35 UTC (rev 124984)
@@ -1,5 +1,79 @@
2012-08-07 Kentaro Hara <[email protected]>
+ [V8] Replace v8::Handle<v8::Value>() in custom bindings with v8Undefined()
+ https://bugs.webkit.org/show_bug.cgi?id=93215
+
+ Reviewed by Eric Seidel.
+
+ We should use v8Undefined() everywhere in V8 bindings.
+
+ No tests. No change in behavior.
+
+ * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
+ (WebCore::V8CSSStyleDeclaration::namedPropertyGetter):
+ (WebCore::V8CSSStyleDeclaration::namedPropertySetter):
+ * bindings/v8/custom/V8ConsoleCustom.cpp:
+ (WebCore::V8Console::traceCallback):
+ (WebCore::V8Console::assertCallback):
+ (WebCore::V8Console::profileCallback):
+ (WebCore::V8Console::profileEndCallback):
+ * bindings/v8/custom/V8DOMStringMapCustom.cpp:
+ (WebCore::V8DOMStringMap::namedPropertyGetter):
+ * bindings/v8/custom/V8DOMWindowCustom.cpp:
+ (WebCore::V8DOMWindow::indexedPropertyGetter):
+ (WebCore::V8DOMWindow::namedPropertyGetter):
+ * bindings/v8/custom/V8DataViewCustom.cpp:
+ (WebCore::V8DataView::setInt8Callback):
+ (WebCore::V8DataView::setUint8Callback):
+ * bindings/v8/custom/V8DeviceMotionEventCustom.cpp:
+ (WebCore::V8DeviceMotionEvent::initDeviceMotionEventCallback):
+ * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp:
+ (WebCore::V8DeviceOrientationEvent::initDeviceOrientationEventCallback):
+ * bindings/v8/custom/V8DirectoryEntryCustom.cpp:
+ (WebCore::V8DirectoryEntry::getDirectoryCallback):
+ (WebCore::V8DirectoryEntry::getFileCallback):
+ * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
+ (WebCore::getNamedItems):
+ (WebCore::V8HTMLAllCollection::namedPropertyGetter):
+ * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
+ (WebCore::getNamedItems):
+ (WebCore::V8HTMLCollection::namedPropertyGetter):
+ * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
+ (WebCore::V8HTMLDocument::GetNamedProperty):
+ * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
+ (WebCore::V8HTMLFormElement::indexedPropertyGetter):
+ (WebCore::V8HTMLFormElement::namedPropertyGetter):
+ * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
+ (WebCore::V8HTMLFrameSetElement::namedPropertyGetter):
+ * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
+ (WebCore::V8HTMLOptionsCollection::indexedPropertyGetter):
+ * bindings/v8/custom/V8HTMLPlugInElementCustom.cpp:
+ (WebCore::npObjectNamedGetter):
+ (WebCore::npObjectNamedSetter):
+ (WebCore::npObjectIndexedGetter):
+ (WebCore::npObjectIndexedSetter):
+ * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
+ (WebCore::V8HTMLSelectElement::indexedPropertyGetter):
+ * bindings/v8/custom/V8LocationCustom.cpp:
+ (WebCore::V8Location::reloadAccessorGetter):
+ (WebCore::V8Location::replaceAccessorGetter):
+ (WebCore::V8Location::assignAccessorGetter):
+ * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
+ (WebCore::V8NamedNodeMap::indexedPropertyGetter):
+ (WebCore::V8NamedNodeMap::namedPropertyGetter):
+ * bindings/v8/custom/V8NodeListCustom.cpp:
+ (WebCore::V8NodeList::namedPropertyGetter):
+ * bindings/v8/custom/V8SVGLengthCustom.cpp:
+ (WebCore::V8SVGLength::convertToSpecifiedUnitsCallback):
+ * bindings/v8/custom/V8StorageCustom.cpp:
+ (WebCore::storageGetter):
+ (WebCore::V8Storage::namedPropertyGetter):
+ (WebCore::storageSetter):
+ * bindings/v8/custom/V8StyleSheetListCustom.cpp:
+ (WebCore::V8StyleSheetList::namedPropertyGetter):
+
+2012-08-07 Kentaro Hara <[email protected]>
+
[V8] Replace v8::Handle<v8::Value>() in bindings/v8/* with v8Undefined()
https://bugs.webkit.org/show_bug.cgi?id=93211
Modified: trunk/Source/WebCore/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -195,14 +195,14 @@
INC_STATS("DOM.CSSStyleDeclaration.NamedPropertyGetter");
// First look for API defined attributes on the style declaration object.
if (info.Holder()->HasRealNamedCallbackProperty(name))
- return v8::Handle<v8::Value>();
+ return v8Undefined();
// Search the style declaration.
CSSPropertyInfo* propInfo = cssPropertyInfo(name);
// Do not handle non-property names.
if (!propInfo)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
CSSStyleDeclaration* imp = V8CSSStyleDeclaration::toNative(info.Holder());
RefPtr<CSSValue> cssValue = imp->getPropertyCSSValueInternal(static_cast<CSSPropertyID>(propInfo->propID));
@@ -228,7 +228,7 @@
CSSStyleDeclaration* imp = V8CSSStyleDeclaration::toNative(info.Holder());
CSSPropertyInfo* propInfo = cssPropertyInfo(name);
if (!propInfo)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
String propertyValue = toWebCoreStringWithNullCheck(value);
if (propInfo->hadPixelOrPosPrefix)
Modified: trunk/Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -49,7 +49,7 @@
RefPtr<ScriptCallStack> callStack(createScriptCallStack(ScriptCallStack::maxCallStackSizeToCapture));
RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, 0));
imp->trace(scriptArguments.release(), callStack);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
v8::Handle<v8::Value> V8Console::assertCallback(const v8::Arguments& args)
@@ -60,7 +60,7 @@
bool condition = args[0]->BooleanValue();
RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, 1));
imp->assertCondition(scriptArguments.release(), callStack, condition);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
#if ENABLE(_javascript__DEBUGGER)
@@ -73,7 +73,7 @@
return v8::Undefined();
STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<WithUndefinedOrNullCheck>, title, args[0]);
imp->profile(title, ScriptState::current(), callStack);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
v8::Handle<v8::Value> V8Console::profileEndCallback(const v8::Arguments& args)
@@ -85,7 +85,7 @@
return v8::Undefined();
STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<WithUndefinedOrNullCheck>, title, args[0]);
imp->profileEnd(title, ScriptState::current(), callStack);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
#endif
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -51,7 +51,7 @@
INC_STATS("DOM.DOMStringMap.NamedPropertyGetter");
String value = V8DOMStringMap::toNative(info.Holder())->item(toWebCoreString(name));
if (value.isNull())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return v8StringOrUndefined(value, info.GetIsolate());
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -471,17 +471,17 @@
DOMWindow* window = V8DOMWindow::toNative(info.Holder());
if (!window)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
Frame* frame = window->frame();
if (!frame)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
Frame* child = frame->tree()->scopedChild(index);
if (child)
return toV8(child->domWindow(), info.GetIsolate());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
@@ -491,12 +491,12 @@
DOMWindow* window = V8DOMWindow::toNative(info.Holder());
if (!window)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
Frame* frame = window->frame();
// window is detached from a frame.
if (!frame)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
// Search sub-frames.
AtomicString propName = v8ValueToAtomicWebCoreString(name);
@@ -506,7 +506,7 @@
// Search IDL functions defined in the prototype
if (!info.Holder()->GetRealNamedProperty(name).IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
// Search named items in the document.
Document* doc = frame->document();
@@ -522,7 +522,7 @@
}
}
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DataViewCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DataViewCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DataViewCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -107,7 +107,7 @@
imp->setInt8(byteOffset, static_cast<int8_t>(value), ec);
if (UNLIKELY(ec))
return V8Proxy::setDOMException(ec, args.GetIsolate());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
v8::Handle<v8::Value> V8DataView::setUint8Callback(const v8::Arguments& args)
@@ -123,7 +123,7 @@
imp->setUint8(byteOffset, static_cast<uint8_t>(value), ec);
if (UNLIKELY(ec))
return V8Proxy::setDOMException(ec, args.GetIsolate());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
} // namespace WebCore
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DeviceMotionEventCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DeviceMotionEventCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DeviceMotionEventCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -175,7 +175,7 @@
double interval = args[6]->NumberValue();
RefPtr<DeviceMotionData> deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval);
imp->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
} // namespace WebCore
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -94,7 +94,7 @@
bool absolute = args[6]->BooleanValue();
RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);
imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
} // namespace WebCore
Modified: trunk/Source/WebCore/bindings/v8/custom/V8DirectoryEntryCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8DirectoryEntryCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8DirectoryEntryCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -55,7 +55,7 @@
STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<WithUndefinedOrNullCheck>, path, args[0]);
if (args.Length() <= 1) {
imp->getDirectory(path);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
RefPtr<WebKitFlags> flags;
if (!isUndefinedOrNull(args[1]) && args[1]->IsObject()) {
@@ -85,7 +85,7 @@
errorCallback = V8ErrorCallback::create(args[3], getScriptExecutionContext());
}
imp->getDirectory(path, flags, successCallback, errorCallback);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
v8::Handle<v8::Value> V8DirectoryEntry::getFileCallback(const v8::Arguments& args)
@@ -99,7 +99,7 @@
STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<WithUndefinedOrNullCheck>, path, args[0]);
if (args.Length() <= 1) {
imp->getFile(path);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
RefPtr<WebKitFlags> flags;
if (!isUndefinedOrNull(args[1]) && args[1]->IsObject()) {
@@ -129,7 +129,7 @@
errorCallback = V8ErrorCallback::create(args[3], getScriptExecutionContext());
}
imp->getFile(path, flags, successCallback, errorCallback);
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -47,7 +47,7 @@
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);
@@ -76,9 +76,9 @@
INC_STATS("DOM.HTMLAllCollection.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();
HTMLAllCollection* imp = V8HTMLAllCollection::toNative(info.Holder());
return getNamedItems(imp, v8ValueToAtomicWebCoreString(name), info.GetIsolate());
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -49,7 +49,7 @@
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,9 +65,9 @@
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, v8ValueToAtomicWebCoreString(name), info.GetIsolate());
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -83,11 +83,11 @@
v8::Handle<v8::Value> V8HTMLDocument::GetNamedProperty(HTMLDocument* htmlDocument, const AtomicString& key, v8::Isolate* isolate)
{
if (!htmlDocument->hasNamedItem(key.impl()) && !htmlDocument->hasExtraNamedItem(key.impl()))
- return v8::Handle<v8::Value>();
+ return v8Undefined();
RefPtr<HTMLCollection> items = htmlDocument->documentNamedItems(key);
if (items->isEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
if (items->hasExactlyOneItem()) {
Node* node = items->item(0);
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -48,7 +48,7 @@
RefPtr<Node> formElement = form->elements()->item(index);
if (!formElement)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(formElement.release(), info.GetIsolate());
}
@@ -65,7 +65,7 @@
Vector<RefPtr<Node> > elements;
imp->getNamedElements(v, elements);
if (elements.isEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
// Second call may return different results from the first call,
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -57,7 +57,7 @@
if (Frame* frame = doc->frame())
return toV8(frame->domWindow(), info.GetIsolate());
}
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
} // namespace WebCore
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -119,7 +119,7 @@
RefPtr<Node> result = collection->item(index);
if (!result)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(result.release(), info.GetIsolate());
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -50,11 +50,11 @@
HTMLPlugInElement* imp = C::toNative(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return npObjectGetNamedProperty(instance, name, info);
}
@@ -65,11 +65,11 @@
HTMLPlugInElement* imp = C::toNative(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return npObjectSetNamedProperty(instance, name, value, info);
}
@@ -135,11 +135,11 @@
HTMLPlugInElement* imp = C::toNative(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return npObjectGetIndexedProperty(instance, index, info);
}
@@ -151,11 +151,11 @@
HTMLPlugInElement* imp = C::toNative(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return npObjectSetIndexedProperty(instance, index, value, info);
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -51,7 +51,7 @@
ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder()));
RefPtr<Node> result = V8HTMLSelectElement::toNative(info.Holder())->item(index);
if (!result)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(result.release(), info.GetIsolate());
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -148,7 +148,7 @@
v8::Handle<v8::Value> V8Location::reloadAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.Location.reload._get");
- static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::reloadCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::reloadCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
v8::Handle<v8::Object> holder = V8DOMWrapper::lookupDOMWrapper(V8Location::GetTemplate(), info.This());
if (holder.IsEmpty()) {
// can only reach here by 'object.__proto__.func', and it should passed
@@ -157,7 +157,7 @@
}
Location* imp = V8Location::toNative(holder);
if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
- static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::reloadCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::reloadCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
return sharedTemplate->GetFunction();
}
return privateTemplate->GetFunction();
@@ -166,7 +166,7 @@
v8::Handle<v8::Value> V8Location::replaceAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.Location.replace._get");
- static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::replaceCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::replaceCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
v8::Handle<v8::Object> holder = V8DOMWrapper::lookupDOMWrapper(V8Location::GetTemplate(), info.This());
if (holder.IsEmpty()) {
// can only reach here by 'object.__proto__.func', and it should passed
@@ -175,7 +175,7 @@
}
Location* imp = V8Location::toNative(holder);
if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
- static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::replaceCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::replaceCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
return sharedTemplate->GetFunction();
}
return privateTemplate->GetFunction();
@@ -185,7 +185,7 @@
{
INC_STATS("DOM.Location.assign._get");
static v8::Persistent<v8::FunctionTemplate> privateTemplate =
- v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::assignCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::assignCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
v8::Handle<v8::Object> holder = V8DOMWrapper::lookupDOMWrapper(V8Location::GetTemplate(), info.This());
if (holder.IsEmpty()) {
// can only reach here by 'object.__proto__.func', and it should passed
@@ -194,7 +194,7 @@
}
Location* imp = V8Location::toNative(holder);
if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
- static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::assignCallback, v8::Handle<v8::Value>(), v8::Signature::New(V8Location::GetRawTemplate())));
+ static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(V8Location::assignCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate())));
return sharedTemplate->GetFunction();
}
return privateTemplate->GetFunction();
Modified: trunk/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -49,7 +49,7 @@
NamedNodeMap* imp = V8NamedNodeMap::toNative(info.Holder());
RefPtr<Node> result = imp->item(index);
if (!result)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(result.release(), info.GetIsolate());
}
@@ -59,14 +59,14 @@
INC_STATS("DOM.NamedNodeMap.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();
NamedNodeMap* imp = V8NamedNodeMap::toNative(info.Holder());
RefPtr<Node> result = imp->getNamedItem(toWebCoreString(name));
if (!result)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(result.release(), info.GetIsolate());
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8NodeListCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8NodeListCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8NodeListCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -55,7 +55,7 @@
RefPtr<Node> result = list->itemWithName(key);
if (!result)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(result.release(), info.GetIsolate());
}
Modified: trunk/Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -96,7 +96,7 @@
return V8Proxy::setDOMException(ec, args.GetIsolate());
wrapper->commitChange();
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
} // namespace WebCore
Modified: trunk/Source/WebCore/bindings/v8/custom/V8StorageCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8StorageCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8StorageCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -61,7 +61,7 @@
if (name != "length" && storage->contains(name))
return v8String(storage->getItem(name), info.GetIsolate());
- return v8::Handle<v8::Value>();
+ return v8Undefined();
}
v8::Handle<v8::Value> V8Storage::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info)
@@ -75,7 +75,7 @@
{
INC_STATS("DOM.Storage.NamedPropertyGetter");
if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return storageGetter(name, info);
}
@@ -103,7 +103,7 @@
return v8Value;
if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(v8Name).IsEmpty())
- return v8::Handle<v8::Value>();
+ return v8Undefined();
ExceptionCode ec = 0;
storage->setItem(name, value, ec);
Modified: trunk/Source/WebCore/bindings/v8/custom/V8StyleSheetListCustom.cpp (124983 => 124984)
--- trunk/Source/WebCore/bindings/v8/custom/V8StyleSheetListCustom.cpp 2012-08-08 04:59:28 UTC (rev 124983)
+++ trunk/Source/WebCore/bindings/v8/custom/V8StyleSheetListCustom.cpp 2012-08-08 05:02:35 UTC (rev 124984)
@@ -44,13 +44,13 @@
INC_STATS("DOM.StyleSheetList.NamedPropertyGetter");
if (info.Holder()->HasRealNamedProperty(name))
- return v8::Handle<v8::Value>();
+ return v8Undefined();
// Search style sheet.
StyleSheetList* imp = V8StyleSheetList::toNative(info.Holder());
HTMLStyleElement* item = imp->getNamedItem(toWebCoreString(name));
if (!item)
- return v8::Handle<v8::Value>();
+ return v8Undefined();
return toV8(item->sheet(), info.GetIsolate());
}