Bug 47460

Summary: [Qt] Fast-path in Path::clear() for already empty paths
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: QtWebKit Unassigned <webkit-qt-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: rhodovan.u-szeged
Priority: P2 Keywords: Performance, Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed patch none

Andreas Kling
Reported 2010-10-09 15:29:56 PDT
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.
Attachments
Proposed patch (1.05 KB, patch)
2010-10-09 15:30 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2010-10-09 15:30:57 PDT
Created attachment 70378 [details] Proposed patch
Andreas Kling
Comment 2 2010-10-09 16:56:39 PDT
Comment on attachment 70378 [details] Proposed patch Clearing flags on attachment: 70378 Committed r69462: <http://trac.webkit.org/changeset/69462>
Andreas Kling
Comment 3 2010-10-09 16:56:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.