[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da
ojan at chromium.org
ojan at chromium.org
Wed Dec 22 18:41:16 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 9f468b6b066365247366e3bde58566bc76de04c0
Author: ojan at chromium.org <ojan at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Dec 15 20:26:22 2010 +0000
2010-12-15 Ojan Vafai <ojan at chromium.org>
Reviewed by Adam Barth.
have the statusbubble postMessage it's metrics so that embedders can properly size the iframe
https://bugs.webkit.org/show_bug.cgi?id=51125
* QueueStatusServer/templates/statusbubble.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog
index 78f2f1c..759ef77 100644
--- a/WebKitTools/ChangeLog
+++ b/WebKitTools/ChangeLog
@@ -1,3 +1,12 @@
+2010-12-15 Ojan Vafai <ojan at chromium.org>
+
+ Reviewed by Adam Barth.
+
+ have the statusbubble postMessage it's metrics so that embedders can properly size the iframe
+ https://bugs.webkit.org/show_bug.cgi?id=51125
+
+ * QueueStatusServer/templates/statusbubble.html:
+
2010-12-15 Darin Adler <darin at apple.com>
* Scripts/webkitpy/common/net/buildbot: Added property svn:ignore.
diff --git a/WebKitTools/QueueStatusServer/templates/statusbubble.html b/WebKitTools/QueueStatusServer/templates/statusbubble.html
index f11544d..0de6d33 100644
--- a/WebKitTools/QueueStatusServer/templates/statusbubble.html
+++ b/WebKitTools/QueueStatusServer/templates/statusbubble.html
@@ -7,6 +7,9 @@ body {
margin: 0px;
padding: 0px;
}
+#bubbleContainer {
+ display:inline-block;
+}
.status {
display: block;
float: left;
@@ -47,18 +50,27 @@ body {
function statusDetail(patch_id) {
top.location = "/patch/" + patch_id
}
+window.addEventListener("message", function(e) {
+ if (e.data == 'containerMetrics') {
+ e.source.postMessage({'width': bubbleContainer.offsetWidth, 'height': bubbleContainer.offsetHeight},
+ e.origin);
+ } else
+ console.log("Unknown postMessage: " + e.data);
+}, false);
</script>
</head>
<body>
-{% for bubble in bubbles %}
-<div class="status {{ bubble.state }}"{% if bubble.status %}
- onclick="statusDetail({{ bubble.attachment_id }})"
- title="{{ bubble.status.date|timesince }} ago"{% endif %}>
- {{ bubble.name }}
- {% if bubble.queue_position %}
- <span class="queue_position">#{{ bubble.queue_position }}</span>
- {% endif %}
+<div id="bubbleContainer">
+ {% for bubble in bubbles %}
+ <div class="status {{ bubble.state }}"{% if bubble.status %}
+ onclick="statusDetail({{ bubble.attachment_id }})"
+ title="{{ bubble.status.date|timesince }} ago"{% endif %}>
+ {{ bubble.name }}
+ {% if bubble.queue_position %}
+ <span class="queue_position">#{{ bubble.queue_position }}</span>
+ {% endif %}
+ </div>
+ {% endfor %}
</div>
-{% endfor %}
</body>
</html>
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list