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

Unified Diff: Source/devtools/front_end/timeline/CountersGraph.js

Issue 669113002: DevTools: replace mouseout with mouseleave where possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/CountersGraph.js
diff --git a/Source/devtools/front_end/timeline/CountersGraph.js b/Source/devtools/front_end/timeline/CountersGraph.js
index 8e4edbca78dee2cbf8eab367fe21416ba57927ac..5b039c599214697a715568fcfd3f5bb69cffecba 100644
--- a/Source/devtools/front_end/timeline/CountersGraph.js
+++ b/Source/devtools/front_end/timeline/CountersGraph.js
@@ -56,7 +56,7 @@ WebInspector.CountersGraph = function(title, delegate, model)
this._canvasContainer.addEventListener("mouseover", this._onMouseMove.bind(this), true);
this._canvasContainer.addEventListener("mousemove", this._onMouseMove.bind(this), true);
- this._canvasContainer.addEventListener("mouseout", this._onMouseOut.bind(this), true);
+ this._canvasContainer.addEventListener("mouseleave", this._onMouseLeave.bind(this), true);
this._canvasContainer.addEventListener("click", this._onClick.bind(this), true);
// We create extra timeline grid here to reuse its event dividers.
this._timelineGrid = new WebInspector.TimelineGrid();
@@ -201,7 +201,7 @@ WebInspector.CountersGraph.prototype = {
/**
* @param {!Event} event
*/
- _onMouseOut: function(event)
+ _onMouseLeave: function(event)
{
delete this._markerXPosition;
this._clearCurrentValueAndMarker();

Powered by Google App Engine
This is Rietveld 408576698