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

Unified Diff: Source/bindings/core/v8/V8LazyEventListener.cpp

Issue 761143003: DevTools: remove ScriptPreprocessor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 10 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/ScriptPreprocessor.cpp ('k') | Source/bindings/core/v8/V8ScriptRunner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8LazyEventListener.cpp
diff --git a/Source/bindings/core/v8/V8LazyEventListener.cpp b/Source/bindings/core/v8/V8LazyEventListener.cpp
index 3ef5ad1f56f8b440208c0d19cc76ca5fff6a22b9..3fc29547fb73621a906217774df46a36d9652562 100644
--- a/Source/bindings/core/v8/V8LazyEventListener.cpp
+++ b/Source/bindings/core/v8/V8LazyEventListener.cpp
@@ -46,7 +46,6 @@
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLFormElement.h"
-#include "core/inspector/InspectorInstrumentation.h"
#include "wtf/StdLibExtras.h"
@@ -132,7 +131,6 @@ void V8LazyEventListener::prepareListenerObject(ExecutionContext* executionConte
return;
ScriptState::Scope scope(scriptState);
- String listenerSource = InspectorInstrumentation::preprocessEventListener(toDocument(executionContext)->frame(), m_code, m_sourceURL, m_functionName);
// FIXME: Remove the following 'with' hack.
//
@@ -156,7 +154,7 @@ void V8LazyEventListener::prepareListenerObject(ExecutionContext* executionConte
"with (this[1]) {"
"with (this[0]) {"
"return function(" + m_eventParameterName + ") {" +
- listenerSource + "\n" // Insert '\n' otherwise //-style comments could break the handler.
+ m_code + "\n" // Insert '\n' otherwise //-style comments could break the handler.
"};"
"}}}})";
« no previous file with comments | « Source/bindings/core/v8/ScriptPreprocessor.cpp ('k') | Source/bindings/core/v8/V8ScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698