While working on bug #146511 and bug #147258 I've noticed some uneeded header inclusions. Patch will follow.
Created attachment 261499 [details] Patch
Created attachment 261500 [details] Patch
It seems this r+ patch didn't landed and we still have these headers except the change of 'LayerTreeHostGtk' where the file was removed with this commit: https://github.com/WebKit/WebKit/commit/9a0bd86b48685a6bc5a2a7729c9d3666aee2f31c Local build with 'build-webkit --release' work with remaining patch but I don't know if it would have on internal builds. Happy to do PR and give credits to original author.
Committed 275294@main (36e27eaf8bd4): <https://commits.webkit.org/275294@main> Reviewed commits have been landed. Closing PR #25070 and removing active labels.
<rdar://problem/123599112>