v8bindings: Remove ToV8(DOMWindow*) hack
A set of overloading of ToV8({ScriptWrappable,EventTarget,Node, DOMWindow}*) has been expected to be used for each class, however, it turned out that ToV8(ScriptWrappable* value) is used even when |value| is a DOMWindow. Example case) void Func(ScriptWrappable* value) { ToV8(value); // resolved to ToV8(ScriptWrappable*) } Func(window); // ToV8(ScriptWrappable*) is invoked This patch removes ToV8(DOMWindow*) overloading and moves the special-handling of DOMWindow from ToV8 into DOMWindow::Wrap so that the special-handling always works. Change-Id: I483ba3293ce6736428947525e7a13d38c6071783 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1996111Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#737732}
Showing
Please register or sign in to comment