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

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

Issue 98693006: Generate toSVGSVG|Stop|TextContentElement() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/svg/SVGStopElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextContentElement.h
diff --git a/Source/core/svg/SVGTextContentElement.h b/Source/core/svg/SVGTextContentElement.h
index 255330e8692839481f145cb3c6a4567dfefb06d0..db0b622d8b94d20a2541d8d1a26c4330edddeed8 100644
--- a/Source/core/svg/SVGTextContentElement.h
+++ b/Source/core/svg/SVGTextContentElement.h
@@ -122,12 +122,13 @@ private:
END_DECLARE_ANIMATED_PROPERTIES
};
-inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element)
+inline bool isSVGTextContentElement(const Node& node)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent());
- return static_cast<SVGTextContentElement*>(element);
+ return node.isSVGElement() && toSVGElement(node).isTextContent();
}
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGTextContentElement);
+
} // namespace WebCore
#endif
« no previous file with comments | « Source/core/svg/SVGStopElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698