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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 362163004: Timeline: fix 'Range'/Pie Chart overlap when timeline details pan is shrunk (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: moved flex-shrik: to affect flex items, not container Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/timelinePanel.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 var title = WebInspector.UIString("Range: %s \u2013 %s", Number.millisTo String(startOffset), Number.millisToString(endOffset)); 1105 var title = WebInspector.UIString("Range: %s \u2013 %s", Number.millisTo String(startOffset), Number.millisToString(endOffset));
1106 1106
1107 for (var i = 0; i < this._overviewControls.length; ++i) { 1107 for (var i = 0; i < this._overviewControls.length; ++i) {
1108 if (this._overviewControls[i] instanceof WebInspector.TimelinePowerO verview) { 1108 if (this._overviewControls[i] instanceof WebInspector.TimelinePowerO verview) {
1109 var energy = this._overviewControls[i].calculateEnergy(startTime , endTime); 1109 var energy = this._overviewControls[i].calculateEnergy(startTime , endTime);
1110 title += WebInspector.UIString(" Energy: %.2f Joules", energy); 1110 title += WebInspector.UIString(" Energy: %.2f Joules", energy);
1111 title += WebInspector.UIString(" Accuracy: %s", WebInspector.po werProfiler.getAccuracyLevel()); 1111 title += WebInspector.UIString(" Accuracy: %s", WebInspector.po werProfiler.getAccuracyLevel());
1112 break; 1112 break;
1113 } 1113 }
1114 } 1114 }
1115 pieChartContainer.appendChild(document.createTextNode(title)); 1115 pieChartContainer.createChild("div").textContent = title;
1116 pieChartContainer.appendChild(WebInspector.TimelineUIUtils.generatePieCh art(aggregatedStats)); 1116 pieChartContainer.appendChild(WebInspector.TimelineUIUtils.generatePieCh art(aggregatedStats));
1117 this.showInDetails(WebInspector.UIString("Selected Range"), pieChartCont ainer); 1117 this.showInDetails(WebInspector.UIString("Selected Range"), pieChartCont ainer);
1118 }, 1118 },
1119 1119
1120 /** 1120 /**
1121 * @param {?WebInspector.TimelineSelection} selection 1121 * @param {?WebInspector.TimelineSelection} selection
1122 */ 1122 */
1123 select: function(selection) 1123 select: function(selection)
1124 { 1124 {
1125 this._detailsLinkifier.reset(); 1125 this._detailsLinkifier.reset();
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 * @param {!WebInspector.TimelineModel.Record} record 1445 * @param {!WebInspector.TimelineModel.Record} record
1446 * @return {boolean} 1446 * @return {boolean}
1447 */ 1447 */
1448 accept: function(record) 1448 accept: function(record)
1449 { 1449 {
1450 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1450 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1451 }, 1451 },
1452 1452
1453 __proto__: WebInspector.TimelineModel.Filter.prototype 1453 __proto__: WebInspector.TimelineModel.Filter.prototype
1454 } 1454 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timelinePanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698