CSS Masking and CSS Filters applied in wrong order
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Aug 2012 23:07:21 +0000 (23:07 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Aug 2012 23:07:21 +0000 (23:07 +0000)
commit4f903df2c59c36ab6ca4207cf58c801e56484f7e
treef3a945e0429eb5b20ca67294323f3c335e57be86
parent38769d0551c13a4c613d10296424ff3576e9bf61
CSS Masking and CSS Filters applied in wrong order
https://bugs.webkit.org/show_bug.cgi?id=94354

Reviewed by Dean Jackson.

Source/WebCore:

According to the Filter Effects spec, the order should be first filters, then masking and clipping.
Changed the order on applying the different effects in RenderLayer.

Test: css3/filters/filter-mask-clip-order.html

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::paintLayerContents): First filter, then mask and clip the content.

LayoutTests:

The test checks the correct order on applying CSS Masking, Filter Effects and CSS Clipping.
According to the Filter Effects spec, the order should be first filters, then masking and clipping.

* css3/filters/filter-mask-clip-order-expected.html: Added.
* css3/filters/filter-mask-clip-order.html: Added.
* css3/filters/resources/mask.png: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@126084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css3/filters/filter-mask-clip-order-expected.html [new file with mode: 0644]
LayoutTests/css3/filters/filter-mask-clip-order.html [new file with mode: 0644]
LayoutTests/css3/filters/resources/mask.png [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp