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

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

Issue 2683993003: Move toEventTarget to EventTarget (Closed)
Patch Set: Format, remove header 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 2511fed997fea08cadb67a20585b8969ea65230d..488a7d0bc8746707ee088ca7390efc27d8e7b930 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -799,7 +799,7 @@ EventTarget* toEventTarget(v8::Isolate* isolate, v8::Local<v8::Value> value) {
return static_cast<EventTarget*>(window);
jbroman 2017/02/10 16:04:27 nit: While you're here, you could remove this stat
adithyas 2017/02/10 18:39:49 Removed it.
if (V8EventTarget::hasInstance(value, isolate)) {
v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast(value);
- return toWrapperTypeInfo(object)->toEventTarget(object);
+ return EventTarget::toEventTarget(object);
jbroman 2017/02/10 16:03:16 Given that, you can inline the other toEventTarget
adithyas 2017/02/10 18:39:49 Done! I'll remove the wrapperType eventTargetInher
}
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698