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

Unified Diff: Source/core/accessibility/AXImageMapLink.h

Issue 31463002: Introduce DEFINE_AX_OBJECT_TYPE_CASTS to replace manual toFoo() in accessibility child class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months 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
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
« no previous file with comments | « no previous file | Source/core/accessibility/AXListBoxOption.h » ('j') | Source/core/accessibility/AXListBoxOption.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698