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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2269183003: DevTools: Merge CodeMirrorTextEditor's copyRange into text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index 5348993f0784b4615bccb078b009b0bf6cb0aa1f..2ea8d0755079fd3ff8d581b75591de0f56a23a4d 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -1294,7 +1294,7 @@ WebInspector.SourcesPanel.DebuggingActionDelegate.prototype = {
case "debugger.evaluate-selection":
var frame = WebInspector.context.flavor(WebInspector.UISourceCodeFrame);
if (frame) {
- var text = frame.textEditor.copyRange(frame.textEditor.selection());
+ var text = frame.textEditor.text(frame.textEditor.selection());
var executionContext = WebInspector.context.flavor(WebInspector.ExecutionContext);
if (executionContext)
WebInspector.ConsoleModel.evaluateCommandInConsole(executionContext, text);

Powered by Google App Engine
This is Rietveld 408576698