Changeset 74135 in webkit
- Timestamp:
- Dec 15, 2010 12:26:22 PM (13 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r74128 r74135 1 2010-12-15 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 have the statusbubble postMessage it's metrics so that embedders can properly size the iframe 6 https://bugs.webkit.org/show_bug.cgi?id=51125 7 8 * QueueStatusServer/templates/statusbubble.html: 9 1 10 2010-12-15 Darin Adler <darin@apple.com> 2 11 -
trunk/WebKitTools/QueueStatusServer/templates/statusbubble.html
r70079 r74135 7 7 margin: 0px; 8 8 padding: 0px; 9 } 10 #bubbleContainer { 11 display:inline-block; 9 12 } 10 13 .status { … … 48 51 top.location = "/patch/" + patch_id 49 52 } 53 window.addEventListener("message", function(e) { 54 if (e.data == 'containerMetrics') { 55 e.source.postMessage({'width': bubbleContainer.offsetWidth, 'height': bubbleContainer.offsetHeight}, 56 e.origin); 57 } else 58 console.log("Unknown postMessage: " + e.data); 59 }, false); 50 60 </script> 51 61 </head> 52 62 <body> 53 {% for bubble in bubbles %} 54 <div class="status {{ bubble.state }}"{% if bubble.status %} 55 onclick="statusDetail({{ bubble.attachment_id }})" 56 title="{{ bubble.status.date|timesince }} ago"{% endif %}> 57 {{ bubble.name }} 58 {% if bubble.queue_position %} 59 <span class="queue_position">#{{ bubble.queue_position }}</span> 60 {% endif %} 63 <div id="bubbleContainer"> 64 {% for bubble in bubbles %} 65 <div class="status {{ bubble.state }}"{% if bubble.status %} 66 onclick="statusDetail({{ bubble.attachment_id }})" 67 title="{{ bubble.status.date|timesince }} ago"{% endif %}> 68 {{ bubble.name }} 69 {% if bubble.queue_position %} 70 <span class="queue_position">#{{ bubble.queue_position }}</span> 71 {% endif %} 72 </div> 73 {% endfor %} 61 74 </div> 62 {% endfor %}63 75 </body> 64 76 </html>
Note: See TracChangeset
for help on using the changeset viewer.