Changeset 252179 in webkit
- Timestamp:
- Nov 7, 2019 1:52:27 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r252178 r252179 1 2019-11-07 Chris Lord <clord@igalia.com> 2 3 Indentation in ThreadGlobalData.h is incorrect 4 https://bugs.webkit.org/show_bug.cgi?id=203895 5 6 Reviewed by Žan Doberšek. 7 8 No new tests -- no change in behavior. 9 10 * platform/ThreadGlobalData.h: 11 (WebCore::ThreadGlobalData::ThreadGlobalData::cachedResourceRequestInitiators): 12 (WebCore::ThreadGlobalData::ThreadGlobalData::eventNames): 13 (WebCore::ThreadGlobalData::ThreadGlobalData::threadTimers): 14 (WebCore::ThreadGlobalData::ThreadGlobalData::qualifiedNameCache): 15 (WebCore::ThreadGlobalData::ThreadGlobalData::cachedConverterICU): 16 (WebCore::ThreadGlobalData::ThreadGlobalData::currentState const): 17 (WebCore::ThreadGlobalData::ThreadGlobalData::setCurrentState): 18 (WebCore::ThreadGlobalData::ThreadGlobalData::isInRemoveAllEventListeners const): 19 (WebCore::ThreadGlobalData::ThreadGlobalData::setIsInRemoveAllEventListeners): 20 1 21 2019-11-05 Sergio Villar Senin <svillar@igalia.com> 2 22 -
trunk/Source/WebCore/platform/ThreadGlobalData.h
r251425 r252179 38 38 namespace WebCore { 39 39 40 41 40 class QualifiedNameCache; 41 class ThreadTimers; 42 42 43 44 45 43 struct CachedResourceRequestInitiators; 44 struct EventNames; 45 struct ICUConverterWrapper; 46 46 47 47 #if USE(WEB_THREAD) 48 48 class ThreadGlobalData : public ThreadSafeRefCounted<ThreadGlobalData> { 49 49 #else 50 50 class ThreadGlobalData { 51 51 #endif 52 53 54 55 56 57 52 WTF_MAKE_NONCOPYABLE(ThreadGlobalData); 53 WTF_MAKE_FAST_ALLOCATED; 54 public: 55 WEBCORE_EXPORT ThreadGlobalData(); 56 WEBCORE_EXPORT ~ThreadGlobalData(); 57 void destroy(); // called on workers to clean up the ThreadGlobalData before the thread exits. 58 58 59 60 61 62 59 const CachedResourceRequestInitiators& cachedResourceRequestInitiators() { return *m_cachedResourceRequestInitiators; } 60 EventNames& eventNames() { return *m_eventNames; } 61 ThreadTimers& threadTimers() { return *m_threadTimers; } 62 QualifiedNameCache& qualifiedNameCache() { return *m_qualifiedNameCache; } 63 63 64 64 ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; } 65 65 66 67 66 JSC::JSGlobalObject* currentState() const { return m_currentState; } 67 void setCurrentState(JSC::JSGlobalObject* state) { m_currentState = state; } 68 68 69 69 #if USE(WEB_THREAD) 70 70 void setWebCoreThreadData(); 71 71 #endif 72 72 73 74 73 bool isInRemoveAllEventListeners() const { return m_isInRemoveAllEventListeners; } 74 void setIsInRemoveAllEventListeners(bool value) { m_isInRemoveAllEventListeners = value; } 75 75 76 77 78 79 80 81 76 private: 77 std::unique_ptr<CachedResourceRequestInitiators> m_cachedResourceRequestInitiators; 78 std::unique_ptr<EventNames> m_eventNames; 79 std::unique_ptr<ThreadTimers> m_threadTimers; 80 std::unique_ptr<QualifiedNameCache> m_qualifiedNameCache; 81 JSC::JSGlobalObject* m_currentState { nullptr }; 82 82 83 83 #ifndef NDEBUG 84 84 bool m_isMainThread; 85 85 #endif 86 86 87 87 bool m_isInRemoveAllEventListeners { false }; 88 88 89 89 std::unique_ptr<ICUConverterWrapper> m_cachedConverterICU; 90 90 91 92 91 WEBCORE_EXPORT friend ThreadGlobalData& threadGlobalData(); 92 }; 93 93 94 94 #if USE(WEB_THREAD) … … 97 97 WEBCORE_EXPORT ThreadGlobalData& threadGlobalData() PURE_FUNCTION; 98 98 #endif 99 99 100 100 } // namespace WebCore 101 101
Note: See TracChangeset
for help on using the changeset viewer.