• ap@webkit.org's avatar
    Reviewed by Darin Adler. · c5e3f1b1
    ap@webkit.org authored
            https://bugs.webkit.org/show_bug.cgi?id=22030
            Make EventNames usable from multiple threads
    
            * platform/text/AtomicString.cpp:
            (WebCore::stringTable):
            (WebCore::AtomicString::add):
            (WebCore::AtomicString::remove):
            (WebCore::AtomicString::find):
            (WebCore::AtomicString::init):
            * platform/text/AtomicString.h:
            Atomic string table is now per-thread. Individual strings cannot be shared between threads,
            so global AtomicString constants cannot be used from threads other than the main one.
    
            * dom/EventNames.cpp:
            (WebCore::EventNames::EventNames):
            (WebCore::eventNames):
            (WebCore::EventNames::init):
            * dom/EventNames.h:
            Made EventNames a ThreadSpecific struct. Individual event names are now accessed as
            eventNames().fooEvent, not EventNames::fooEvent. This makes EventNames usable from all
            threads.
    
            * <Many files>: Access event names via eventNames() function.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c5e3f1b1
ChangeLog 382 KB