Generate type casting helpers for Widget classes.
<https://webkit.org/b/124120> Add a WIDGET_TYPE_CASTS macro and replace all the hand-written toFoo() helpers we had for Widget subclasses. Fixed up a handful of places that were still using static_cast. Reviewed by Antti Koivisto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 25 additions and 48 deletions