Garbage pixels on enphaseenergy.com site
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Oct 2015 21:07:25 +0000 (21:07 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Oct 2015 21:07:25 +0000 (21:07 +0000)
commit7757aee52a7424f7aa945df78f910c5935c2d597
treed6a79a2e31ab94508fe0bc3601453f4f7a4e7369
parent820a15e03c36153d369f0636ed7eda1d195cd5a9
Garbage pixels on enphaseenergy.com site
https://bugs.webkit.org/show_bug.cgi?id=149915
rdar://problem/22976184

Reviewed by Darin Adler.

Source/WebCore:

When the <html> gets a composited RenderLayer, and we ask whether its background
is opaque, return false, since the document element's background propagates
to the root, and is painted by the RenderView.

Also improve the compositing logging to indicate when fore- and background layers
are present.

Test: compositing/contents-opaque/negative-z-before-html.html

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateGeometry):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::logLayerInfo):

LayoutTests:

New ref test. Also update the expected result for another test that uses negative
z-index children.

* compositing/contents-opaque/body-background-painted-expected.txt:
* compositing/contents-opaque/negative-z-before-html-expected.html: Added.
* compositing/contents-opaque/negative-z-before-html.html: Added.
* platform/mac-wk2/compositing/contents-opaque/body-background-painted-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/contents-opaque/body-background-painted-expected.txt
LayoutTests/compositing/contents-opaque/body-background-painted.html
LayoutTests/compositing/contents-opaque/negative-z-before-html-expected.html [new file with mode: 0644]
LayoutTests/compositing/contents-opaque/negative-z-before-html.html [new file with mode: 0644]
LayoutTests/platform/mac-wk2/compositing/contents-opaque/body-background-painted-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp
Source/WebCore/rendering/RenderLayerCompositor.cpp