mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
b=403296, fix bogus warning from Cocoa native theme painting, r=stuart
This commit is contained in:
parent
887e5c650b
commit
27a315c2c4
@ -868,8 +868,11 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
|
||||
//fprintf (stderr, "surface: %p cgContext: %p\n", quartzSurf, cgContext);
|
||||
|
||||
if (cgContext == nsnull) {
|
||||
NS_WARNING("Invalid CGContext!");
|
||||
return NS_ERROR_FAILURE;
|
||||
// The Quartz surface handles 0x0 surfaces by internally
|
||||
// making all operations no-ops; there's no cgcontext created for them.
|
||||
// Unfortunately, this means that callers that want to render
|
||||
// directly to the CGContext need to be aware of this quirk.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Eventually we can just do a GetCTM and restore it with SetCTM,
|
||||
|
Loading…
Reference in New Issue
Block a user