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

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

Issue 26261009: Add toSVGColor|Paint() to cleanup static_cast<>, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cover static_cast<const SVGPaint|Color*> Created 7 years, 2 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/CSSValue.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 77f7c6fd6b58f8faa0747bc6b134d15b794b774e..3db5c35477c627679d7955cac51919145868d19a 100644
--- a/Source/bindings/v8/custom/V8CSSValueCustom.cpp
+++ b/Source/bindings/v8/custom/V8CSSValueCustom.cpp
@@ -56,9 +56,9 @@ v8::Handle<v8::Object> wrap(CSSValue* impl, v8::Handle<v8::Object> creationConte
if (impl->isPrimitiveValue())
return wrap(toCSSPrimitiveValue(impl), creationContext, isolate);
if (impl->isSVGPaint())
- return wrap(static_cast<SVGPaint*>(impl), creationContext, isolate);
+ return wrap(toSVGPaint(impl), creationContext, isolate);
if (impl->isSVGColor())
- return wrap(static_cast<SVGColor*>(impl), creationContext, isolate);
+ return wrap(toSVGColor(impl), creationContext, isolate);
return V8CSSValue::createWrapper(impl, creationContext, isolate);
}
« no previous file with comments | « no previous file | Source/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698