Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / core / v8 / custom / V8CSSValueCustom.cpp
index 451d292..15d54c8 100644 (file)
 
 namespace blink {
 
-v8::Handle<v8::Object> wrap(CSSValue* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+v8::Handle<v8::Object> wrapCustom(CSSValue* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
 {
     ASSERT(impl);
     if (impl->isTransformValue())
-        return wrap(toCSSTransformValue(impl), creationContext, isolate);
+        return impl->wrap(creationContext, isolate, &V8WebKitCSSTransformValue::wrapperTypeInfo);
     if (impl->isFilterValue())
-        return wrap(toCSSFilterValue(impl), creationContext, isolate);
+        return impl->wrap(creationContext, isolate, &V8WebKitCSSFilterValue::wrapperTypeInfo);
     if (impl->isValueList())
-        return wrap(toCSSValueList(impl), creationContext, isolate);
+        return impl->wrap(creationContext, isolate, &V8CSSValueList::wrapperTypeInfo);
     if (impl->isPrimitiveValue())
-        return wrap(toCSSPrimitiveValue(impl), creationContext, isolate);
-    return V8CSSValue::createWrapper(impl, creationContext, isolate);
+        return impl->wrap(creationContext, isolate, &V8CSSPrimitiveValue::wrapperTypeInfo);
+    return impl->wrap(creationContext, isolate, &V8CSSValue::wrapperTypeInfo);
 }
 
 } // namespace blink