Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / profiler / CPUProfileFlameChart.js
index 089a32d..d07d5bc 100644 (file)
  * @constructor
  * @implements {WebInspector.FlameChartDataProvider}
  * @param {!WebInspector.CPUProfileDataModel} cpuProfile
- * @param {!WeakReference.<!WebInspector.Target>} weakTarget
+ * @param {?WebInspector.Target} target
  */
-WebInspector.CPUFlameChartDataProvider = function(cpuProfile, weakTarget)
+WebInspector.CPUFlameChartDataProvider = function(cpuProfile, target)
 {
     WebInspector.FlameChartDataProvider.call(this);
     this._cpuProfile = cpuProfile;
-    this._weakTarget = weakTarget;
+    this._target = target;
     this._colorGenerator = WebInspector.CPUFlameChartDataProvider.colorGenerator();
 }
 
@@ -238,8 +238,7 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
         var totalTime = this._millisecondsToString(timelineData.entryTotalTimes[entryIndex]);
         pushEntryInfoRow(WebInspector.UIString("Self time"), selfTime);
         pushEntryInfoRow(WebInspector.UIString("Total time"), totalTime);
-        var target = this._weakTarget.get();
-        var text = target ? WebInspector.Linkifier.liveLocationText(target, node.scriptId, node.lineNumber, node.columnNumber) : node.url;
+        var text = this._target ? WebInspector.Linkifier.liveLocationText(this._target, node.scriptId, node.lineNumber, node.columnNumber) : node.url;
         pushEntryInfoRow(WebInspector.UIString("URL"), text);
         pushEntryInfoRow(WebInspector.UIString("Aggregated self time"), Number.secondsToString(node.selfTime / 1000, true));
         pushEntryInfoRow(WebInspector.UIString("Aggregated total time"), Number.secondsToString(node.totalTime / 1000, true));