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

Unified Diff: Source/core/rendering/InlineFlowBox.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/InlineBox.h ('k') | Source/core/rendering/InlineTextBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/InlineFlowBox.h
diff --git a/Source/core/rendering/InlineFlowBox.h b/Source/core/rendering/InlineFlowBox.h
index 3ada554086019a982a50f835809d0aa87d74aa8a..066098fdac87d9e6129ee51eec83fcaa7a8dd4bb 100644
--- a/Source/core/rendering/InlineFlowBox.h
+++ b/Source/core/rendering/InlineFlowBox.h
@@ -350,20 +350,7 @@ private:
#endif
};
-inline InlineFlowBox* toInlineFlowBox(InlineBox* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isInlineFlowBox());
- return static_cast<InlineFlowBox*>(object);
-}
-
-inline const InlineFlowBox* toInlineFlowBox(const InlineBox* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isInlineFlowBox());
- return static_cast<const InlineFlowBox*>(object);
-}
-
-// This will catch anyone doing an unnecessary cast.
-void toInlineFlowBox(const InlineFlowBox*);
+DEFINE_INLINE_BOX_TYPE_CASTS(InlineFlowBox);
#ifdef NDEBUG
inline void InlineFlowBox::checkConsistency() const
« no previous file with comments | « Source/core/rendering/InlineBox.h ('k') | Source/core/rendering/InlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698