Commit de456d8a authored by pfeldman's avatar pfeldman Committed by Commit bot

DevTools: render continue to location as execution line instead of green dots.

Review-Url: https://codereview.chromium.org/2844603002
Cr-Commit-Position: refs/heads/master@{#467806}
parent c7c2befd
......@@ -28,16 +28,39 @@
background-color: rgb(255, 255, 194);
}
.CodeMirror .source-frame-eval-expression-start {
border-left-width: 1px;
margin-left: -1px;
}
.CodeMirror .source-frame-eval-expression-end {
border-right-width: 1px;
margin-right: -1px;
}
.CodeMirror .source-frame-eval-expression-start {
.CodeMirror .source-frame-continue-to-location {
outline: 0;
border: 1px solid transparent;
border-left-width: 0;
border-right-width: 0;
background-color: rgb(230, 236, 255);
cursor: pointer;
}
.CodeMirror .source-frame-continue-to-location:hover {
border: 1px solid rgb(121, 141, 254);
background-color: rgb(171, 191, 254);
}
.CodeMirror .source-frame-continue-to-location-start {
border-left-width: 1px;
margin-left: -1px;
}
.CodeMirror .source-frame-continue-to-location-end {
border-right-width: 1px;
margin-right: -1px;
}
.CodeMirror-readonly .CodeMirror-cursor {
display: none;
}
......
......@@ -34,7 +34,7 @@
UI.PopoverHelper = class {
/**
* @param {!Element} container
* @param {function(!Event):?UI.PopoverRequest} getRequest
* @param {function(!MouseEvent):?UI.PopoverRequest} getRequest
*/
constructor(container, getRequest) {
this._disableOnClick = false;
......@@ -93,7 +93,7 @@ UI.PopoverHelper = class {
this._startHidePopoverTimer(0);
this._stopShowPopoverTimer();
this._startShowPopoverTimer(event, 0);
this._startShowPopoverTimer(/** @type {!MouseEvent} */ (event), 0);
}
/**
......@@ -108,7 +108,8 @@ UI.PopoverHelper = class {
this._stopShowPopoverTimer();
if (event.which && this._disableOnClick)
return;
this._startShowPopoverTimer(event, this.isPopoverVisible() ? this._showTimeout * 0.6 : this._showTimeout);
this._startShowPopoverTimer(
/** @type {!MouseEvent} */ (event), this.isPopoverVisible() ? this._showTimeout * 0.6 : this._showTimeout);
}
/**
......@@ -154,7 +155,7 @@ UI.PopoverHelper = class {
}
/**
* @param {!Event} event
* @param {!MouseEvent} event
* @param {number} timeout
*/
_startShowPopoverTimer(event, timeout) {
......
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