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

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

Issue 669113002: DevTools: replace mouseout with mouseleave where possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing 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
« no previous file with comments | « Source/devtools/front_end/timeline/Layers3DView.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineView.js
diff --git a/Source/devtools/front_end/timeline/TimelineView.js b/Source/devtools/front_end/timeline/TimelineView.js
index 5ffaef9c76ef75c08e09db01c660173b6830b7e7..acfc7d6958e6c080d46559111d201c87bf2a41a5 100644
--- a/Source/devtools/front_end/timeline/TimelineView.js
+++ b/Source/devtools/front_end/timeline/TimelineView.js
@@ -67,7 +67,7 @@ WebInspector.TimelineView = function(delegate, model, uiUtils)
this._popoverHelper = new WebInspector.PopoverHelper(this.element, this._getPopoverAnchor.bind(this), this._showPopover.bind(this));
this.element.addEventListener("mousemove", this._mouseMove.bind(this), false);
- this.element.addEventListener("mouseout", this._mouseOut.bind(this), false);
+ this.element.addEventListener("mouseleave", this._mouseLeave.bind(this), false);
this.element.addEventListener("keydown", this._keyDown.bind(this), false);
this._expandOffset = 15;
@@ -722,7 +722,7 @@ WebInspector.TimelineView.prototype = {
return anchor;
},
- _mouseOut: function()
+ _mouseLeave: function()
{
this._hideQuadHighlight();
},
@@ -1035,7 +1035,7 @@ WebInspector.TimelineRecordListRow = function(linkifier, selectRecord, scheduleR
this.element.style.cursor = "pointer";
this.element.addEventListener("click", this._onClick.bind(this), false);
this.element.addEventListener("mouseover", this._onMouseOver.bind(this), false);
- this.element.addEventListener("mouseout", this._onMouseOut.bind(this), false);
+ this.element.addEventListener("mouseleave", this._onMouseLeave.bind(this), false);
this._linkifier = linkifier;
// Warning is float right block, it goes first.
@@ -1147,11 +1147,11 @@ WebInspector.TimelineRecordListRow.prototype = {
/**
* @param {!Event} event
*/
- _onMouseOut: function(event)
+ _onMouseLeave: function(event)
{
this.element.classList.remove("hovered");
- if (this._record.graphRow())
- this._record.graphRow().element.classList.remove("hovered");
+ if (this._record.graphRow())
+ this._record.graphRow().element.classList.remove("hovered");
}
}
@@ -1166,7 +1166,7 @@ WebInspector.TimelineRecordGraphRow = function(graphContainer, selectRecord, sch
this.element = createElement("div");
this.element.row = this;
this.element.addEventListener("mouseover", this._onMouseOver.bind(this), false);
- this.element.addEventListener("mouseout", this._onMouseOut.bind(this), false);
+ this.element.addEventListener("mouseleave", this._onMouseLeave.bind(this), false);
this.element.addEventListener("click", this._onClick.bind(this), false);
this._barAreaElement = this.element.createChild("div", "timeline-graph-bar-area");
@@ -1246,7 +1246,7 @@ WebInspector.TimelineRecordGraphRow.prototype = {
/**
* @param {!Event} event
*/
- _onMouseOut: function(event)
+ _onMouseLeave: function(event)
{
this.element.classList.remove("hovered");
if (this._record.listRow())
« no previous file with comments | « Source/devtools/front_end/timeline/Layers3DView.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698