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

Unified Diff: Source/core/svg/SVGFilterElement.h

Issue 18233024: Use toSVGFilterElement instead of static_cast<..> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 | « Source/core/rendering/svg/SVGResources.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFilterElement.h
diff --git a/Source/core/svg/SVGFilterElement.h b/Source/core/svg/SVGFilterElement.h
index f3429fcf61a055e7049d3a9a1bb666c0f49183c8..e384ea9080e1889fb693af4efa7a95249adb042c 100644
--- a/Source/core/svg/SVGFilterElement.h
+++ b/Source/core/svg/SVGFilterElement.h
@@ -75,10 +75,10 @@ private:
END_DECLARE_ANIMATED_PROPERTIES
};
-inline SVGFilterElement* toSVGFilterElement(SVGElement* element)
+inline SVGFilterElement* toSVGFilterElement(Node* node)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::filterTag));
- return static_cast<SVGFilterElement*>(element);
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterTag));
+ return static_cast<SVGFilterElement*>(node);
}
}
« no previous file with comments | « Source/core/rendering/svg/SVGResources.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698