summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/ScriptControllerBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/ScriptControllerBase.cpp')
-rw-r--r--Source/WebCore/bindings/ScriptControllerBase.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/WebCore/bindings/ScriptControllerBase.cpp b/Source/WebCore/bindings/ScriptControllerBase.cpp
index 570f964ce..855158afc 100644
--- a/Source/WebCore/bindings/ScriptControllerBase.cpp
+++ b/Source/WebCore/bindings/ScriptControllerBase.cpp
@@ -63,19 +63,9 @@ ScriptValue ScriptController::executeScript(const ScriptSourceCode& sourceCode)
if (!canExecuteScripts(AboutToExecuteScript) || isPaused())
return ScriptValue();
- bool wasInExecuteScript = m_inExecuteScript;
- m_inExecuteScript = true;
-
RefPtr<Frame> protect(m_frame); // Script execution can destroy the frame, and thus the ScriptController.
- ScriptValue result = evaluate(sourceCode);
-
- if (!wasInExecuteScript) {
- m_inExecuteScript = false;
- Document::updateStyleForAllDocuments();
- }
-
- return result;
+ return evaluate(sourceCode);
}
bool ScriptController::executeIfJavaScriptURL(const KURL& url, ShouldReplaceDocumentIfJavaScriptURL shouldReplaceDocumentIfJavaScriptURL)