Changeset 173867 in webkit


Ignore:
Timestamp:
Sep 23, 2014 12:47:21 AM (10 years ago)
Author:
Ion Rosca
Message:

[CSS Blending] The composited layers isolated by the page group should blend with the default white background color.
https://bugs.webkit.org/show_bug.cgi?id=136563

Reviewed by Simon Fraser.

Source/WebCore:

If a blending layer is not isolated, then it should blend with a white backdrop:
http://dev.w3.org/fxtf/compositing-1/#pagebackdrop

Tests: css3/blending/blend-mode-body-composited-child-background-color.html

css3/blending/blend-mode-body-composited-child.html

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
If the isolating composited layer is the root renderer, then it should have a backing store
into which the initial white backdrop will be painted.

LayoutTests:

  • css3/blending/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer-expected.txt:
  • css3/blending/blend-mode-body-composited-child-background-color-expected.html: Added.
  • css3/blending/blend-mode-body-composited-child-background-color.html: Added.
  • css3/blending/blend-mode-body-composited-child-expected.html: Added.
  • css3/blending/blend-mode-body-composited-child.html: Added.
  • css3/blending/blend-mode-parent-of-composited-blended-has-layer-expected.txt:
  • css3/blending/blend-mode-with-composited-descendant-should-have-layer-expected.txt:
Location:
trunk
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r173864 r173867  
     12014-09-23  Ion Rosca  <rosca@adobe.com>
     2
     3        [CSS Blending] The composited layers isolated by the page group should blend with the default white background color.
     4        https://bugs.webkit.org/show_bug.cgi?id=136563
     5
     6        Reviewed by Simon Fraser.
     7
     8        * css3/blending/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer-expected.txt:
     9        * css3/blending/blend-mode-body-composited-child-background-color-expected.html: Added.
     10        * css3/blending/blend-mode-body-composited-child-background-color.html: Added.
     11        * css3/blending/blend-mode-body-composited-child-expected.html: Added.
     12        * css3/blending/blend-mode-body-composited-child.html: Added.
     13        * css3/blending/blend-mode-parent-of-composited-blended-has-layer-expected.txt:
     14        * css3/blending/blend-mode-with-composited-descendant-should-have-layer-expected.txt:
     15
    1162014-09-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    217
  • trunk/LayoutTests/css3/blending/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer-expected.txt

    r173302 r173867  
    99        (GraphicsLayer
    1010          (bounds 800.00 600.00)
     11          (drawsContent 1)
    1112          (children 2
    1213            (GraphicsLayer
  • trunk/LayoutTests/css3/blending/blend-mode-parent-of-composited-blended-has-layer-expected.txt

    r173302 r173867  
    99        (GraphicsLayer
    1010          (bounds 800.00 600.00)
     11          (drawsContent 1)
    1112          (children 1
    1213            (GraphicsLayer
  • trunk/LayoutTests/css3/blending/blend-mode-with-composited-descendant-should-have-layer-expected.txt

    r173302 r173867  
    99        (GraphicsLayer
    1010          (bounds 800.00 600.00)
     11          (drawsContent 1)
    1112          (children 1
    1213            (GraphicsLayer
  • trunk/Source/WebCore/ChangeLog

    r173866 r173867  
     12014-09-23  Ion Rosca  <rosca@adobe.com>
     2
     3        [CSS Blending] The composited layers isolated by the page group should blend with the default white background color.
     4        https://bugs.webkit.org/show_bug.cgi?id=136563
     5
     6        Reviewed by Simon Fraser.
     7
     8        If a blending layer is not isolated, then it should blend with a white backdrop:
     9        http://dev.w3.org/fxtf/compositing-1/#pagebackdrop
     10
     11        Tests: css3/blending/blend-mode-body-composited-child-background-color.html
     12               css3/blending/blend-mode-body-composited-child.html
     13
     14        * rendering/RenderLayerBacking.cpp:
     15        (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
     16        If the isolating composited layer is the root renderer, then it should have a backing store
     17        into which the initial white backdrop will be painted.
     18
    1192014-09-22  Christophe Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r173808 r173867  
    17071707        return false;
    17081708
     1709    if (renderer().isRoot() && m_owningLayer.isolatesCompositedBlending())
     1710        return false;
     1711
    17091712    if (renderer().isRenderView()) {
    17101713        // Look to see if the root object has a non-simple background
Note: See TracChangeset for help on using the changeset viewer.