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

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

Issue 23295010: Remove toSVGStopElement(SVGElement*) because it can be covered by toSVGStopElement(Node*) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStopElement.h
diff --git a/Source/core/svg/SVGStopElement.h b/Source/core/svg/SVGStopElement.h
index 025e57dc3acb98b5c6bb1afaff03602ceafe3286..828c7f7615eaf5300d1d67a581211f375b041a95 100644
--- a/Source/core/svg/SVGStopElement.h
+++ b/Source/core/svg/SVGStopElement.h
@@ -52,16 +52,10 @@ private:
inline SVGStopElement* toSVGStopElement(Node* node)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::stopTag));
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isGradientStop());
return static_cast<SVGStopElement*>(node);
}
-inline SVGStopElement* toSVGStopElement(SVGElement* element)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isGradientStop());
- return static_cast<SVGStopElement*>(element);
-}
-
} // namespace WebCore
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698