Bug 47460 - [Qt] Fast-path in Path::clear() for already empty paths
Summary: [Qt] Fast-path in Path::clear() for already empty paths
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: QtWebKit Unassigned
URL:
Keywords: Performance, Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-10-09 15:29 PDT by Andreas Kling
Modified: 2010-10-09 16:56 PDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.05 KB, patch)
2010-10-09 15:30 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 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.
Comment 1 Andreas Kling 2010-10-09 15:30:57 PDT
Created attachment 70378 [details]
Proposed patch
Comment 2 Andreas Kling 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>
Comment 3 Andreas Kling 2010-10-09 16:56:48 PDT
All reviewed patches have been landed.  Closing bug.