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

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

Issue 25497002: Generate toCSSFooValue() for CSS child values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/css/CSSArrayFunctionValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8CSSValueCustom.cpp
diff --git a/Source/bindings/v8/custom/V8CSSValueCustom.cpp b/Source/bindings/v8/custom/V8CSSValueCustom.cpp
index dfbff496df03666b599f14e2f5bbaa8c1078a24d..77f7c6fd6b58f8faa0747bc6b134d15b794b774e 100644
--- a/Source/bindings/v8/custom/V8CSSValueCustom.cpp
+++ b/Source/bindings/v8/custom/V8CSSValueCustom.cpp
@@ -45,12 +45,12 @@ namespace WebCore {
v8::Handle<v8::Object> wrap(CSSValue* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
- if (impl->isCSSTransformValue())
- return wrap(static_cast<CSSTransformValue*>(impl), creationContext, isolate);
- if (impl->isCSSMixFunctionValue())
- return wrap(static_cast<CSSMixFunctionValue*>(impl), creationContext, isolate);
- if (impl->isCSSFilterValue())
- return wrap(static_cast<CSSFilterValue*>(impl), creationContext, isolate);
+ if (impl->isTransformValue())
+ return wrap(toCSSTransformValue(impl), creationContext, isolate);
+ if (impl->isMixFunctionValue())
+ return wrap(toCSSMixFunctionValue(impl), creationContext, isolate);
+ if (impl->isFilterValue())
+ return wrap(toCSSFilterValue(impl), creationContext, isolate);
if (impl->isValueList())
return wrap(toCSSValueList(impl), creationContext, isolate);
if (impl->isPrimitiveValue())
« no previous file with comments | « no previous file | Source/core/css/CSSArrayFunctionValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698