Changeset 130093 in webkit
- Timestamp:
- Oct 1, 2012, 4:12:27 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130091 r130093 1 2012-10-01 Ryosuke Niwa <rniwa@webkit.org> 2 3 Build fix. Clearly, these objects could be instantiated in worker threads. 4 Not sure why my patch asserted that we're in the main thread. 5 6 * dom/ContainerNode.h: 7 (WebCore::NoEventDispatchAssertion::NoEventDispatchAssertion): 8 (WebCore::NoEventDispatchAssertion::~NoEventDispatchAssertion): 9 1 10 2012-10-01 Beth Dakin <bdakin@apple.com> 2 11 -
trunk/Source/WebCore/dom/ContainerNode.h
r130084 r130093 46 46 NoEventDispatchAssertion() 47 47 { 48 ASSERT(isMainThread()); 48 if (!isMainThread()) 49 return; 49 50 #ifndef NDEBUG 50 51 s_count++; … … 54 55 ~NoEventDispatchAssertion() 55 56 { 56 ASSERT(isMainThread()); 57 if (!isMainThread()) 58 return; 57 59 ASSERT(s_count); 58 60 #ifndef NDEBUG … … 62 64 63 65 #ifndef NDEBUG 64 static bool isEventDispatchForbidden() { return s_count; } 66 static bool isEventDispatchForbidden() 67 { 68 if (!isMainThread()) 69 return false; 70 return s_count; 71 } 65 72 #endif 66 73
Note:
See TracChangeset
for help on using the changeset viewer.