Changeset 55614 in webkit
- Timestamp:
- Mar 6, 2010 3:00:35 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/inspector/timeline-network-resource-expected.txt
r51539 r55614 19 19 +- mimeType : application/x-javascript 20 20 +- expectedContentLength : 210 21 +- url : * DEFINED * 21 22 + } 22 23 + type : 13 … … 27 28 +- identifier : * DEFINED * 28 29 +- didFail : false 30 +- url : * DEFINED * 29 31 + } 30 32 + type : 14 -
trunk/WebCore/ChangeLog
r55613 r55614 1 2010-03-06 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: in Timeline panel, click followed with mouse move resets popover. 6 7 https://bugs.webkit.org/show_bug.cgi?id=35827 8 9 * inspector/front-end/Popover.js: 10 (WebInspector.PopoverHelper.prototype._mouseDown): 11 (WebInspector.PopoverHelper.prototype._mouseMove): 12 (WebInspector.PopoverHelper.prototype._handleMouseAction): 13 1 14 2010-03-05 Tony Chang <tony@chromium.org> 2 15 -
trunk/WebCore/inspector/front-end/Popover.js
r55530 r55614 161 161 _mouseDown: function(event) 162 162 { 163 this._resetHoverTimer(); 164 if (this._showOnClick) { 165 var anchor = this._getAnchor(event.target); 166 if (anchor) { 167 this._popup = this._showPopup(anchor); 168 this._killHidePopupTimer(); 169 } 170 } 163 this._killHidePopupTimer(); 164 this._handleMouseAction(event, true); 171 165 }, 172 166 … … 177 171 return; 178 172 179 this._resetHoverTimer();180 173 // User has 500ms to reach the popup. 181 if (this._popup ) {174 if (this._popup && !this._hidePopupTimer) { 182 175 var self = this; 183 176 function doHide() … … 189 182 } 190 183 184 this._handleMouseAction(event); 185 }, 186 187 _handleMouseAction: function(event, isMouseDown) 188 { 189 this._resetHoverTimer(); 190 191 191 this._hoverElement = this._getAnchor(event.target); 192 192 if (!this._hoverElement) 193 193 return; 194 194 195 const toolTipDelay = this._popup ? 600 : 1000;195 const toolTipDelay = isMouseDown ? 0 : (this._popup ? 600 : 1000); 196 196 this._hoverTimer = setTimeout(this._mouseHover.bind(this, this._hoverElement), toolTipDelay); 197 197 }, -
trunk/WebCore/inspector/front-end/TimelinePanel.js
r55575 r55614 625 625 if (sendRequestRecord) { // False if we started instrumentation in the middle of request. 626 626 sendRequestRecord._responseReceivedFormattedTime = this.startTime; 627 record.data.url = sendRequestRecord.data.url; 627 628 this.startTime = sendRequestRecord.startTime; 628 629 this.details = this._getRecordDetails(sendRequestRecord, sendRequestRecords); … … 633 634 var sendRequestRecord = sendRequestRecords[record.data.identifier]; 634 635 if (sendRequestRecord) {// False for main resource. 636 record.data.url = sendRequestRecord.data.url; 635 637 this.startTime = sendRequestRecord._responseReceivedFormattedTime; 636 638 this.callerScriptName = sendRequestRecord.callerScriptName; … … 696 698 recordContentTable.appendChild(this._createRow(WebInspector.UIString("Duration"), text)); 697 699 700 const recordTypes = WebInspector.TimelineAgent.RecordType; 698 701 if (this.details) { 699 if ( this.type == WebInspector.TimelineAgent.RecordType.TimerInstall ||700 this.type == WebInspector.TimelineAgent.RecordType.TimerFire ||701 this.type == WebInspector.TimelineAgent.RecordType.TimerRemove) {702 if (this.type == recordTypes.TimerInstall || 703 this.type == recordTypes.TimerFire || 704 this.type == recordTypes.TimerRemove) { 702 705 recordContentTable.appendChild(this._createRow(WebInspector.UIString("Timer Id"), this.data.timerId)); 703 706 if (this.timeout) { … … 709 712 recordContentTable.appendChild(this._createLinkRow(WebInspector.UIString("Call Site"), link)); 710 713 } 711 } else if ( this.type == WebInspector.TimelineAgent.RecordType.FunctionCall) {714 } else if (this.type == recordTypes.FunctionCall) { 712 715 var link = WebInspector.linkifyResourceAsNode(this.data.scriptName, "scripts", this.data.scriptLine, "timeline-details"); 713 716 recordContentTable.appendChild(this._createLinkRow(WebInspector.UIString("Location"), link)); 717 } else if (this.type === recordTypes.ResourceSendRequest || this.type === recordTypes.ResourceReceiveResponse || this.type === recordTypes.ResourceFinish) { 718 var link = WebInspector.linkifyResourceAsNode(this.data.url, "resources", null, "timeline-details"); 719 recordContentTable.appendChild(this._createLinkRow(WebInspector.UIString("Resource"), link)); 714 720 } else 715 721 recordContentTable.appendChild(this._createRow(WebInspector.UIString("Details"), this.details)); … … 740 746 case WebInspector.TimelineAgent.RecordType.EvaluateScript: 741 747 case WebInspector.TimelineAgent.RecordType.ResourceSendRequest: 742 return WebInspector.displayNameForURL(record.data.url);743 748 case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse: 744 749 case WebInspector.TimelineAgent.RecordType.ResourceFinish: 745 var sendRequestRecord = sendRequestRecords[record.data.identifier]; 746 return sendRequestRecord ? WebInspector.displayNameForURL(sendRequestRecord.data.url) : ""; 750 return WebInspector.displayNameForURL(record.data.url); 747 751 case WebInspector.TimelineAgent.RecordType.MarkTimeline: 748 752 return record.data.message;
Note: See TracChangeset
for help on using the changeset viewer.