Summary: | [Qt] Make GraphicsContext cheaper to construct | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | Layout and Rendering | Assignee: | QtWebKit Unassigned <webkit-qt-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | Keywords: | Performance, Qt, QtTriaged | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Andreas Kling
2010-10-29 05:55:47 PDT
Created attachment 72320 [details]
Proposed patch
Comment on attachment 72320 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=72320&action=review > WebCore/ChangeLog:10 > + - Don't call setPlatform*(), set the painter brush and pen directly. Maybe add a comment about this in the code so that noone adds setPlatform in the future. > WebCore/platform/graphics/qt/GraphicsContextQt.cpp:238 > + // use the default the QPainter was constructed with Comments start with capital letter and ends with a dot, you should know that by now :-) > WebCore/platform/graphics/qt/GraphicsContextQt.cpp:257 > + // solidColor is initialized with the fillColor() Again! </3 Committed r70870: <http://trac.webkit.org/changeset/70870> |