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

Unified Diff: Source/bindings/v8/CustomElementHelpers.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 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/v8/CustomElementHelpers.h
diff --git a/Source/bindings/v8/CustomElementHelpers.h b/Source/bindings/v8/CustomElementHelpers.h
index 035d59c0d88cada9b909a507b43b447bbd1375a0..b6d11cb7908a7c7dfbedd24a755270e3fd704c30 100644
--- a/Source/bindings/v8/CustomElementHelpers.h
+++ b/Source/bindings/v8/CustomElementHelpers.h
@@ -31,6 +31,7 @@
#ifndef CustomElementHelpers_h
#define CustomElementHelpers_h
+#include "V8Element.h"
#include "bindings/v8/DOMDataStore.h"
#include "core/dom/Element.h"
#include "wtf/PassRefPtr.h"
@@ -76,7 +77,7 @@ private:
inline v8::Handle<v8::Object> CustomElementHelpers::wrap(Element* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate, const CreateWrapperFunction& createWrapper)
{
ASSERT(impl);
- ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
+ ASSERT(DOMDataStore::getWrapper<V8Element>(impl, isolate).IsEmpty());
return CustomElementHelpers::createWrapper(impl, creationContext, isolate, createWrapper);
}

Powered by Google App Engine
This is Rietveld 408576698