Changeset 44115 in webkit
- Timestamp:
- May 24, 2009 9:34:52 AM (15 years ago)
- Location:
- trunk/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r44096 r44115 1 2009-05-24 Darin Adler <darin@apple.com> 2 3 Reviewed by Dan Bernstein and Tim Hatcher. 4 5 <rdar://problem/6913045> New console message spewed by automator CLI after installing JetstreamLeo40B21a 6 7 * Misc/WebNSObjectExtras.mm: 8 (-[WebMainThreadInvoker initWithTarget:]): Tweaked argument name. 9 (-[WebMainThreadInvoker forwardInvocation:]): Removed call to retainArguments. 10 This was unneeded and in the case of a newly created but not yet fully initialized 11 NSView object it caused the abovementioned bug. 12 (-[WebMainThreadInvoker handleException:]): Tweaked argument name. Added assertion. 13 (-[NSInvocation _webkit_invokeAndHandleException:]): Tweaked name of local variable 14 that holds the exception. 15 1 16 2009-05-23 David Kilzer <ddkilzer@apple.com> 2 17 -
trunk/WebKit/mac/Misc/WebNSObjectExtras.mm
r40100 r44115 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 29 29 #import "WebNSObjectExtras.h" 30 30 31 #import <wtf/Assertions.h> 31 32 32 33 @interface WebMainThreadInvoker : NSProxy … … 39 40 @implementation WebMainThreadInvoker 40 41 41 - (id)initWithTarget:(id) theTarget42 - (id)initWithTarget:(id)passedTarget 42 43 { 43 target = theTarget;44 target = passedTarget; 44 45 return self; 45 46 } … … 48 49 { 49 50 [invocation setTarget:target]; 50 [invocation retainArguments];51 51 [invocation performSelectorOnMainThread:@selector(_webkit_invokeAndHandleException:) withObject:self waitUntilDone:YES]; 52 52 if (exception) { … … 62 62 } 63 63 64 - (void)handleException:(id) e64 - (void)handleException:(id)passedException 65 65 { 66 exception = [e retain]; 66 ASSERT(!exception); 67 exception = [passedException retain]; 67 68 } 68 69 69 70 @end 70 71 71 72 72 @implementation NSInvocation (WebMainThreadInvoker) … … 76 76 @try { 77 77 [self invoke]; 78 } @catch (id e ) {79 [exceptionHandler handleException:e ];78 } @catch (id exception) { 79 [exceptionHandler handleException:exception]; 80 80 } 81 81 } 82 82 83 83 @end 84 85 84 86 85 @implementation NSObject (WebNSObjectExtras)
Note: See TracChangeset
for help on using the changeset viewer.