The Instrumentation stuff (bug 25503) should account for compositing layers in painting time.
Created attachment 43514 [details] Patch
http://trac.webkit.org/changeset/51194