Index: Source/core/rendering/svg/SVGInlineFlowBox.h |
diff --git a/Source/core/rendering/svg/SVGInlineFlowBox.h b/Source/core/rendering/svg/SVGInlineFlowBox.h |
index ddddb65350c2006b90120216cdb2b01fb4d931b9..3623a4ace200ce3f93260ed8cf0abdf05221dcd3 100644 |
--- a/Source/core/rendering/svg/SVGInlineFlowBox.h |
+++ b/Source/core/rendering/svg/SVGInlineFlowBox.h |
@@ -50,6 +50,12 @@ private: |
float m_logicalHeight; |
}; |
+inline SVGInlineFlowBox* toSVGInlineFlowBox(InlineBox* box) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!box || box->isSVGInlineFlowBox()); |
+ return static_cast<SVGInlineFlowBox*>(box); |
+} |
+ |
} // namespace WebCore |
#endif // SVGInlineFlowBox_h |