Index: Source/core/accessibility/AXImageMapLink.h |
diff --git a/Source/core/accessibility/AXImageMapLink.h b/Source/core/accessibility/AXImageMapLink.h |
index 7133d9d375708f8569259dabb9dde4854989b503..08276a8e30e22ce96775feaeb1cc85a8cb10986f 100644 |
--- a/Source/core/accessibility/AXImageMapLink.h |
+++ b/Source/core/accessibility/AXImageMapLink.h |
@@ -75,20 +75,7 @@ private: |
virtual bool isImageMapLink() const OVERRIDE { return true; } |
}; |
-inline AXImageMapLink* toAXImageMapLink(AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isImageMapLink()); |
- return static_cast<AXImageMapLink*>(object); |
-} |
- |
-inline const AXImageMapLink* toAXImageMapLink(const AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isImageMapLink()); |
- return static_cast<const AXImageMapLink*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toAXImageMapLink(const AXImageMapLink*); |
+DEFINE_AX_OBJECT_TYPE_CASTS(AXImageMapLink, isImageMapLink()); |
} // namespace WebCore |