Skip to content
  • achicu@adobe.com's avatar
    [CSS Shaders][Chromium] Filters area applied twice when CustomFilterOperation is in the list · 196c77ea
    achicu@adobe.com authored
    https://bugs.webkit.org/show_bug.cgi?id=93900
    
    Reviewed by James Robinson.
    
    Source/WebCore:
    
    Whenever the platform cannot render a shader in hardware it will fallback to software.
    In such cases, the platform should remove any old filters applied, so that the filters do not apply twice.
    
    Test: css3/filters/custom/filter-fallback-to-software.html
    
    * platform/graphics/chromium/GraphicsLayerChromium.cpp:
    (WebCore::GraphicsLayerChromium::setFilters):
    
    LayoutTests:
    
    Added a test that first applies a blur and then switches to a CSS Shader plus a blur.
    The test was failing on Chromium by not removing the old blur filter from the platform layer.
    
    * css3/filters/custom/filter-fallback-to-software-expected.html: Added.
    * css3/filters/custom/filter-fallback-to-software.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    196c77ea