layout/reftests/canvas/784573-1-ref.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 <!DOCTYPE html>
     2 <!--
     3     Any copyright is dedicated to the Public Domain.
     4     http://creativecommons.org/licenses/publicdomain/
     5   -->
     6 <html>
     7 <head>
     8 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     9 </head>
    10 <body>
    11 <p><canvas width="100" height="100" id="c"></canvas></p>
    12 <script type="text/javascript">
    13 var c = document.getElementById('c').getContext('2d');
    15 c.shadowColor = '#f00';
    16 c.shadowBlur = 4;
    17 c.lineWidth = 2;
    19 c.moveTo(80, 40);
    20 c.lineTo(50, 70);
    21 c.lineTo(20, 40);
    22 c.lineTo(50, 10);
    23 c.closePath();
    24 c.stroke();
    26 </script>
    27 </body>
    28 </html>

mercurial