Bug 607958 - Opacity rounding of 0.5 is different when using a layer and painting directly. Use a value of 0.8 which divides evenly into 255 to avoid rounding differences. Bug 602200 did not fix this rounding difference. r=roc
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 08 Nov 2010 14:40:11 -0500
changeset 57231 be57c513c2ace26a60194acdca019e5ad7684345
parent 57230 40cc37bb536ed7026b0f69215504c0ed69cabdbe
child 57232 d12c46b9e27fe367434b588954805578f5faac5c
push id16846
push userbsmedberg@mozilla.com
push dateWed, 10 Nov 2010 15:29:47 +0000
treeherdermozilla-central@bdbef533364f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs607958, 602200
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 607958 - Opacity rounding of 0.5 is different when using a layer and painting directly. Use a value of 0.8 which divides evenly into 255 to avoid rounding differences. Bug 602200 did not fix this rounding difference. r=roc
modules/plugin/test/reftest/div-alpha-opacity.html
modules/plugin/test/reftest/plugin-alpha-opacity.html
--- a/modules/plugin/test/reftest/div-alpha-opacity.html
+++ b/modules/plugin/test/reftest/div-alpha-opacity.html
@@ -3,17 +3,17 @@
 <head>
 <style type="text/css">
 #one {
   position:absolute;
   left:0px; top:0px;
   width:400px; height:400px;
   border:2px solid blue;
   background-color: rgb(160,160,160);
-  opacity:0.5;
+  opacity:0.8;
   z-index:1;
 }
 #two {
   position:absolute;
   top:100px; left:100px;
   width:200px; height:200px;
   z-index:0;
   background-color: rgb(255,0,0);
--- a/modules/plugin/test/reftest/plugin-alpha-opacity.html
+++ b/modules/plugin/test/reftest/plugin-alpha-opacity.html
@@ -2,17 +2,17 @@
 <html>
 <head>
 <style type="text/css">
 #one {
   position:absolute;
   left:0px; top:0px;
   width:404px; height:404px;
   border:2px solid blue;
-  opacity:.5;
+  opacity:.8;
   z-index:1;
 }
 #two {
   position:absolute;
   top:100px; left:100px;
   width:200px; height:200px;
   z-index:0;
   background-color: rgb(255,0,0);