Changeset 20077 in webkit


Ignore:
Timestamp:
Mar 8, 2007 7:02:08 PM (17 years ago)
Author:
bdash
Message:

2007-03-08 Bruce Q Hammond <bruceq@apple.om>

Reviewed by Darin.

Fix for http://bugs.webkit.org/show_bug.cgi?id=13009
Console spews "CGContextGetType: invalid context" non-stop on web site

  • Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): (-[WebBaseNetscapePluginView restorePortState:]):
Location:
trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r20073 r20077  
     12007-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
    1122007-03-08  Mark Rowe  <mrowe@apple.com>
    213
  • trunk/WebKit/Plugins/WebBaseNetscapePluginView.mm

    r20064 r20077  
    398398            CGContextRef currentContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
    399399            // 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);
    401401            if (offScreenContext) {
    402402                CGBitmapInfo contextBitmapInfo = CGBitmapContextGetBitmapInfo(currentContext);
     
    603603            // If the current context is an offscreen bitmap, then we need to
    604604            // dispose its GWorld and restore the Window's GWorld
    605             if (WKCGContextIsBitmapContext(currentContext)) {
     605            if (currentContext && WKCGContextIsBitmapContext(currentContext)) {
    606606                GWorldPtr curGWorld;
    607607                GetGWorld(&curGWorld, NULL);
Note: See TracChangeset for help on using the changeset viewer.