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

Unified Diff: Source/core/accessibility/AXMenuList.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/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

Powered by Google App Engine
This is Rietveld 408576698