Changeset 161131 in webkit
- Timestamp:
- Dec 29, 2013, 4:27:51 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js ¶
r161130 r161131 92 92 if (internalRevisionsBehind < 0) 93 93 internalRevisionsBehind = 0; 94 if (openSourceRevisionsBehind || internalRevisionsBehind) { 95 var message = openSourceRevisionsBehind + " \uff0b " + internalRevisionsBehind + " revisions behind"; 96 var status = new StatusLineView(message, StatusLineView.Status.NoBubble); 97 this.element.appendChild(status.element); 98 } 99 } else if (openSourceRevisionsBehind) { 100 var message = openSourceRevisionsBehind + " " + (openSourceRevisionsBehind === 1 ? "revision behind" : "revisions behind"); 101 var status = new StatusLineView(message, StatusLineView.Status.NoBubble); 102 this.element.appendChild(status.element); 103 } 104 105 if (status) 106 new PopoverTracker(status.messageElement, this._presentPopoverForPendingCommits.bind(this), queue); 94 if (openSourceRevisionsBehind || internalRevisionsBehind) 95 var messageText = openSourceRevisionsBehind + " \uff0b " + internalRevisionsBehind + " revisions behind"; 96 } else if (openSourceRevisionsBehind) 97 var messageText = openSourceRevisionsBehind + " " + (openSourceRevisionsBehind === 1 ? "revision behind" : "revisions behind"); 98 99 if (!messageText) 100 return; 101 102 var messageElement = document.createElement("span"); // We can't just pass text to StatusLineView here, because we need an element that perfectly fits the text for popover positioning. 103 messageElement.textContent = messageText; 104 var status = new StatusLineView(messageElement, StatusLineView.Status.NoBubble); 105 this.element.appendChild(status.element); 106 107 new PopoverTracker(messageElement, this._presentPopoverForPendingCommits.bind(this), queue); 107 108 }, 108 109 -
TabularUnified trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/StatusLineView.js ¶
r161120 r161131 161 161 this._messageElement.textContent = x; 162 162 } 163 },164 165 get messageElement()166 {167 return this._messageElement;168 163 } 169 164 }; -
TabularUnified trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/StatusLineView.css ¶
r161124 r161131 114 114 } 115 115 116 .status-line.no-bubble .message {117 display: inline-block; /* Fit block to content, so that popovers are positioned correctly. */118 }119 120 116 .status-line.neutral .label, 121 117 .status-line.neutral .message, -
TabularUnified trunk/Tools/ChangeLog ¶
r161130 r161131 1 2013-12-29 Alexey Proskuryakov <ap@apple.com> 2 3 Pending revision popover is slightly misplaced at build.webkit.org/dashboard 4 https://bugs.webkit.org/show_bug.cgi?id=126278 5 6 Reviewed by Timothy Hatcher. 7 8 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js: 9 (BuildbotQueueView.prototype._appendPendingRevisionCount): Create a span for the text, 10 as StatusLineView message element has extra padding, and doesn't fit the text snugly. 11 (BuildbotQueueView.prototype._revisionPopoverContentForIteration): Added bug number to a FIXME. 12 13 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/StatusLineView.js: 14 (StatusLineView.prototype.set messageElement): Removed the getter, as we no longer need it. 15 16 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/StatusLineView.css: 17 Removed display:inline-block hack for messageElement div, as we no longer use it for measuring text bounds. 18 1 19 2013-12-29 Alexey Proskuryakov <ap@apple.com> 2 20
Note:
See TracChangeset
for help on using the changeset viewer.