| Index: third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| index 17b212fcbaf6b19ca87d8febec8a17f448b229b2..fb9e76c39b063a10a9ccf9f031e878baa5848546 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| @@ -242,7 +242,11 @@ WebInspector.UISourceCodeFrame.prototype = {
|
| {
|
| contextMenu.appendApplicableItems(this._uiSourceCode);
|
| contextMenu.appendApplicableItems(new WebInspector.UILocation(this._uiSourceCode, lineNumber, columnNumber));
|
| - contextMenu.appendSeparator();
|
| + var textSelection = this._textEditor.selection();
|
| + if (textSelection && !textSelection.isEmpty()) {
|
| + var rangeWithContent = new WebInspector.TextRangeWithContent(textSelection, this._textEditor.copyRange(textSelection));
|
| + contextMenu.appendApplicableItems(rangeWithContent);
|
| + }
|
| }
|
|
|
| return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this, contextMenu, lineNumber, columnNumber)
|
|
|