Clean up RenderLayerBacking code that looks for the body
https://bugs.webkit.org/show_bug.cgi?id=39502
Source/WebCore:
Reviewed by Dave Hyatt.
Consolidate code that propagates the <body> background to the
root, adding a utility method on RenderObject that is called
by RenderBox and RenderLayerBacking.
Removed an unused method in RenderLayerBacking.
The compositiong changes are not testable, since rendererBackgroundColor()
is only used by fullscreen at present.
Tests: fast/backgrounds/root-background-propagation.html
fast/backgrounds/root-background-propagation2.html
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintRootBoxFillLayers):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::rendererBackgroundColor):
* rendering/RenderLayerBacking.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::rendererForRootBackground):
* rendering/RenderObject.h:
LayoutTests:
Reviewed by Dave Hyatt.
Tests for propagation of the <body> background to the root.
* fast/backgrounds/root-background-propagation-expected.png: Added.
* fast/backgrounds/root-background-propagation-expected.txt: Added.
* fast/backgrounds/root-background-propagation.html: Added.
* fast/backgrounds/root-background-propagation2-expected.png: Added.
* fast/backgrounds/root-background-propagation2-expected.txt: Added.
* fast/backgrounds/root-background-propagation2.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed