| Index: Source/core/dom/ScriptForbiddenScope.h
|
| diff --git a/Source/core/dom/ScriptForbiddenScope.h b/Source/core/dom/ScriptForbiddenScope.h
|
| index 7c4daa7211b0688640dd7b01ccdb49ab7158e709..7425b6cb943d54c5b6aa64d084ed76c6e8dfb8a5 100644
|
| --- a/Source/core/dom/ScriptForbiddenScope.h
|
| +++ b/Source/core/dom/ScriptForbiddenScope.h
|
| @@ -5,23 +5,12 @@
|
| #ifndef ScriptForbiddenScope_h
|
| #define ScriptForbiddenScope_h
|
|
|
| +#include "wtf/Assertions.h"
|
| #include "wtf/TemporaryChange.h"
|
|
|
| namespace WebCore {
|
|
|
| -#if ASSERT_DISABLED
|
| -
|
| -class ScriptForbiddenScope {
|
| -public:
|
| - ScriptForbiddenScope() { }
|
| - class AllowUserAgentScript {
|
| - public:
|
| - AllowUserAgentScript() { }
|
| - };
|
| - static bool isScriptForbidden() { return false; }
|
| -};
|
| -
|
| -#else
|
| +#if ASSERT_ENABLED
|
|
|
| class ScriptForbiddenScope {
|
| public:
|
| @@ -39,6 +28,18 @@ public:
|
| static bool isScriptForbidden();
|
| };
|
|
|
| +#else
|
| +
|
| +class ScriptForbiddenScope {
|
| +public:
|
| + ScriptForbiddenScope() { }
|
| + class AllowUserAgentScript {
|
| + public:
|
| + AllowUserAgentScript() { }
|
| + };
|
| + static bool isScriptForbidden() { return false; }
|
| +};
|
| +
|
| #endif
|
|
|
| } // namespace WebCore
|
|
|