Changeset 20077 in webkit
- Timestamp:
- Mar 8, 2007 7:02:08 PM (17 years ago)
- Location:
- trunk/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/ChangeLog
r20073 r20077 1 2007-03-08 Bruce Q Hammond <bruceq@apple.om> 2 3 Reviewed by Darin. 4 5 Fix for http://bugs.webkit.org/show_bug.cgi?id=13009 6 Console spews "CGContextGetType: invalid context" non-stop on web site 7 8 * Plugins/WebBaseNetscapePluginView.mm: 9 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): 10 (-[WebBaseNetscapePluginView restorePortState:]): 11 1 12 2007-03-08 Mark Rowe <mrowe@apple.com> 2 13 -
trunk/WebKit/Plugins/WebBaseNetscapePluginView.mm
r20064 r20077 398 398 CGContextRef currentContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; 399 399 // If the current context is an offscreen bitmap, then we create a GWorld for it 400 bool offScreenContext = WKCGContextIsBitmapContext(currentContext);400 bool offScreenContext = currentContext && WKCGContextIsBitmapContext(currentContext); 401 401 if (offScreenContext) { 402 402 CGBitmapInfo contextBitmapInfo = CGBitmapContextGetBitmapInfo(currentContext); … … 603 603 // If the current context is an offscreen bitmap, then we need to 604 604 // dispose its GWorld and restore the Window's GWorld 605 if ( WKCGContextIsBitmapContext(currentContext)) {605 if (currentContext && WKCGContextIsBitmapContext(currentContext)) { 606 606 GWorldPtr curGWorld; 607 607 GetGWorld(&curGWorld, NULL);
Note: See TracChangeset
for help on using the changeset viewer.