Index: Source/core/accessibility/AXNodeObject.h |
diff --git a/Source/core/accessibility/AXNodeObject.h b/Source/core/accessibility/AXNodeObject.h |
index f2287a228a1640dd25196dbcaa15b5f71b6bdabe..829aaf1bc76b27267f977a2c666b14326566bec0 100644 |
--- a/Source/core/accessibility/AXNodeObject.h |
+++ b/Source/core/accessibility/AXNodeObject.h |
@@ -213,20 +213,7 @@ private: |
float stepValueForRange() const; |
}; |
-inline AXNodeObject* toAXNodeObject(AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXNodeObject()); |
- return static_cast<AXNodeObject*>(object); |
-} |
- |
-inline const AXNodeObject* toAXNodeObject(const AXObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXNodeObject()); |
- return static_cast<const AXNodeObject*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toAXNodeObject(const AXNodeObject*); |
+DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); |
} // namespace WebCore |