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

Unified Diff: Source/devtools/front_end/TextRange.js

Issue 23474010: DevTools: "Jump between editing locations" experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline this patch Created 6 years, 11 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/devtools/front_end/TextEditor.js ('k') | Source/devtools/front_end/UISourceCodeFrame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TextRange.js
diff --git a/Source/devtools/front_end/TextRange.js b/Source/devtools/front_end/TextRange.js
index 0c838de05388ff89b16600b2098d74621e14262c..b7b6c05e4da04574ec302ab637867b3158b2551e 100644
--- a/Source/devtools/front_end/TextRange.js
+++ b/Source/devtools/front_end/TextRange.js
@@ -154,6 +154,16 @@ WebInspector.TextRange.prototype = {
},
/**
+ * @param {!WebInspector.TextRange} other
+ * @return {boolean}
+ */
+ equal: function(other)
+ {
+ return this.startLine === other.startLine && this.endLine === other.endLine &&
+ this.startColumn === other.startColumn && this.endColumn === other.endColumn;
+ },
+
+ /**
* @param {number} lineOffset
* @return {!WebInspector.TextRange}
*/
« no previous file with comments | « Source/devtools/front_end/TextEditor.js ('k') | Source/devtools/front_end/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698