| Index: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
|
| index e37d5c28ec10e6fc2ed5fee553fb207cc1124e0e..7822ea65db8e2712f495a366a5a3c84b55ff3079 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
|
| @@ -554,12 +554,21 @@ WebInspector.UISourceCode.prototype = {
|
| searchInContent: function(query, caseSensitive, isRegex, callback)
|
| {
|
| var content = this.content();
|
| - if (content) {
|
| - WebInspector.StaticContentProvider.searchInContent(content, query, caseSensitive, isRegex, callback);
|
| + if (!content) {
|
| + this._project.searchInFileContent(this, query, caseSensitive, isRegex, callback);
|
| return;
|
| }
|
|
|
| - this._project.searchInFileContent(this, query, caseSensitive, isRegex, callback);
|
| + // searchInContent should call back later.
|
| + setTimeout(doSearch.bind(null, content), 0);
|
| +
|
| + /**
|
| + * @param {string} content
|
| + */
|
| + function doSearch(content)
|
| + {
|
| + callback(WebInspector.ContentProvider.performSearchInContent(content, query, caseSensitive, isRegex));
|
| + }
|
| },
|
|
|
| /**
|
|
|