Index: Source/core/accessibility/AXMenuList.h |
diff --git a/Source/core/accessibility/AXMenuList.h b/Source/core/accessibility/AXMenuList.h |
index 967ff96a8b5389798c5f95ec5dc991bd0467e8a3..b7e3be0863f83e78e7aabce3d53c6fbb3830d54e 100644 |
--- a/Source/core/accessibility/AXMenuList.h |
+++ b/Source/core/accessibility/AXMenuList.h |
@@ -55,11 +55,7 @@ private: |
virtual void childrenChanged() OVERRIDE; |
}; |
-inline AXMenuList* toAXMenuList(AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMenuList()); |
- return static_cast<AXMenuList*>(object); |
-} |
+DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, isMenuList()); |
} // namespace WebCore |