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

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

Issue 313173012: HTMLParser should use current value of scriptEnabled flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@WebKit-ADD
Patch Set: Created 6 years, 5 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/bindings/core/v8/ScriptController.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/bindings/core/v8/ScriptController.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698