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

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

Issue 104593005: Introduce DEFINE_INLINE_BOX_TYPE_CASTS, and use it (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/rendering/InlineTextBox.h ('k') | Source/core/rendering/svg/SVGInlineTextBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGInlineFlowBox.h
diff --git a/Source/core/rendering/svg/SVGInlineFlowBox.h b/Source/core/rendering/svg/SVGInlineFlowBox.h
index 3623a4ace200ce3f93260ed8cf0abdf05221dcd3..e76a9ccdafc8e7ce0822ab1fd0e8a00d09e7621f 100644
--- a/Source/core/rendering/svg/SVGInlineFlowBox.h
+++ b/Source/core/rendering/svg/SVGInlineFlowBox.h
@@ -50,11 +50,7 @@ private:
float m_logicalHeight;
};
-inline SVGInlineFlowBox* toSVGInlineFlowBox(InlineBox* box)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!box || box->isSVGInlineFlowBox());
- return static_cast<SVGInlineFlowBox*>(box);
-}
+DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox);
} // namespace WebCore
« no previous file with comments | « Source/core/rendering/InlineTextBox.h ('k') | Source/core/rendering/svg/SVGInlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698