| Index: Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| diff --git a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| index f2331b8913c89994b9ae2f855f63f3babf659da0..9c6b326d0cd06568f95b61dd71a8f1eb8301d167 100644
|
| --- a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| +++ b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| @@ -423,17 +423,17 @@ WebInspector.JavaScriptSourceFrame.prototype = {
|
| _getPopoverAnchor: function(element, event)
|
| {
|
| if (!WebInspector.debuggerModel.isPaused())
|
| - return null;
|
| + return;
|
|
|
| var textPosition = this.textEditor.coordinatesToCursorPosition(event.x, event.y);
|
| if (!textPosition)
|
| - return null;
|
| + return;
|
| var mouseLine = textPosition.startLine;
|
| var mouseColumn = textPosition.startColumn;
|
| var textSelection = this.textEditor.selection().normalize();
|
| if (textSelection && !textSelection.isEmpty()) {
|
| if (textSelection.startLine !== textSelection.endLine || textSelection.startLine !== mouseLine || mouseColumn < textSelection.startColumn || mouseColumn > textSelection.endColumn)
|
| - return null;
|
| + return;
|
|
|
| var leftCorner = this.textEditor.cursorPositionToCoordinates(textSelection.startLine, textSelection.startColumn);
|
| var rightCorner = this.textEditor.cursorPositionToCoordinates(textSelection.endLine, textSelection.endColumn);
|
| @@ -449,14 +449,14 @@ WebInspector.JavaScriptSourceFrame.prototype = {
|
|
|
| var token = this.textEditor.tokenAtTextPosition(textPosition.startLine, textPosition.startColumn);
|
| if (!token)
|
| - return null;
|
| + return;
|
| var lineNumber = textPosition.startLine;
|
| var line = this.textEditor.line(lineNumber);
|
| var tokenContent = line.substring(token.startColumn, token.endColumn + 1);
|
|
|
| var isIdentifier = token.type.startsWith("js-variable") || token.type.startsWith("js-property") || token.type == "js-def";
|
| if (!isIdentifier && (token.type !== "js-keyword" || tokenContent !== "this"))
|
| - return null;
|
| + return;
|
|
|
| var leftCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, token.startColumn);
|
| var rightCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, token.endColumn + 1);
|
|
|