The context ivar of WebImageRenderer wasn't being nil when the object was copied.
Reviewed by Darin.
* WebCoreSupport.subproj/WebImageRenderer.m:
(-[WebImageRenderer copyWithZone:]):
(-[WebImageRenderer dealloc]):
(-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6934
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-06-24 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/3710313>: CGContext not zeroed when WebImageRenderer is copied
+ The context ivar of WebImageRenderer wasn't being nil when the object was copied.
+
+ Reviewed by Darin.
+
+ * WebCoreSupport.subproj/WebImageRenderer.m:
+ (-[WebImageRenderer copyWithZone:]):
+ (-[WebImageRenderer dealloc]):
+ (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
+
2004-06-24 Trey Matteson <trey@apple.com>
3672725 - Assertion failure in URLCompletion code with particular set of bookmarks
copy->frameView = nil;
copy->patternColor = nil;
copy->compositeOperator = compositeOperator;
+ copy->context = 0;
return copy;
}
if (context) {
CGContextRelease(context);
+ context = 0;
}
[_PDFDoc release];
compositeOperator = operator;
if (aContext != context) {
- if (aContext)
+ if (aContext) {
CGContextRetain(aContext);
- if (context)
+ }
+ if (context) {
CGContextRelease(context);
+ }
context = aContext;
}