Index: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
diff --git a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
index ce8c97c20d8b1007d8db96e82360a1fdc9bb5397..f85bf7bdc23482ee66ea4764ab60a45125514eb5 100644 |
--- a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
+++ b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js |
@@ -750,7 +750,7 @@ WebInspector.CodeMirrorTextEditor.prototype = { |
*/ |
coordinatesToCursorPosition: function(x, y) |
{ |
- var element = document.elementFromPoint(x, y); |
+ var element = document.deepElementFromPoint(x, y); |
if (!element || !element.isSelfOrDescendant(this._codeMirror.getWrapperElement())) |
return null; |
var gutterBox = this._codeMirror.getGutterElement().boxInWindow(); |