[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

enne at google.com enne at google.com
Sun Feb 20 23:30:01 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit f95de30a250e0a3a2252d216a96dc5bec6006187
Author: enne at google.com <enne at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jan 20 23:53:44 2011 +0000

    2011-01-20  Adrienne Walker  <enne at google.com>
    
            Reviewed by James Robinson.
    
            [chromium] Add a test for a render surface that the uses alpha channel.
            https://bugs.webkit.org/show_bug.cgi?id=52766
    
            * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum: Added.
            * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Added.
            * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt: Added.
            * platform/chromium/compositing/render-surface-alpha-blending.html: Added.
    2011-01-19  Adrienne Walker  <enne at google.com>
    
            Reviewed by James Robinson.
    
            [chromium] Composited render surfaces should allow writes to alpha channel.
            https://bugs.webkit.org/show_bug.cgi?id=52766
    
            Test: LayoutTests/platform/chromium/compositing
    
            * platform/graphics/chromium/LayerRendererChromium.cpp:
            (WebCore::LayerRendererChromium::drawLayers):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76299 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 580dbde..b8b2f78 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,15 @@
+2011-01-20  Adrienne Walker  <enne at google.com>
+
+        Reviewed by James Robinson.
+
+        [chromium] Add a test for a render surface that the uses alpha channel.
+        https://bugs.webkit.org/show_bug.cgi?id=52766
+
+        * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum: Added.
+        * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Added.
+        * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt: Added.
+        * platform/chromium/compositing/render-surface-alpha-blending.html: Added.
+
 2011-01-14  Jer Noble  <jer.noble at apple.com>
 
         Reviewed by Eric Carlson.
diff --git a/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum
new file mode 100644
index 0000000..3cf4a4c
--- /dev/null
+++ b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum
@@ -0,0 +1 @@
+f12f151e804c5ce584a4bdc588aa3c29
\ No newline at end of file
diff --git a/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png
new file mode 100644
index 0000000..ab249a3
Binary files /dev/null and b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png differ
diff --git a/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt
new file mode 100644
index 0000000..3693021
--- /dev/null
+++ b/LayoutTests/platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+layer at (0,0) size 800x600
+  RenderBlock (positioned) {DIV} at (0,0) size 800x600 [bgcolor=#C80000]
+layer at (0,0) size 800x600
+  RenderBlock (positioned) {DIV} at (0,0) size 800x600 [bgcolor=#006400]
+layer at (0,0) size 800x1
+  RenderBlock {DIV} at (0,0) size 800x1
+    RenderHTMLCanvas {CANVAS} at (0,0) size 1x1
diff --git a/LayoutTests/platform/chromium/compositing/render-surface-alpha-blending.html b/LayoutTests/platform/chromium/compositing/render-surface-alpha-blending.html
new file mode 100644
index 0000000..77ac70f
--- /dev/null
+++ b/LayoutTests/platform/chromium/compositing/render-surface-alpha-blending.html
@@ -0,0 +1,32 @@
+<html>
+    <head>
+        <style>
+            #layer {
+                -webkit-transform:translateZ(0);
+                opacity: 0.75;
+                background-color: rgb(0, 100, 0);
+            }
+            #child {
+                -webkit-transform:translateZ(0);
+            }
+            #base {
+                background-color: rgb(200, 0, 0);
+            }
+
+            .fullpage {
+                position: fixed;
+                top: 0px;
+                left: 0px;
+                width: 100%;
+                height: 100%;
+            }
+        </style>
+    </head>
+    <body>
+        <div id="base" class="fullpage"></div>
+        <div id="layer" class="fullpage">
+            <!-- layer needs to have a child with content -->
+            <div id="child"><canvas width="1px" height="1px"></canvas></div>
+        </div>
+    </body>
+</html>
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 570d83e..fe29eb6 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2011-01-19  Adrienne Walker  <enne at google.com>
+
+        Reviewed by James Robinson.
+
+        [chromium] Composited render surfaces should allow writes to alpha channel.
+        https://bugs.webkit.org/show_bug.cgi?id=52766
+
+        Test: LayoutTests/platform/chromium/compositing
+
+        * platform/graphics/chromium/LayerRendererChromium.cpp:
+        (WebCore::LayerRendererChromium::drawLayers):
+
 2011-01-14  Jer Noble  <jer.noble at apple.com>
 
         Reviewed by Eric Carlson.
diff --git a/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp b/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
index 728339e..90eac74 100644
--- a/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
+++ b/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
@@ -263,6 +263,9 @@ void LayerRendererChromium::drawLayers(const IntRect& visibleRect, const IntRect
 
     updateAndDrawRootLayer(tilePaint, scrollbarPaint, visibleRect, contentRect);
 
+    // Re-enable color writes to layers, which may be partially transparent.
+    m_context->colorMask(true, true, true, true);
+
     // Set the root visible/content rects --- used by subsequent drawLayers calls.
     m_rootVisibleRect = visibleRect;
     m_rootContentRect = contentRect;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list