<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I just wanted to let you know that I have just landed the last patch porting the code base to using is&lt;&gt;() / downcast&lt;&gt;().</div><div class="">I have managed to remove the NODE_TYPE_CASTS() / TYPE_CASTS_BASE() macros so there should be no code using it anymore.</div><div class=""><br class=""></div><div class="">If you need to add is&lt;&gt;() / downcast&lt;&gt;() support for a specific class, please use the&nbsp;SPECIALIZE_TYPE_TRAITS_*() macro that is in</div><div class="">wtf/TypeCasts.h. Note however, that the template specializations are already generated for most HTML/SVG/MathML elements by</div><div class="">default so you rarely need manual traits specialization for those.</div><div class=""><br class=""></div><div class="">If you find remaining toXXX() casting functions in the code, please let me know as we don’t want to mix toXXX() and downcast&lt;&gt;().</div><div class="">Do let me know if you have improvement suggestions as well. One that is on my TODO list already is to support is&lt;&gt;(RefPtr), there are</div><div class="">not that many call sites that would benefit from this but it would be nice IMHO.</div><div class=""><br class=""></div><div class="">Kr,<br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Chris Dumez - Apple Inc.</div><div class="">Cupertino, CA</div><div class=""><br class=""></div></div></div></div></body></html>