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

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

Issue 22438008: Replace static_cast with safe casting methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/editing/EditingStyle.cpp » ('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 0c862c4f8de7c3847bbdfc2849a15ceb9d701369..dfbff496df03666b599f14e2f5bbaa8c1078a24d 100644
--- a/Source/bindings/v8/custom/V8CSSValueCustom.cpp
+++ b/Source/bindings/v8/custom/V8CSSValueCustom.cpp
@@ -52,9 +52,9 @@ v8::Handle<v8::Object> wrap(CSSValue* impl, v8::Handle<v8::Object> creationConte
if (impl->isCSSFilterValue())
return wrap(static_cast<CSSFilterValue*>(impl), creationContext, isolate);
if (impl->isValueList())
- return wrap(static_cast<CSSValueList*>(impl), creationContext, isolate);
+ return wrap(toCSSValueList(impl), creationContext, isolate);
if (impl->isPrimitiveValue())
- return wrap(static_cast<CSSPrimitiveValue*>(impl), creationContext, isolate);
+ return wrap(toCSSPrimitiveValue(impl), creationContext, isolate);
if (impl->isSVGPaint())
return wrap(static_cast<SVGPaint*>(impl), creationContext, isolate);
if (impl->isSVGColor())
« no previous file with comments | « no previous file | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698