| Index: third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| index 399048116797147f49a4c8e698e7050b82b7e6df..8c647cba906a7fc99e6a441ceaff92dc42d61788 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
|
| @@ -795,7 +795,7 @@ WebInspector.SourcesTextEditor.TokenHighlighter = class {
|
| null;
|
| if (selectionStart)
|
| this._codeMirror.addLineClass(selectionStart.line, 'wrap', 'cm-line-with-selection');
|
| - if (this._highlightRegex === oldRegex) {
|
| + if (oldRegex && this._highlightRegex.toString() === oldRegex.toString()) {
|
| // Do not re-add overlay mode if regex did not change for better performance.
|
| if (this._highlightDescriptor)
|
| this._highlightDescriptor.selectionStart = selectionStart;
|
|
|