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

Unified Diff: Source/devtools/front_end/sources/CSSSourceFrame.js

Issue 472793002: DevTools: Make TextEditor.tokenAtTextPosition() return exclusive end column (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix remaining cases Created 6 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: Source/devtools/front_end/sources/CSSSourceFrame.js
diff --git a/Source/devtools/front_end/sources/CSSSourceFrame.js b/Source/devtools/front_end/sources/CSSSourceFrame.js
index 3feba90437b4b7e63088cbefe0f28e886c55d7bb..bd90f3f1e7b5ff0fc316f9681c721d3560a78b54 100644
--- a/Source/devtools/front_end/sources/CSSSourceFrame.js
+++ b/Source/devtools/front_end/sources/CSSSourceFrame.js
@@ -84,7 +84,7 @@ WebInspector.CSSSourceFrame.prototype = {
if (token.type !== "css-number")
return false;
- var cssUnitRange = new WebInspector.TextRange(selection.startLine, token.startColumn, selection.startLine, token.endColumn + 1);
+ var cssUnitRange = new WebInspector.TextRange(selection.startLine, token.startColumn, selection.startLine, token.endColumn);
var cssUnitText = this.textEditor.copyRange(cssUnitRange);
var newUnitText = this._modifyUnit(cssUnitText, change);
if (!newUnitText)

Powered by Google App Engine
This is Rietveld 408576698