Commit be5fcdc9 authored by eustas@chromium.org's avatar eustas@chromium.org

DevTools: NetworkPanel: update hovered row labels when graph is updated.

BUG=419676

Review URL: https://codereview.chromium.org/634543002

git-svn-id: svn://svn.chromium.org/blink/trunk@183656 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 843169d9
......@@ -2564,6 +2564,8 @@ WebInspector.NetworkDataGridNode = function(parentView, request)
this._staleGraph = true;
}
WebInspector.NetworkDataGridNode._hoveredRowSymbol = Symbol("hoveredRow");
WebInspector.NetworkDataGridNode.prototype = {
/**
* @return {!WebInspector.NetworkRequest}
......@@ -2726,7 +2728,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[WebInspector.NetworkDataGridNode._hoveredRowSymbol] = this;
},
/**
......@@ -2916,6 +2927,9 @@ WebInspector.NetworkDataGridNode.prototype = {
this._labelLeftElement.title = tooltip;
this._labelRightElement.title = tooltip;
this._barRightElement.title = tooltip;
if (this._parentView[WebInspector.NetworkDataGridNode._hoveredRowSymbol] === this)
this._refreshLabelPositions();
},
_refreshLabelPositions: function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment