diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/dom/EventNames.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/dom/EventNames.cpp')
-rw-r--r-- | WebCore/dom/EventNames.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/WebCore/dom/EventNames.cpp b/WebCore/dom/EventNames.cpp index 22a716d..00191ab 100644 --- a/WebCore/dom/EventNames.cpp +++ b/WebCore/dom/EventNames.cpp @@ -23,21 +23,8 @@ #include "config.h" #include "EventNames.h" -#include <wtf/Threading.h> - -#if ENABLE(WORKERS) -#include <wtf/ThreadSpecific.h> -using namespace WTF; -#endif - namespace WebCore { -#if ENABLE(WORKERS) -static ThreadSpecific<EventNames>* staticEventNames; -#else -static EventNames* staticEventNames; -#endif - #define INITIALIZE_EVENT_NAME(name) \ , name##Event(#name) EventNames::EventNames() @@ -46,29 +33,4 @@ DOM_EVENT_NAMES_FOR_EACH(INITIALIZE_EVENT_NAME) { } -EventNames& eventNames() -{ -#if ENABLE(WORKERS) - return **staticEventNames; -#else - return *staticEventNames; -#endif -} - -void EventNames::init() -{ - if (!staticEventNames) { - // Initialization is not thread safe, so this function must be called from the main thread first. - ASSERT(isMainThread()); - - AtomicString::init(); - -#if ENABLE(WORKERS) - staticEventNames = new ThreadSpecific<EventNames>; -#else - staticEventNames = new EventNames; -#endif - } -} - } |