Changeset 148115 in webkit


Ignore:
Timestamp:
Apr 10, 2013 11:26:26 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Texmap] In certain situations nested blending with overflow:hidden displays clipped results
https://bugs.webkit.org/show_bug.cgi?id=114290

Patch by Noam Rosenthal <Noam Rosenthal> on 2013-04-10
Reviewed by Allan Sandfeld Jensen.

Source/WebCore:

Always apply the clip when binding a surface, even if it hasn't changed.
Otherwise when binding a nested surface and rebinding its container surface,
the clip wouldn't apply.

Test: compositing/overlap-blending/nested-overlap-overflow.html

  • platform/graphics/texmap/TextureMapperGL.cpp:

(WebCore::BitmapTextureGL::bind):

LayoutTests:

Added a ref-test that exposes an issue with TextureMapper overlap blending when composited.
This ref-test does not show correct results on Mac, skipped in TestExpectations and created a bug.

  • compositing/overlap-blending/nested-overlap-overflow-expected.html: Added.
  • compositing/overlap-blending/nested-overlap-overflow.html: Added.
  • platform/mac/TestExpectations: Skipped new tests and created bug.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r148105 r148115  
     12013-04-10  Noam Rosenthal  <noam@webkit.org>
     2
     3        [Texmap] In certain situations nested blending with overflow:hidden displays clipped results
     4        https://bugs.webkit.org/show_bug.cgi?id=114290
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        Added a ref-test that exposes an issue with TextureMapper overlap blending when composited.
     9        This ref-test does not show correct results on Mac, skipped in TestExpectations and created a bug.
     10
     11        * compositing/overlap-blending/nested-overlap-overflow-expected.html: Added.
     12        * compositing/overlap-blending/nested-overlap-overflow.html: Added.
     13        * platform/mac/TestExpectations: Skipped new tests and created bug.
     14
    1152013-04-10  Victor Costan  <costan@gmail.com>
    216
  • trunk/LayoutTests/platform/mac/TestExpectations

    r148090 r148115  
    941941compositing/overlap-blending/nested-overlap.html
    942942compositing/overlap-blending/nested-non-overlap-clipping.html
     943
     944# https://bugs.webkit.org/show_bug.cgi?id=114338
     945compositing/overlap-blending/nested-overlap-overflow.html
    943946
    944947# https://bugs.webkit.org/show_bug.cgi?id=95027
  • trunk/Source/WebCore/ChangeLog

    r148111 r148115  
     12013-04-10  Noam Rosenthal  <noam@webkit.org>
     2
     3        [Texmap] In certain situations nested blending with overflow:hidden displays clipped results
     4        https://bugs.webkit.org/show_bug.cgi?id=114290
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        Always apply the clip when binding a surface, even if it hasn't changed.
     9        Otherwise when binding a nested surface and rebinding its container surface,
     10        the clip wouldn't apply.
     11
     12        Test: compositing/overlap-blending/nested-overlap-overflow.html
     13
     14        * platform/graphics/texmap/TextureMapperGL.cpp:
     15        (WebCore::BitmapTextureGL::bind):
     16
    1172013-04-10  Antti Koivisto  <antti@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp

    r148090 r148115  
    10631063    clearIfNeeded();
    10641064    textureMapper->data().projectionMatrix = createProjectionMatrix(m_textureSize, true /* mirrored */);
    1065     m_clipStack.applyIfNeeded(m_context3D.get());
     1065    m_clipStack.apply(m_context3D.get());
    10661066}
    10671067
Note: See TracChangeset for help on using the changeset viewer.