Use borderBoxRect instead of contentBoxRect for backdrop filter.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2015 06:23:47 +0000 (06:23 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2015 06:23:47 +0000 (06:23 +0000)
commit725faa9214a394b4dfa2f0f4470c33dec3d54b8a
treeee4a42395ec7a59ffc8a514eb934632f7c4f3777
parentd445c9e497c0b75bcd6e00c2a3f39f9debc999bb
Use borderBoxRect instead of contentBoxRect for backdrop filter.
https://bugs.webkit.org/show_bug.cgi?id=145606

Reviewed by Simon Fraser.

Backdrop filter should use border box rect. It also needs to take css clip into account.

Source/WebCore:

Tests: css3/filters/backdrop/backdrop-filter-with-cliprect.html
       css3/filters/backdrop/backdrop-filter-with-mask.html

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateBackdropFiltersGeometry):

LayoutTests:

* css3/filters/backdrop/backdrop-filter-does-not-size-properly-border-and-padding-expected.txt:
* css3/filters/backdrop/backdrop-filter-with-cliprect-expected.txt: Added.
* css3/filters/backdrop/backdrop-filter-with-cliprect.html: Added.
* css3/filters/backdrop/backdrop-filter-with-mask-expected.txt: Added.
* css3/filters/backdrop/backdrop-filter-with-mask.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css3/filters/backdrop/backdrop-filter-does-not-size-properly-border-and-padding-expected.txt
LayoutTests/css3/filters/backdrop/backdrop-filter-with-cliprect-expected.txt [new file with mode: 0644]
LayoutTests/css3/filters/backdrop/backdrop-filter-with-cliprect.html [new file with mode: 0644]
LayoutTests/css3/filters/backdrop/backdrop-filter-with-mask-expected.txt [new file with mode: 0644]
LayoutTests/css3/filters/backdrop/backdrop-filter-with-mask.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerBacking.cpp