Summary: | LocalCurrentGraphicsContext will never restore the current context to null | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||
Component: | Layout and Rendering | Assignee: | Tim Horton <thorton> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, simon.fraser | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Tim Horton
2012-10-11 17:40:16 PDT
Created attachment 168327 [details]
patch
Comment on attachment 168327 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=168327&action=review > Source/WebCore/ChangeLog:12 > + LocalCurrentGraphicsContext is meant to cause temporary changes to > + NSGraphicsContext's currentContext. However, if it is entered when > + currentContext is null, it will not restore to null, as a null > + m_savedNSGraphicsContext was being used to indicate that the current and > + passed-in graphics contexts were equal (and thus no save/restore was required). You should also mentiong flipping the order of the restores. |