On Feb 10, 2008 11:14 PM, Anne van Kesteren <<a href="mailto:annevk@opera.com">annevk@opera.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">That would mean that passing ImageData around between two <canvas><br></div>elements doesn't always work as expected. I think that's highly<br>undesirable. Is there any implementation where we know this will the case?<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>Not yet, but in Gecko when we get around to implementing variable-resolution canvas backing stores, I expect it would happen because different documents --- even different documents that can reference each other --- can be zoomed different amounts, which affects the device-pixels-per-CSS-pixel ratio we use internally.<br>
</div></div><br>It's actually worse than that, because we respond to dynamic DPI changes (due to zooming or changes in preferences; I'm not sure if we actually support detection of hardware DPI changes, e.g. due to screen mode switching, but we easily could). So we might want to dynamically rescale the canvas backing store.<br>
<br>Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]