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

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

Issue 1178563002: DevTools: Refactor network panel overview (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test. Created 5 years, 6 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 | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/module.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineView.js
diff --git a/Source/devtools/front_end/timeline/TimelineView.js b/Source/devtools/front_end/timeline/TimelineView.js
index d4443edc5e6d25171280212ab21b1b6c3067bc1b..d7a2f033f8233e63c4f5366aecab0576b27efc0d 100644
--- a/Source/devtools/front_end/timeline/TimelineView.js
+++ b/Source/devtools/front_end/timeline/TimelineView.js
@@ -460,7 +460,7 @@ WebInspector.TimelineView.prototype = {
var windowEndTime = this._windowEndTime || this._model.maximumRecordTime();
this._timelinePaddingLeft = this._expandOffset;
this._calculator.setWindow(windowStartTime, windowEndTime);
- this._calculator.setDisplayWindow(this._timelinePaddingLeft, this._graphRowsElementWidth);
+ this._calculator.setDisplayWindow(this._graphRowsElementWidth, this._timelinePaddingLeft);
this._refreshRecords();
if (!this._boundariesAreValid) {
@@ -966,13 +966,13 @@ WebInspector.TimelineCalculator.prototype = {
},
/**
- * @param {number} paddingLeft
* @param {number} clientWidth
+ * @param {number=} paddingLeft
*/
- setDisplayWindow: function(paddingLeft, clientWidth)
+ setDisplayWindow: function(clientWidth, paddingLeft)
{
- this._workingArea = clientWidth - WebInspector.TimelineCalculator._minWidth - paddingLeft;
- this._paddingLeft = paddingLeft;
+ this._paddingLeft = paddingLeft || 0;
+ this._workingArea = clientWidth - WebInspector.TimelineCalculator._minWidth - this._paddingLeft;
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698