Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index 397330e780aedd694d8034a27b4c2cf531962d9f..0d80d33780ecf43c17dc87fef86404f97cabf143 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -879,6 +879,8 @@ public: |
bool allowInlineEventHandlers(Node*, EventListener*, const String& contextURL, const WTF::OrdinalNumber& contextLine); |
bool allowExecutingScripts(Node*); |
+ bool scriptEnabled(); |
+ |
void statePopped(PassRefPtr<SerializedScriptValue>); |
enum LoadEventProgress { |
@@ -1269,6 +1271,13 @@ private: |
OwnPtrWillBeMember<ScriptRunner> m_scriptRunner; |
+ enum ScriptEnabledState { |
+ Uninitialized, |
+ Enabled, |
+ Disabled |
+ }; |
+ ScriptEnabledState m_scriptEnabled; |
+ |
WillBeHeapVector<RefPtrWillBeMember<HTMLScriptElement> > m_currentScriptStack; |
OwnPtr<TransformSource> m_transformSource; |