Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
michael@0 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
michael@0 | 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
michael@0 | 3 | <html lang="en-US" style="display: none"> |
michael@0 | 4 | <head> |
michael@0 | 5 | <title></title> |
michael@0 | 6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
michael@0 | 7 | <style type="text/css"> |
michael@0 | 8 | |
michael@0 | 9 | @font-face { |
michael@0 | 10 | font-family: "MarkA"; |
michael@0 | 11 | src: url(../fonts/markA.ttf); |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | body { font-family: "MarkA"; } |
michael@0 | 15 | |
michael@0 | 16 | </style> |
michael@0 | 17 | </head> |
michael@0 | 18 | <body> |
michael@0 | 19 | |
michael@0 | 20 | <div id="t" style="visibility:hidden; width: -moz-fit-content">ABC</div> |
michael@0 | 21 | <script> |
michael@0 | 22 | // Make sure to show our stuff as late as we can, so we only get reflows |
michael@0 | 23 | // from onload. |
michael@0 | 24 | window.addEventListener("DOMContentLoaded", |
michael@0 | 25 | function() { document.documentElement.style.display = ""; }, |
michael@0 | 26 | false) |
michael@0 | 27 | window.addEventListener("load", |
michael@0 | 28 | function() { |
michael@0 | 29 | var n = document.getElementById("t"); |
michael@0 | 30 | var w = document.defaultView.getComputedStyle(n, "").width; |
michael@0 | 31 | var h = document.defaultView.getComputedStyle(n, "").height; |
michael@0 | 32 | var d = document.createElement("div"); |
michael@0 | 33 | d.style.width = w; |
michael@0 | 34 | d.style.height = h; |
michael@0 | 35 | d.style.backgroundColor = "green"; |
michael@0 | 36 | n.parentNode.removeChild(n); |
michael@0 | 37 | document.body.appendChild(d); |
michael@0 | 38 | }, |
michael@0 | 39 | false); |
michael@0 | 40 | </script> |
michael@0 | 41 | </body> |
michael@0 | 42 | </html> |