| Index: Source/bindings/v8/custom/V8NodeCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8NodeCustom.cpp b/Source/bindings/v8/custom/V8NodeCustom.cpp
|
| index 51fa872a82416a2c852165c2bac675d55ec2658b..76b3e67a201be36bb7bb58e2d2d3dc00453f6794 100644
|
| --- a/Source/bindings/v8/custom/V8NodeCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8NodeCustom.cpp
|
| @@ -66,11 +66,11 @@ void V8Node::insertBeforeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
|
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| Node* newChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0;
|
| Node* refChild = V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0;
|
| - imp->insertBefore(newChild, refChild, es);
|
| - if (es.throwIfNeeded())
|
| + imp->insertBefore(newChild, refChild, exceptionState);
|
| + if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, info[0]);
|
| }
|
| @@ -82,11 +82,11 @@ void V8Node::replaceChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
|
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| Node* newChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0;
|
| Node* oldChild = V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0;
|
| - imp->replaceChild(newChild, oldChild, es);
|
| - if (es.throwIfNeeded())
|
| + imp->replaceChild(newChild, oldChild, exceptionState);
|
| + if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, info[1]);
|
| }
|
| @@ -98,10 +98,10 @@ void V8Node::removeChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
|
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| Node* oldChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0;
|
| - imp->removeChild(oldChild, es);
|
| - if (es.throwIfNeeded())
|
| + imp->removeChild(oldChild, exceptionState);
|
| + if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, info[0]);
|
| }
|
| @@ -113,10 +113,10 @@ void V8Node::appendChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
|
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| Node* newChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0;
|
| - imp->appendChild(newChild, es);
|
| - if (es.throwIfNeeded())
|
| + imp->appendChild(newChild, exceptionState);
|
| + if (exceptionState.throwIfNeeded())
|
| return;
|
| v8SetReturnValue(info, info[0]);
|
| }
|
|
|