layout/reftests/image-element/image-outside-document-invalidate.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

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.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/licenses/publicdomain/
     5      Test that document.mozSetImageElement() after an image load causes a repaint.
     6 -->
     7 <!DOCTYPE html>
     8 <html class="reftest-wait">
     9 <body style="background: -moz-element(#e) red">
    11 <script>
    13 window.addEventListener("MozReftestInvalidate", function () {
    14   var img = new Image();
    15   img.src = "data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs="; /* 1x1 white gif */
    16   document.mozSetImageElement("e", img);
    17   img.onload = function () {
    18     document.documentElement.className = "";
    19   };
    20 }, false);
    22 </script>
    23 </body>
    24 </html>

mercurial