https://bugs.webkit.org/show_bug.cgi?id=225640
Reviewed by Simon Fraser.
Source/WebCore:
Since it seems useful to know why a layer is composited.
The logging code was only including one reason, rather than the
whole set of reasons, and that's unchanged (except for the function
name to make that clearer), although we could also just make that
include all of the reasons too.
There were two reason strings missing, which are also added --
OverflowScrollPositioning and WillChange -- which the use of a
switch should help catch in the future.
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::logLayerInfo):
(WebCore::compositingReasonToString):
(WebCore::RenderLayerCompositor::logReasonsForCompositing):
(WebCore::operator<<):
* rendering/RenderLayerCompositor.h:
* rendering/RenderTreeAsText.cpp:
LayoutTests:
* fast/harness/render-tree-as-text-options-expected.txt:
Canonical link: https://commits.webkit.org/237616@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277358 268f45cc-cd09-0410-ab3c-d52691b4dbfc