| Index: Source/platform/EventDispatchForbiddenScope.h
|
| diff --git a/Source/platform/EventDispatchForbiddenScope.h b/Source/platform/EventDispatchForbiddenScope.h
|
| index 8997d9d9869d2559c12d83587439945d76cf8173..ed04351930f637ece70c7235e3b6231a1e87b5ee 100644
|
| --- a/Source/platform/EventDispatchForbiddenScope.h
|
| +++ b/Source/platform/EventDispatchForbiddenScope.h
|
| @@ -18,15 +18,13 @@ class EventDispatchForbiddenScope {
|
| public:
|
| EventDispatchForbiddenScope()
|
| {
|
| - if (!isMainThread())
|
| - return;
|
| + ASSERT(isMainThread());
|
| ++s_count;
|
| }
|
|
|
| ~EventDispatchForbiddenScope()
|
| {
|
| - if (!isMainThread())
|
| - return;
|
| + ASSERT(isMainThread());
|
| ASSERT(s_count);
|
| --s_count;
|
| }
|
| @@ -43,6 +41,7 @@ public:
|
| AllowUserAgentEvents()
|
| : m_change(s_count, 0)
|
| {
|
| + ASSERT(isMainThread());
|
| }
|
|
|
| ~AllowUserAgentEvents()
|
|
|