OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 { | 303 { |
304 /** | 304 /** |
305 * @param {?Protocol.Error} error | 305 * @param {?Protocol.Error} error |
306 * @param {!Array.<!DebuggerAgent.SearchMatch>} searchMatches | 306 * @param {!Array.<!DebuggerAgent.SearchMatch>} searchMatches |
307 */ | 307 */ |
308 function callbackWrapper(error, searchMatches) | 308 function callbackWrapper(error, searchMatches) |
309 { | 309 { |
310 callback(searchMatches || []); | 310 callback(searchMatches || []); |
311 } | 311 } |
312 | 312 |
313 if (this.resourceType() === WebInspector.resourceTypes.Document) { | |
pfeldman
2015/08/12 23:38:42
Do you have an idea on why it was here?
dgozman
2015/08/13 18:27:26
Added to support fallback provider here: https://c
| |
314 callback([]); | |
315 return; | |
316 } | |
317 | |
318 if (this.frameId) | 313 if (this.frameId) |
319 this.target().pageAgent().searchInResource(this.frameId, this.url, q uery, caseSensitive, isRegex, callbackWrapper); | 314 this.target().pageAgent().searchInResource(this.frameId, this.url, q uery, caseSensitive, isRegex, callbackWrapper); |
320 else | 315 else |
321 callback([]); | 316 callback([]); |
322 }, | 317 }, |
323 | 318 |
324 /** | 319 /** |
325 * @param {!Element} image | 320 * @param {!Element} image |
326 */ | 321 */ |
327 populateImageSource: function(image) | 322 populateImageSource: function(image) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
419 if (this._type.isTextType()) | 414 if (this._type.isTextType()) |
420 return true; | 415 return true; |
421 if (this._type === WebInspector.resourceTypes.Other) | 416 if (this._type === WebInspector.resourceTypes.Other) |
422 return !!this._content && !this._contentEncoded; | 417 return !!this._content && !this._contentEncoded; |
423 return false; | 418 return false; |
424 }, | 419 }, |
425 | 420 |
426 __proto__: WebInspector.SDKObject.prototype | 421 __proto__: WebInspector.SDKObject.prototype |
427 } | 422 } |
428 | 423 |
OLD | NEW |