Changeset 84883 in webkit
- Timestamp:
- Apr 25, 2011 11:24:56 PM (13 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r84769 r84883 1 2011-04-25 Adam Barth <abarth@webkit.org> 2 3 Reviewed by David Levin. 4 5 WebKit1 should build cleanly with strict OwnPtrs 6 https://bugs.webkit.org/show_bug.cgi?id=59424 7 8 * History/WebHistoryItem.mm: 9 (-[WebHistoryItem initFromDictionaryRepresentation:]): 10 * Plugins/WebNetscapePluginEventHandler.h: 11 * Plugins/WebNetscapePluginEventHandler.mm: 12 (WebNetscapePluginEventHandler::create): 13 * Plugins/WebNetscapePluginView.mm: 14 (-[WebNetscapePluginView createPlugin]): 15 * WebView/WebDeviceOrientationProviderMock.mm: 16 * WebView/WebTextIterator.mm: 17 (-[WebTextIterator initWithRange:]): 18 1 19 2011-04-25 Jon Lee <jonlee@apple.com> 2 20 -
trunk/Source/WebKit/mac/History/WebHistoryItem.mm
r81058 r84883 379 379 if (NSArray *redirectURLs = [dict _webkit_arrayForKey:redirectURLsKey]) { 380 380 NSUInteger size = [redirectURLs count]; 381 OwnPtr<Vector<String> > redirectURLsVector (new Vector<String>(size));381 OwnPtr<Vector<String> > redirectURLsVector = adoptPtr(new Vector<String>(size)); 382 382 for (NSUInteger i = 0; i < size; ++i) 383 383 (*redirectURLsVector)[i] = String([redirectURLs _webkit_stringAtIndex:i]); -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginEventHandler.h
r42679 r84883 38 38 class WebNetscapePluginEventHandler { 39 39 public: 40 static WebNetscapePluginEventHandler*create(WebNetscapePluginView*);40 static PassOwnPtr<WebNetscapePluginEventHandler> create(WebNetscapePluginView*); 41 41 virtual ~WebNetscapePluginEventHandler() { } 42 42 -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginEventHandler.mm
r38267 r84883 29 29 30 30 #import <wtf/Assertions.h> 31 #import <wtf/PassOwnPtr.h> 31 32 #import "WebNetscapePluginView.h" 32 33 #import "WebNetscapePluginEventHandlerCarbon.h" 33 34 #import "WebNetscapePluginEventHandlerCocoa.h" 34 35 35 WebNetscapePluginEventHandler*WebNetscapePluginEventHandler::create(WebNetscapePluginView* pluginView)36 PassOwnPtr<WebNetscapePluginEventHandler> WebNetscapePluginEventHandler::create(WebNetscapePluginView* pluginView) 36 37 { 37 38 switch ([pluginView eventModel]) { 38 39 #ifndef NP_NO_CARBON 39 40 case NPEventModelCarbon: 40 return new WebNetscapePluginEventHandlerCarbon(pluginView);41 return adoptPtr(new WebNetscapePluginEventHandlerCarbon(pluginView)); 41 42 #endif // NP_NO_CARBON 42 43 case NPEventModelCocoa: 43 return new WebNetscapePluginEventHandlerCocoa(pluginView);44 return adoptPtr(new WebNetscapePluginEventHandlerCocoa(pluginView)); 44 45 default: 45 46 ASSERT_NOT_REACHED(); 46 return 0;47 return PassOwnPtr<WebNetscapePluginEventHandler>(); 47 48 } 48 49 } -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginView.mm
r82945 r84883 1130 1130 1131 1131 // Create the event handler 1132 _eventHandler .set(WebNetscapePluginEventHandler::create(self));1133 1132 _eventHandler = WebNetscapePluginEventHandler::create(self); 1133 1134 1134 return YES; 1135 1135 } -
trunk/Source/WebKit/mac/WebView/WebDeviceOrientationProviderMock.mm
r72146 r84883 26 26 #import "WebDeviceOrientationProviderMockInternal.h" 27 27 28 #import <wtf/PassOwnPtr.h> 28 29 #import "WebDeviceOrientationInternal.h" 29 30 … … 37 38 if (!self) 38 39 return nil; 39 m_core .set(new DeviceOrientationClientMock());40 m_core = adoptPtr(new DeviceOrientationClientMock()); 40 41 return self; 41 42 } -
trunk/Source/WebKit/mac/WebView/WebTextIterator.mm
r58266 r84883 72 72 73 73 _private = [[WebTextIteratorPrivate alloc] init]; 74 _private->_textIterator .set(new TextIterator(core(range)));74 _private->_textIterator = adoptPtr(new TextIterator(core(range))); 75 75 return self; 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.