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

Unified Diff: Source/core/accessibility/AXTableColumn.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/AXTableColumn.h
diff --git a/Source/core/accessibility/AXTableColumn.h b/Source/core/accessibility/AXTableColumn.h
index 8061b1d310b8e42930c7efa3d44602e7c1e55b0e..9da318774da2c36ae9d0a0081cbf680f8fe4fdab 100644
--- a/Source/core/accessibility/AXTableColumn.h
+++ b/Source/core/accessibility/AXTableColumn.h
@@ -65,20 +65,7 @@ private:
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
-inline AXTableColumn* toAXTableColumn(AXObject* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCol());
- return static_cast<AXTableColumn*>(object);
-}
-
-inline const AXTableColumn* toAXTableColumn(const AXObject* object)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCol());
- return static_cast<const AXTableColumn*>(object);
-}
-
-// This will catch anyone doing an unnecessary cast.
-void toAXTableColumn(const AXTableColumn*);
+DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698