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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js

Issue 1808063002: Timeline: move SegmentedRange into the WebInspector namespace and a file of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved Segment around Created 4 years, 9 months 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineIRModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
index a642affb05a95e276c9f74b5ec2dcc974f96a683..7fcde25911c3bad94c19f46d44a9c05a89489a50 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js
@@ -1490,7 +1490,7 @@ WebInspector.FlameChart.prototype = {
*/
_drawCollapsedOverviewForGroup: function(y, startLevel, endLevel)
{
- var range = new SegmentedRange(mergeCallback);
+ var range = new WebInspector.SegmentedRange(mergeCallback);
var timeWindowRight = this._timeWindowRight;
var timeWindowLeft = this._timeWindowLeft - this._paddingLeft / this._timeToPixel;
var context = this._canvas.getContext("2d");
@@ -1514,7 +1514,7 @@ WebInspector.FlameChart.prototype = {
break;
lastDrawOffset = startPosition;
var color = this._dataProvider.entryColor(entryIndex);
- range.append(new Segment(startPosition, this._timeToPositionClipped(entryEndTime), color));
+ range.append(new WebInspector.Segment(startPosition, this._timeToPositionClipped(entryEndTime), color));
}
}
@@ -1534,9 +1534,9 @@ WebInspector.FlameChart.prototype = {
context.fill();
/**
- * @param {!Segment} a
- * @param {!Segment} b
- * @return {?Segment}
+ * @param {!WebInspector.Segment} a
+ * @param {!WebInspector.Segment} b
+ * @return {?WebInspector.Segment}
*/
function mergeCallback(a, b)
{
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineIRModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698