Skip to content
  • mrowe@apple.com's avatar
    Fix the 64-bit build. · 748e44d4
    mrowe@apple.com authored
    Pull the frequently-made check for drawingModel == NPDrawingModelQuickDraw out into a
    helper function to avoid #ifdef'ing all of the new places that this check is made.
    
    A few other #ifdef's are moved inside functions to allow their call sites to remain #ifdef-free,
    and we rely on the compiler to optimise out the check (which will always be false in 64-bit) instead.
    
    * Plugins/WebBaseNetscapePluginView.mm:
    (isDrawingModelQuickDraw):
    (-[WebBaseNetscapePluginView fixWindowPort]):
    (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
    (-[WebBaseNetscapePluginView sendEvent:isDrawRect:]):
    (-[WebBaseNetscapePluginView updateAndSetWindow]):
    (-[WebBaseNetscapePluginView start]):
    (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
    (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
    (-[WebBaseNetscapePluginView _viewHasMoved]):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    748e44d4