Index: third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
index dd724d144d47dfd06fc022f8f70916bc8847cb46..668886c4234e46e04903074007acecd7e87dcdf8 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
@@ -1019,6 +1019,16 @@ WebInspector.CodeMirrorTextEditor.prototype = { |
}, |
/** |
+ * @param {!WebInspector.TextRange} range |
+ * @return {!Array.<!CodeMirror.TextMarker>} |
+ */ |
+ bookmarks: function(range) |
+ { |
+ var pos = WebInspector.CodeMirrorUtils.toPos(range); |
+ return this._codeMirror.findMarks(pos.start, pos.end); |
+ }, |
+ |
+ /** |
* @override |
* @return {!Element} |
*/ |