| Index: Source/core/dom/NoEventDispatchAssertion.h
 | 
| diff --git a/Source/core/dom/NoEventDispatchAssertion.h b/Source/core/dom/NoEventDispatchAssertion.h
 | 
| deleted file mode 100644
 | 
| index 8bf32b2c761f400650b5c9ead55eb1d1bd1e5937..0000000000000000000000000000000000000000
 | 
| --- a/Source/core/dom/NoEventDispatchAssertion.h
 | 
| +++ /dev/null
 | 
| @@ -1,74 +0,0 @@
 | 
| -// Copyright 2014 The Chromium Authors. All rights reserved.
 | 
| -// Use of this source code is governed by a BSD-style license that can be
 | 
| -// found in the LICENSE file.
 | 
| -
 | 
| -#ifndef NoEventDispatchAssertion_h
 | 
| -#define NoEventDispatchAssertion_h
 | 
| -
 | 
| -#include "wtf/MainThread.h"
 | 
| -#include "wtf/TemporaryChange.h"
 | 
| -
 | 
| -namespace blink {
 | 
| -
 | 
| -#if ENABLE(ASSERT)
 | 
| -
 | 
| -class NoEventDispatchAssertion {
 | 
| -public:
 | 
| -    NoEventDispatchAssertion()
 | 
| -    {
 | 
| -        if (!isMainThread())
 | 
| -            return;
 | 
| -        ++s_count;
 | 
| -    }
 | 
| -
 | 
| -    ~NoEventDispatchAssertion()
 | 
| -    {
 | 
| -        if (!isMainThread())
 | 
| -            return;
 | 
| -        ASSERT(s_count);
 | 
| -        --s_count;
 | 
| -    }
 | 
| -
 | 
| -    static bool isEventDispatchForbidden()
 | 
| -    {
 | 
| -        if (!isMainThread())
 | 
| -            return false;
 | 
| -        return s_count;
 | 
| -    }
 | 
| -
 | 
| -    class AllowUserAgentEvents {
 | 
| -    public:
 | 
| -        AllowUserAgentEvents()
 | 
| -            : m_change(s_count, 0)
 | 
| -        {
 | 
| -        }
 | 
| -
 | 
| -        ~AllowUserAgentEvents()
 | 
| -        {
 | 
| -            ASSERT(!s_count);
 | 
| -        }
 | 
| -
 | 
| -        TemporaryChange<unsigned> m_change;
 | 
| -    };
 | 
| -
 | 
| -private:
 | 
| -    static unsigned s_count;
 | 
| -};
 | 
| -
 | 
| -#else
 | 
| -
 | 
| -class NoEventDispatchAssertion {
 | 
| -public:
 | 
| -    NoEventDispatchAssertion() { }
 | 
| -
 | 
| -    class AllowUserAgentEvents {
 | 
| -    public:
 | 
| -        AllowUserAgentEvents() { }
 | 
| -    };
 | 
| -};
 | 
| -
 | 
| -#endif // ENABLE(ASSERT)
 | 
| -
 | 
| -} // namespace blink
 | 
| -
 | 
| -#endif // NoEventDispatchAssertion_h
 | 
| 
 |