Chromium Code Reviews| Index: Source/devtools/front_end/network/NetworkPanel.js |
| diff --git a/Source/devtools/front_end/network/NetworkPanel.js b/Source/devtools/front_end/network/NetworkPanel.js |
| index b74e9678710ee0d2b30cfed4f8c3a615ec366324..109c19a9320a535199d916421cfd5641ba543c7d 100644 |
| --- a/Source/devtools/front_end/network/NetworkPanel.js |
| +++ b/Source/devtools/front_end/network/NetworkPanel.js |
| @@ -2717,7 +2717,16 @@ WebInspector.NetworkDataGridNode.prototype = { |
| this._labelRightElement = this._barAreaElement.createChild("div", "network-graph-label"); |
| - cell.addEventListener("mouseover", this._refreshLabelPositions.bind(this), false); |
| + cell.addEventListener("mouseover", this._onMouseOver.bind(this), false); |
| + }, |
| + |
| + /** |
| + * @param {!Event} event |
| + */ |
| + _onMouseOver: function(event) |
| + { |
| + this._refreshLabelPositions(); |
| + this._parentView.__hoveredRow = this; |
|
vsevik
2014/10/14 06:48:08
Let's use Symbol
eustas
2014/10/14 08:17:47
Done.
|
| }, |
| /** |
| @@ -2907,6 +2916,10 @@ WebInspector.NetworkDataGridNode.prototype = { |
| this._labelLeftElement.title = tooltip; |
| this._labelRightElement.title = tooltip; |
| this._barRightElement.title = tooltip; |
| + |
| + if (this._parentView.__hoveredRow === this) { |
| + this._refreshLabelPositions(); |
| + } |
| }, |
| _refreshLabelPositions: function() |