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

Side by Side Diff: Source/devtools/front_end/ui_lazy/FlameChart.js

Issue 1213563003: DevTools: Fix flamechart height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 this._pixelWindowWidth = this._offsetWidth - this._paddingLeft; 1463 this._pixelWindowWidth = this._offsetWidth - this._paddingLeft;
1464 this._totalPixels = Math.floor(this._pixelWindowWidth / this._windowWidt h); 1464 this._totalPixels = Math.floor(this._pixelWindowWidth / this._windowWidt h);
1465 this._pixelWindowLeft = Math.floor(this._totalPixels * this._windowLeft) ; 1465 this._pixelWindowLeft = Math.floor(this._totalPixels * this._windowLeft) ;
1466 1466
1467 this._timeToPixel = this._totalPixels / this._totalTime; 1467 this._timeToPixel = this._totalPixels / this._totalTime;
1468 this._pixelToTime = this._totalTime / this._totalPixels; 1468 this._pixelToTime = this._totalTime / this._totalPixels;
1469 this._paddingLeftTime = this._paddingLeft / this._timeToPixel; 1469 this._paddingLeftTime = this._paddingLeft / this._timeToPixel;
1470 1470
1471 this._baseHeight = this._isTopDown ? WebInspector.FlameChart.DividersBar Height : this._offsetHeight - this._barHeight; 1471 this._baseHeight = this._isTopDown ? WebInspector.FlameChart.DividersBar Height : this._offsetHeight - this._barHeight;
1472 1472
1473 this._totalHeight = this._levelToHeight(this._dataProvider.maxStackDepth () + 1); 1473 this._totalHeight = this._levelToHeight(this._dataProvider.maxStackDepth ());
1474 this._vScrollContent.style.height = this._totalHeight + "px"; 1474 this._vScrollContent.style.height = this._totalHeight + "px";
1475 this._updateScrollBar(); 1475 this._updateScrollBar();
1476 }, 1476 },
1477 1477
1478 onResize: function() 1478 onResize: function()
1479 { 1479 {
1480 this._updateScrollBar(); 1480 this._updateScrollBar();
1481 this._updateContentElementSize(); 1481 this._updateContentElementSize();
1482 this.scheduleUpdate(); 1482 this.scheduleUpdate();
1483 }, 1483 },
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 this.update(); 1531 this.update();
1532 }, 1532 },
1533 1533
1534 _enabled: function() 1534 _enabled: function()
1535 { 1535 {
1536 return this._rawTimelineDataLength !== 0; 1536 return this._rawTimelineDataLength !== 0;
1537 }, 1537 },
1538 1538
1539 __proto__: WebInspector.HBox.prototype 1539 __proto__: WebInspector.HBox.prototype
1540 } 1540 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698