Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1632)

Unified Diff: Source/devtools/front_end/timeline/TimelineFrameModel.js

Issue 713913002: DevTools: merge TracingTimelineUIUtils into TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deleted instance refs Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelineFrameModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineFrameModel.js b/Source/devtools/front_end/timeline/TimelineFrameModel.js
index 714f844832fc8a0f6f2e6eac99e34c60ced38366..e605a4cfaadebd6388f9ab182c3703048494cb19 100644
--- a/Source/devtools/front_end/timeline/TimelineFrameModel.js
+++ b/Source/devtools/front_end/timeline/TimelineFrameModel.js
@@ -279,7 +279,7 @@ WebInspector.TracingTimelineFrameModel.prototype = {
return;
}
if (this._lastFrame && event.selfTime)
- this._lastFrame._addTimeForCategory(WebInspector.TracingTimelineUIUtils.eventStyle(event).category.name, event.selfTime);
+ this._lastFrame._addTimeForCategory(WebInspector.TimelineUIUtils.eventStyle(event).category.name, event.selfTime);
if (event.args["layerTreeId"] !== this._layerTreeId)
return;
@@ -312,7 +312,7 @@ WebInspector.TracingTimelineFrameModel.prototype = {
if (!selfTime)
return;
- var categoryName = WebInspector.TracingTimelineUIUtils.eventStyle(event).category.name;
+ var categoryName = WebInspector.TimelineUIUtils.eventStyle(event).category.name;
this._lastFrame._addTimeForCategory(categoryName, selfTime);
return;
}
@@ -325,7 +325,7 @@ WebInspector.TracingTimelineFrameModel.prototype = {
this._framePendingCommit.paints.push(new WebInspector.LayerPaintEvent(event));
if (selfTime) {
- var categoryName = WebInspector.TracingTimelineUIUtils.eventStyle(event).category.name;
+ var categoryName = WebInspector.TimelineUIUtils.eventStyle(event).category.name;
this._framePendingCommit.timeByCategory[categoryName] = (this._framePendingCommit.timeByCategory[categoryName] || 0) + selfTime;
}
if (event.name === eventNames.CompositeLayers && event.args["layerTreeId"] === this._layerTreeId)
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | Source/devtools/front_end/timeline/TimelineMemoryOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698