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

Unified Diff: Source/core/rendering/svg/SVGInlineTextBox.h

Issue 18309003: Inroduce toSVGInlineTextBox, and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/SVGInlineFlowBox.cpp ('k') | Source/core/rendering/svg/SVGRenderTreeAsText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGInlineTextBox.h
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.h b/Source/core/rendering/svg/SVGInlineTextBox.h
index 5ef6a9a5a941194e553c191657cb74ebafb81d62..bd85d3f49c507afd29e6b396b4ee5be5532ee971 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.h
+++ b/Source/core/rendering/svg/SVGInlineTextBox.h
@@ -88,6 +88,12 @@ private:
Vector<SVGTextFragment> m_textFragments;
};
+inline SVGInlineTextBox* toSVGInlineTextBox(InlineBox* box)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!box || box->isSVGInlineTextBox());
+ return static_cast<SVGInlineTextBox*>(box);
+}
+
} // namespace WebCore
#endif // SVGInlineTextBox_h
« no previous file with comments | « Source/core/rendering/svg/SVGInlineFlowBox.cpp ('k') | Source/core/rendering/svg/SVGRenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698