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

Unified Diff: Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp

Issue 305963014: Introduce and use type casting functions for several HTMLCollection types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/core/dom/ClassCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp
diff --git a/Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp b/Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp
index b67355a1ddff41f112f685e3eef9b794cc246f8c..05883e60ceefbb521beb33f07ceb2f2a57b31ee3 100644
--- a/Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp
+++ b/Source/bindings/v8/custom/V8HTMLCollectionCustom.cpp
@@ -45,11 +45,11 @@ v8::Handle<v8::Object> wrap(HTMLCollection* impl, v8::Handle<v8::Object> creatio
ASSERT(impl);
switch (impl->type()) {
case FormControls:
- return wrap(static_cast<HTMLFormControlsCollection*>(impl), creationContext, isolate);
+ return wrap(toHTMLFormControlsCollection(impl), creationContext, isolate);
case SelectOptions:
- return wrap(static_cast<HTMLOptionsCollection*>(impl), creationContext, isolate);
+ return wrap(toHTMLOptionsCollection(impl), creationContext, isolate);
case DocAll:
- return wrap(static_cast<HTMLAllCollection*>(impl), creationContext, isolate);
+ return wrap(toHTMLAllCollection(impl), creationContext, isolate);
default:
break;
}
« no previous file with comments | « no previous file | Source/core/dom/ClassCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698