Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: Source/core/dom/ScriptForbiddenScope.h

Issue 331793004: Delete ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing include Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/inspector/CodeGeneratorInspector.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/inspector/CodeGeneratorInspector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698