| Index: Source/bindings/v8/CustomElementConstructorBuilder.cpp
|
| diff --git a/Source/bindings/v8/CustomElementConstructorBuilder.cpp b/Source/bindings/v8/CustomElementConstructorBuilder.cpp
|
| index fe58a03e4c7b07f0295d27816e532a18f1b602bf..079d5b37daa78bb6a46995241da79aeb2cc8c8a9 100644
|
| --- a/Source/bindings/v8/CustomElementConstructorBuilder.cpp
|
| +++ b/Source/bindings/v8/CustomElementConstructorBuilder.cpp
|
| @@ -251,32 +251,32 @@ bool CustomElementConstructorBuilder::hasValidPrototypeChainFor(const WrapperTyp
|
| return false;
|
| }
|
|
|
| -static void constructCustomElement(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +static void constructCustomElement(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - v8::Isolate* isolate = args.GetIsolate();
|
| + v8::Isolate* isolate = info.GetIsolate();
|
|
|
| - if (!args.IsConstructCall()) {
|
| + if (!info.IsConstructCall()) {
|
| throwTypeError("DOM object constructor cannot be called as a function.", isolate);
|
| return;
|
| }
|
|
|
| - if (args.Length() > 0) {
|
| + if (info.Length() > 0) {
|
| throwUninformativeAndGenericTypeError(isolate);
|
| return;
|
| }
|
|
|
| - Document* document = V8Document::toNative(args.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementDocument(isolate)).As<v8::Object>());
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, namespaceURI, args.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementNamespaceURI(isolate)));
|
| - V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, tagName, args.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementTagName(isolate)));
|
| - v8::Handle<v8::Value> maybeType = args.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementType(isolate));
|
| + Document* document = V8Document::toNative(info.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementDocument(isolate)).As<v8::Object>());
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, namespaceURI, info.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementNamespaceURI(isolate)));
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, tagName, info.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementTagName(isolate)));
|
| + v8::Handle<v8::Value> maybeType = info.Callee()->GetHiddenValue(V8HiddenPropertyName::customElementType(isolate));
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, maybeType);
|
|
|
| - ExceptionState es(args.GetIsolate());
|
| + ExceptionState es(info.GetIsolate());
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| RefPtr<Element> element = document->createElementNS(namespaceURI, tagName, maybeType->IsNull() ? nullAtom : type, es);
|
| if (es.throwIfNeeded())
|
| return;
|
| - v8SetReturnValueFast(args, element.release(), document);
|
| + v8SetReturnValueFast(info, element.release(), document);
|
| }
|
|
|
| } // namespace WebCore
|
|
|