Index: Source/core/accessibility/AXTableRow.h |
diff --git a/Source/core/accessibility/AXTableRow.h b/Source/core/accessibility/AXTableRow.h |
index de1f39765b6c5f0a9547e9de4ae7244b62354db9..90eca7fba49e895f67ebd85edae81e1976805bb5 100644 |
--- a/Source/core/accessibility/AXTableRow.h |
+++ b/Source/core/accessibility/AXTableRow.h |
@@ -64,20 +64,7 @@ private: |
virtual bool computeAccessibilityIsIgnored() const OVERRIDE; |
}; |
-inline AXTableRow* toAXTableRow(AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow()); |
- return static_cast<AXTableRow*>(object); |
-} |
- |
-inline const AXTableRow* toAXTableRow(const AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow()); |
- return static_cast<const AXTableRow*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toAXTableRow(const AXTableRow*); |
+DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow()); |
} // namespace WebCore |