Changeset 29126 in webkit


Ignore:
Timestamp:
Jan 3, 2008 9:15:14 AM (16 years ago)
Author:
kdecker@apple.com
Message:

Reviewed by Darin.


Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)

  • Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r29072 r29126  
     12008-01-02  Kevin Decker  <kdecker@apple.com>
     2
     3        Reviewed by Darin.
     4       
     5        Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)
     6
     7        * Plugins/WebBaseNetscapePluginView.mm:
     8        (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched
     9        to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
     10
    1112008-01-01  David D. Kilzer  <ddkilzer@webkit.org>
    212
  • trunk/WebKit/mac/Plugins/WebBaseNetscapePluginView.mm

    r28902 r29126  
    12011201    if (!isStarted)
    12021202        return;
    1203     if ((drawingModel == NPDrawingModelCoreGraphics || drawingModel == NPDrawingModelOpenGL) && ![self canDraw])
     1203    if (drawingModel != NPDrawingModelQuickDraw && ![self canDraw])
    12041204        return;
    12051205   
    1206     BOOL needsFocus = [self window] && ([NSView focusView] != self);
    1207     if (needsFocus)
    1208         [self lockFocus];
    1209 
     1206    BOOL didLockFocus = [NSView focusView] != self && [self lockFocusIfCanDraw];
    12101207    PortState portState = [self saveAndSetNewPortState];
    12111208    if (portState) {
     
    12141211        free(portState);
    12151212    }   
    1216     if (needsFocus)
     1213    if (didLockFocus)
    12171214        [self unlockFocus];
    12181215}
Note: See TracChangeset for help on using the changeset viewer.