• akling@apple.com's avatar
    Reduce repetitive EventTarget subclassing. · 63ac1309
    akling@apple.com authored
    Reviewed by Antti Koivisto.
    Add a EventTargetWithInlineData helper class to EventTarget.h.
    It's a simple subclass with an EventTargetData member and FINAL
    eventTargetData()/ensureEventTargetData() overrides.
    Turns out that this fits almost every use case except Node and
    Inlined most of the FINAL EventTarget overrides since they will
    be called on tight pointers by generated bindings code and this
    removes the need for virtual dispatch.
    Spammed OVERRIDE FINAL as appropriate, we can't make the whole
    classes FINAL until bug 121747 is fixed, so added FIXMEs.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
EventSource.h 4.54 KB