Should never be reached failure in WebCore::backgroundRectForBox
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 18:07:09 +0000 (18:07 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 18:07:09 +0000 (18:07 +0000)
commit6ef8ac6fa73e8c1e7c4a35c6a500cb8469d996c0
tree4cad1f6a6067464ea5faec73ea47f3e8a6afaa88
parent3de2a50c2e7a8e6332980e0da13388d4f0a7a3a5
Should never be reached failure in WebCore::backgroundRectForBox
https://bugs.webkit.org/show_bug.cgi?id=150232

Reviewed by Simon Fraser.

We should never end up with simple container for composited layer when background-clip: text is present.
(not even when the box has no decoration to paint)

Source/WebCore:

Test: fast/backgrounds/background-clip-text-with-simple-container.html

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::paintsBoxDecorations):
(WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
(WebCore::backgroundRectForBox):

LayoutTests:

* fast/backgrounds/background-clip-text-with-simple-container-expected.txt: Added.
* fast/backgrounds/background-clip-text-with-simple-container.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/background-clip-text-with-simple-container-expected.txt [new file with mode: 0644]
LayoutTests/fast/backgrounds/background-clip-text-with-simple-container.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerBacking.cpp
Source/WebCore/rendering/RenderLayerBacking.h