Index: Source/devtools/front_end/TimelinePanel.js |
diff --git a/Source/devtools/front_end/TimelinePanel.js b/Source/devtools/front_end/TimelinePanel.js |
index ffb690dec1a3a98f7fbb8ac588d1dba2b57e20d7..f6913d325c1779328e03fbdf057580c0fc673afa 100644 |
--- a/Source/devtools/front_end/TimelinePanel.js |
+++ b/Source/devtools/front_end/TimelinePanel.js |
@@ -819,13 +819,17 @@ WebInspector.TimelinePanel.prototype = { |
/** |
* @param {!WebInspector.TimelineModel.Record} record |
+ * @this {WebInspector.TimelinePanel} |
*/ |
function processRecord(record) |
{ |
+ if (record.endTime < this._windowStartTime || |
+ record.startTime > this._windowEndTime) |
+ return; |
if (record.testContentMatching(searchRegExp)) |
matches.push(record); |
} |
- this._model.forAllFilteredRecords(processRecord); |
+ this._model.forAllFilteredRecords(processRecord.bind(this)); |
var matchesCount = matches.length; |
if (matchesCount) { |