Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: Source/bindings/core/v8/custom/V8NodeCustom.cpp

Issue 375293002: Node.insertBefore and Node.appendChild do not use custom binding anymore (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Best is always good Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/custom/V8NodeCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8NodeCustom.cpp b/Source/bindings/core/v8/custom/V8NodeCustom.cpp
index 80ad75a95086a945f167ca65eb3e56db4ba1d230..eb522180efbe7f08e8539500793785fd51beeb62 100644
--- a/Source/bindings/core/v8/custom/V8NodeCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8NodeCustom.cpp
@@ -58,22 +58,6 @@ namespace WebCore {
// These functions are custom to prevent a wrapper lookup of the return value which is always
// part of the arguments.
-void V8Node::insertBeforeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- v8::Handle<v8::Object> holder = info.Holder();
- Node* impl = V8Node::toNative(holder);
-
- CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
-
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "insertBefore", "Node", info.Holder(), info.GetIsolate());
- Node* newChild = V8Node::toNativeWithTypeCheck(info.GetIsolate(), info[0]);
- Node* refChild = V8Node::toNativeWithTypeCheck(info.GetIsolate(), info[1]);
- impl->insertBefore(newChild, refChild, exceptionState);
- if (exceptionState.throwIfNeeded())
- return;
- v8SetReturnValue(info, info[0]);
-}
-
void V8Node::replaceChildMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
v8::Handle<v8::Object> holder = info.Holder();

Powered by Google App Engine
This is Rietveld 408576698