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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.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/CSSSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
index 2b8866e2b8ce8fc7a2e11f570a820ffd954b580b..7fd36524368405e12bbf0d8879feeb2759b2cb2e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
@@ -96,7 +96,7 @@ WebInspector.CSSSourceFrame.prototype = {
return false;
var cssUnitRange = new WebInspector.TextRange(selection.startLine, token.startColumn, selection.startLine, token.endColumn);
- var cssUnitText = this.textEditor.copyRange(cssUnitRange);
+ var cssUnitText = this.textEditor.text(cssUnitRange);
var newUnitText = this._modifyUnit(cssUnitText, change);
if (!newUnitText)
return false;
@@ -272,7 +272,7 @@ WebInspector.CSSSourceFrame.prototype = {
*/
_cssSuggestions: function(prefixRange, substituteRange)
{
- var prefix = this._textEditor.copyRange(prefixRange);
+ var prefix = this._textEditor.text(prefixRange);
if (prefix.startsWith("$"))
return null;

Powered by Google App Engine
This is Rietveld 408576698