Add a "Show GraphicsLayer Tree" option in the Debug menu (next to "Show RenderLayer Tree") in Safari (WebKit) to make it easier to debug composited layers.
The Debug menu is part of Safari. WebKit cannot add functionality to it.