QPainter::clipPath() can be very expensive, so use QPainter::hasClipping() instead of QPainter::clipPath().isEmpty().
Created attachment 67846 [details] Proposed patch
Comment on attachment 67846 [details] Proposed patch LGTM. re=me.
Comment on attachment 67846 [details] Proposed patch Clearing flags on attachment: 67846 Committed r67675: <http://trac.webkit.org/changeset/67675>
All reviewed patches have been landed. Closing bug.
Revision r67675 cherry-picked into qtwebkit-2.1 with commit 52d2178 <http://gitorious.org/webkit/qtwebkit/commit/52d2178>