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"> |
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 | body { font-family: "MarkA"; } |
michael@0 | 9 | </style> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | |
michael@0 | 13 | <div id="t" style="visibility:hidden; width: -moz-fit-content">ABC</div> |
michael@0 | 14 | <script> |
michael@0 | 15 | document.body.offsetWidth; |
michael@0 | 16 | var n = document.getElementById("t"); |
michael@0 | 17 | var w = document.defaultView.getComputedStyle(n, "").width; |
michael@0 | 18 | var h = document.defaultView.getComputedStyle(n, "").height; |
michael@0 | 19 | var d = document.createElement("div"); |
michael@0 | 20 | d.style.width = w; |
michael@0 | 21 | d.style.height = h; |
michael@0 | 22 | d.style.backgroundColor = "green"; |
michael@0 | 23 | n.parentNode.removeChild(n); |
michael@0 | 24 | document.body.appendChild(d); |
michael@0 | 25 | </script> |
michael@0 | 26 | </body> |
michael@0 | 27 | </html> |