Generate Element casting helper functions
[WebKit.git] / Source / WebKit2 / WebProcess / InjectedBundle / DOM / InjectedBundleRangeHandle.cpp
index f63391b..9ac8b3c 100644 (file)
@@ -57,7 +57,7 @@ static DOMHandleCache& domHandleCache()
 
 PassRefPtr<InjectedBundleRangeHandle> InjectedBundleRangeHandle::getOrCreate(JSContextRef, JSObjectRef object)
 {
-    Range* range = toRange(toJS(object));
+    Range* range = JSRange::toWrapped(toJS(object));
     return getOrCreate(range);
 }