| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |