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

Unified Diff: Source/core/svg/SVGFEComponentTransferElement.cpp

Issue 23463030: Add toSVGFEFuncR|G|B|AElement() fuctions, and use them. (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/svg/SVGFEFuncAElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEComponentTransferElement.cpp
diff --git a/Source/core/svg/SVGFEComponentTransferElement.cpp b/Source/core/svg/SVGFEComponentTransferElement.cpp
index 96cfa14000338da3b233601e8a17b85f64dfa32f..7b774987736625025420adbe57cdc02141768048 100644
--- a/Source/core/svg/SVGFEComponentTransferElement.cpp
+++ b/Source/core/svg/SVGFEComponentTransferElement.cpp
@@ -90,13 +90,13 @@ PassRefPtr<FilterEffect> SVGFEComponentTransferElement::build(SVGFilterBuilder*
for (Node* node = firstChild(); node; node = node->nextSibling()) {
if (node->hasTagName(SVGNames::feFuncRTag))
- red = static_cast<SVGFEFuncRElement*>(node)->transferFunction();
+ red = toSVGFEFuncRElement(node)->transferFunction();
else if (node->hasTagName(SVGNames::feFuncGTag))
- green = static_cast<SVGFEFuncGElement*>(node)->transferFunction();
+ green = toSVGFEFuncGElement(node)->transferFunction();
else if (node->hasTagName(SVGNames::feFuncBTag))
- blue = static_cast<SVGFEFuncBElement*>(node)->transferFunction();
+ blue = toSVGFEFuncBElement(node)->transferFunction();
else if (node->hasTagName(SVGNames::feFuncATag))
- alpha = static_cast<SVGFEFuncAElement*>(node)->transferFunction();
+ alpha = toSVGFEFuncAElement(node)->transferFunction();
}
RefPtr<FilterEffect> effect = FEComponentTransfer::create(filter, red, green, blue, alpha);
« no previous file with comments | « no previous file | Source/core/svg/SVGFEFuncAElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698