The only way to clear a QPainterPath is to assign QPainterPath() to it. Avoid creating a temporary object etc if the path is already empty.
Created attachment 70378 [details] Proposed patch
Comment on attachment 70378 [details] Proposed patch Clearing flags on attachment: 70378 Committed r69462: <http://trac.webkit.org/changeset/69462>
All reviewed patches have been landed. Closing bug.