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

Unified Diff: Source/core/accessibility/AXScrollView.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/AXScrollView.h
diff --git a/Source/core/accessibility/AXScrollView.h b/Source/core/accessibility/AXScrollView.h
index e892a492566548df2117e3b63cf68ba9d18717f5..cf7e291024e41d7d34f14fba1cf068b327e37625 100644
--- a/Source/core/accessibility/AXScrollView.h
+++ b/Source/core/accessibility/AXScrollView.h
@@ -81,14 +81,7 @@ private:
bool m_childrenDirty;
};
-inline AXScrollView* toAXScrollView(AXObject* object)
-{
- ASSERT(!object || object->isAXScrollView());
- if (!object->isAXScrollView())
- return 0;
-
- return static_cast<AXScrollView*>(object);
-}
+DEFINE_AX_OBJECT_TYPE_CASTS(AXScrollView, isAXScrollView());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698