Repeated background images with zero size should display the background color
authorjustin_michaud@apple.com <justin_michaud@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2018 17:33:14 +0000 (17:33 +0000)
committerjustin_michaud@apple.com <justin_michaud@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2018 17:33:14 +0000 (17:33 +0000)
commit3436649864812346c5f71e4c24408ccbab52a789
tree3d7f41a4d7d151fe8e4a0fcc1ff35d957f6783a2
parent3b625cc0dbbd614ed54d6f0dd4ab1ec906360fb8
Repeated background images with zero size should display the background color
https://bugs.webkit.org/show_bug.cgi?id=192962

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/backgrounds/background-repeat-with-zero-size.html

* platform/LengthSize.h:
(WebCore::LengthSize::isEmpty const):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintFillLayerExtended):
* rendering/style/FillLayer.h:
(WebCore::FillLayer::isEmpty const):

LayoutTests:

Fix a rendering bug exposed by the CSS Variable wpt tests where repeated backgrounds with zero size
not draw the background colour underneath.

* fast/backgrounds/background-repeat-with-zero-size-expected.html: Added.
* fast/backgrounds/background-repeat-with-zero-size.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/background-repeat-with-zero-size-expected.html [new file with mode: 0644]
LayoutTests/fast/backgrounds/background-repeat-with-zero-size.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/LengthSize.h
Source/WebCore/rendering/RenderBoxModelObject.cpp
Source/WebCore/rendering/style/FillLayer.h