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

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

Issue 1193593002: DevTools: Align flamechart ruler with overview (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 | Source/devtools/front_end/ui_lazy/flameChart.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) 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 { 1486 {
1487 var showScroll = this._totalHeight > this._offsetHeight; 1487 var showScroll = this._totalHeight > this._offsetHeight;
1488 if (this._vScrollElement.classList.contains("hidden") === showScroll) { 1488 if (this._vScrollElement.classList.contains("hidden") === showScroll) {
1489 this._vScrollElement.classList.toggle("hidden", !showScroll); 1489 this._vScrollElement.classList.toggle("hidden", !showScroll);
1490 this._updateContentElementSize(); 1490 this._updateContentElementSize();
1491 } 1491 }
1492 }, 1492 },
1493 1493
1494 _updateContentElementSize: function() 1494 _updateContentElementSize: function()
1495 { 1495 {
1496 this._offsetWidth = this.contentElement.offsetWidth - (WebInspector.isMa c() ? 0 : this._vScrollElement.offsetWidth); 1496 this._offsetWidth = this.contentElement.offsetWidth;
1497 this._offsetHeight = this.contentElement.offsetHeight; 1497 this._offsetHeight = this.contentElement.offsetHeight;
1498 }, 1498 },
1499 1499
1500 _onScroll: function() 1500 _onScroll: function()
1501 { 1501 {
1502 this._scrollTop = this._vScrollElement.scrollTop; 1502 this._scrollTop = this._vScrollElement.scrollTop;
1503 this.scheduleUpdate(); 1503 this.scheduleUpdate();
1504 }, 1504 },
1505 1505
1506 scheduleUpdate: function() 1506 scheduleUpdate: function()
(...skipping 24 matching lines...) Expand all
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 | Source/devtools/front_end/ui_lazy/flameChart.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698