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

Unified Diff: Source/core/accessibility/AXMockObject.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/AXMockObject.h
diff --git a/Source/core/accessibility/AXMockObject.h b/Source/core/accessibility/AXMockObject.h
index 52aee814180880579f831df5253aa84c410f0a0b..edd6179713c98bc937bcb5b160196442a7fa0439 100644
--- a/Source/core/accessibility/AXMockObject.h
+++ b/Source/core/accessibility/AXMockObject.h
@@ -55,11 +55,7 @@ private:
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
-inline AXMockObject* toAXMockObject(AXObject* object)
-{
- ASSERT(!object || object->isMockObject());
- return static_cast<AXMockObject*>(object);
-}
+DEFINE_AX_OBJECT_TYPE_CASTS(AXMockObject, isMockObject());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698