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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp

Issue 2697543003: Remove ToEventTarget (Closed)
Patch Set: Code review changes Created 3 years, 10 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: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
index e34a8b21e095d66fdae733400edb334962736de8..2f3ed9fc2b99442aec45b92025575b18201427fa 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -792,14 +792,6 @@ Frame* toFrameIfNotDetached(v8::Local<v8::Context> context) {
return nullptr;
}
-EventTarget* toEventTarget(v8::Isolate* isolate, v8::Local<v8::Value> value) {
- // We need to handle a DOMWindow specially, because a DOMWindow wrapper
- // exists on a prototype chain of v8Value.
- if (DOMWindow* window = toDOMWindow(isolate, value))
- return window;
- return V8EventTarget::toImplWithTypeCheck(isolate, value);
-}
-
void toFlexibleArrayBufferView(v8::Isolate* isolate,
v8::Local<v8::Value> value,
FlexibleArrayBufferView& result,

Powered by Google App Engine
This is Rietveld 408576698