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

Unified Diff: Source/core/accessibility/AXTableRow.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/AXTableRow.h
diff --git a/Source/core/accessibility/AXTableRow.h b/Source/core/accessibility/AXTableRow.h
index de1f39765b6c5f0a9547e9de4ae7244b62354db9..90eca7fba49e895f67ebd85edae81e1976805bb5 100644
--- a/Source/core/accessibility/AXTableRow.h
+++ b/Source/core/accessibility/AXTableRow.h
@@ -64,20 +64,7 @@ private:
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
-inline AXTableRow* toAXTableRow(AXObject* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
- return static_cast<AXTableRow*>(object);
-}
-
-inline const AXTableRow* toAXTableRow(const AXObject* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableRow());
- return static_cast<const AXTableRow*>(object);
-}
-
-// This will catch anyone doing an unnecessary cast.
-void toAXTableRow(const AXTableRow*);
+DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow());
} // namespace WebCore
« Source/core/accessibility/AXListBoxOption.h ('K') | « Source/core/accessibility/AXTableColumn.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698