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

Unified Diff: Source/core/accessibility/AXTable.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/AXTable.h
diff --git a/Source/core/accessibility/AXTable.h b/Source/core/accessibility/AXTable.h
index 89ec2162ce02e7ec7e1945e07d7e58db900f0d95..bca782cba82da9cccef6fbacc9604710170f60c1 100644
--- a/Source/core/accessibility/AXTable.h
+++ b/Source/core/accessibility/AXTable.h
@@ -89,11 +89,7 @@ protected:
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
-inline AXTable* toAXTable(AXObject* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isAXTable());
- return static_cast<AXTable*>(object);
-}
+DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698