The LayerTreeHost.cpp is not compiled if COORDINATED_GRAPHICS the flag is not set. So put the usage of it behind the same flag.
Committed 254220@main (f06201ca8513): <https://commits.webkit.org/254220@main> Reviewed commits have been landed. Closing PR #4035 and removing active labels.
<rdar://problem/99641487>
*** Bug 232934 has been marked as a duplicate of this bug. ***
Committed 257953@main (6e6102ab52c5): <https://commits.webkit.org/257953@main> Reviewed commits have been landed. Closing PR #7491 and removing active labels.