- fix release build
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Jul 2006 21:11:04 +0000 (21:11 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Jul 2006 21:11:04 +0000 (21:11 +0000)
        * Plugins/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
        that we don't have an unused variable in versions with assertions disabled.
        The alternative would be to wrap the whole thing in an #if statement.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15263 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/Plugins/WebBaseNetscapePluginView.m

index 9d9b40e5e6120c86a3ba06d8c7ebf13e6bbc407f..a6e709f5529c8e7d7616426098949c0db438e610 100644 (file)
@@ -1,3 +1,12 @@
+2006-07-09  Darin Adler  <darin@apple.com>
+
+        - fix release build
+
+        * Plugins/WebBaseNetscapePluginView.m:
+        (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
+        that we don't have an unused variable in versions with assertions disabled.
+        The alternative would be to wrap the whole thing in an #if statement.
+
 2006-07-08  Tim Omernick  <timo@apple.com>
 
         Reviewed by John Sullivan.
index 8fb00d90d83220d9716fac7a555f3f657a7d68b0..72f3eaec994c22d1948692ff0b6500b98cfeb1a8 100644 (file)
@@ -530,9 +530,8 @@ static OSStatus TSMEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEve
         
         case NPDrawingModelCoreGraphics:
         {
-            PortState_CG *cgPortState = (PortState_CG *)portState;
             ASSERT([NSView focusView] == self);
-            ASSERT(cgPortState->context == nPort.cgPort.context);
+            ASSERT(((PortState_CG *)portState)->context == nPort.cgPort.context);
             CGContextRestoreGState(nPort.cgPort.context);
         }
         break;