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

Unified Diff: Source/core/dom/ExecutionContext.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: New approach 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
Index: Source/core/dom/ExecutionContext.h
diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h
index c93492dbf87c6e9b36290cb54605142c50bac78e..8cdacc6e34b02686a71f22e0bb1ec79b83c27f44 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -84,6 +84,9 @@ public:
bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus);
void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtr<ScriptCallStack>, AccessControlStatus);
+ void initScriptEnabled() { }
abarth-chromium 2014/06/26 19:53:37 This function shouldn't be needed. What breaks if
mmal 2014/06/27 19:39:16 Done.
+ bool scriptEnabled() { return m_scriptEnabled; }
+
void addConsoleMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber);
void addConsoleMessage(MessageSource, MessageLevel, const String& message, ScriptState* = 0);
@@ -128,6 +131,8 @@ protected:
ContextLifecycleNotifier& lifecycleNotifier();
+ bool m_scriptEnabled;
+
private:
friend class DOMTimer; // For installNewTimeout() and removeTimeoutByID() below.

Powered by Google App Engine
This is Rietveld 408576698