Changeset 85603 in webkit
- Timestamp:
- May 3, 2011 6:54:58 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r85575 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Allow implicit conversion from nullptr_t to PassOwnPtr 4 5 This makes it a lot easier to write code that just wants a null PassOwnPtr, especially in 6 strict PassOwnPtr mode. 7 8 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 9 doesn't work, but should 10 11 Reviewed by Adam Barth. 12 13 * wtf/PassOwnPtr.h: 14 (WTF::PassOwnPtr::PassOwnPtr): Added a non-explicit constructor that takes a nullptr_t. 15 16 * wtf/MessageQueue.h: 17 (WTF::::waitForMessageFilteredWithTimeout): 18 (WTF::::tryGetMessage): 19 Use the new implicit conversion. 20 1 21 2011-05-02 Jessie Berlin <jberlin@apple.com> 2 22 -
trunk/Source/JavaScriptCore/wtf/MessageQueue.h
r84855 r85603 141 141 if (m_killed) { 142 142 result = MessageQueueTerminated; 143 return PassOwnPtr<DataType>();143 return nullptr; 144 144 } 145 145 146 146 if (timedOut) { 147 147 result = MessageQueueTimeout; 148 return PassOwnPtr<DataType>();148 return nullptr; 149 149 } 150 150 … … 161 161 MutexLocker lock(m_mutex); 162 162 if (m_killed) 163 return PassOwnPtr<DataType>();163 return nullptr; 164 164 if (m_queue.isEmpty()) 165 return PassOwnPtr<DataType>();165 return nullptr; 166 166 167 167 return adoptPtr(m_queue.takeFirst()); -
trunk/Source/JavaScriptCore/wtf/PassOwnPtr.h
r74695 r85603 49 49 50 50 PassOwnPtr() : m_ptr(0) { } 51 PassOwnPtr(std::nullptr_t) : m_ptr(0) { } 51 52 52 53 // It somewhat breaks the type system to allow transfer of ownership out of -
trunk/Source/WebCore/ChangeLog
r85601 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Take advantage of implicit conversion from nullptr_t to PassOwnPtr 4 5 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 6 doesn't work, but should 7 8 Reviewed by Adam Barth. 9 10 * bindings/js/ScheduledAction.cpp: 11 * css/CSSStyleSelector.cpp: 12 * css/MediaList.cpp: 13 * css/MediaQueryMatcher.cpp: 14 * css/SVGCSSStyleSelector.cpp: 15 * dom/MessagePort.cpp: 16 * html/InputType.cpp: 17 * html/canvas/WebGLRenderingContext.cpp: 18 * inspector/InspectorStyleSheet.cpp: 19 * page/ContextMenuController.cpp: 20 * page/Page.cpp: 21 * platform/PlatformGestureRecognizer.cpp: 22 * platform/PurgeableBuffer.h: 23 * platform/graphics/ImageBuffer.h: 24 * platform/leveldb/LevelDBDatabase.cpp: 25 * platform/mac/PurgeableBufferMac.cpp: 26 * platform/text/RegularExpression.cpp: 27 * rendering/RenderTheme.cpp: 28 * rendering/RenderThemeMac.mm: 29 * rendering/style/RenderStyle.h: 30 * rendering/style/SVGRenderStyleDefs.cpp: 31 * rendering/style/ShadowData.cpp: 32 * rendering/style/StyleRareInheritedData.cpp: 33 * rendering/style/StyleRareNonInheritedData.cpp: 34 * rendering/svg/RenderSVGResourcePattern.cpp: 35 1 36 2011-05-03 Pavel Feldman <pfeldman@google.com> 2 37 -
trunk/Source/WebCore/bindings/js/ScheduledAction.cpp
r85442 r85603 55 55 if (getCallData(v, callData) == CallTypeNone) { 56 56 if (policy && !policy->allowEval()) 57 return PassOwnPtr<ScheduledAction>();57 return nullptr; 58 58 UString string = v.toString(exec); 59 59 if (exec->hadException()) 60 return PassOwnPtr<ScheduledAction>();60 return nullptr; 61 61 return adoptPtr(new ScheduledAction(ustringToString(string), isolatedWorld)); 62 62 } -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r85489 r85603 4828 4828 if (isInherit) { 4829 4829 if (id == CSSPropertyTextShadow) 4830 return m_style->setTextShadow(m_parentStyle->textShadow() ? adoptPtr(new ShadowData(*m_parentStyle->textShadow())) : PassOwnPtr<ShadowData>());4831 return m_style->setBoxShadow(m_parentStyle->boxShadow() ? adoptPtr(new ShadowData(*m_parentStyle->boxShadow())) : PassOwnPtr<ShadowData>());4830 return m_style->setTextShadow(m_parentStyle->textShadow() ? adoptPtr(new ShadowData(*m_parentStyle->textShadow())) : nullptr); 4831 return m_style->setBoxShadow(m_parentStyle->boxShadow() ? adoptPtr(new ShadowData(*m_parentStyle->boxShadow())) : nullptr); 4832 4832 } 4833 4833 if (isInitial || primitiveValue) // initial | none 4834 return id == CSSPropertyTextShadow ? m_style->setTextShadow( PassOwnPtr<ShadowData>()) : m_style->setBoxShadow(PassOwnPtr<ShadowData>());4834 return id == CSSPropertyTextShadow ? m_style->setTextShadow(nullptr) : m_style->setBoxShadow(nullptr); 4835 4835 4836 4836 if (!value->isValueList()) -
trunk/Source/WebCore/css/MediaList.cpp
r85162 r85603 132 132 String medium = parseMediaDescriptor(oldMedium); 133 133 if (!medium.isNull()) { 134 createdQuery = adoptPtr(new MediaQuery(MediaQuery::None, medium, PassOwnPtr<MediaQuery::ExpressionVector>()));134 createdQuery = adoptPtr(new MediaQuery(MediaQuery::None, medium, nullptr)); 135 135 oldQuery = createdQuery.get(); 136 136 } … … 187 187 String mediaDescriptor = parseMediaDescriptor(medium); 188 188 if (!mediaDescriptor.isNull()) 189 tempMediaList->m_queries.append(new MediaQuery(MediaQuery::None, mediaDescriptor, PassOwnPtr<MediaQuery::ExpressionVector>()));189 tempMediaList->m_queries.append(new MediaQuery(MediaQuery::None, mediaDescriptor, nullptr)); 190 190 } else { 191 191 ec = SYNTAX_ERR; … … 233 233 String medium = parseMediaDescriptor(newMedium); 234 234 if (!medium.isNull()) { 235 m_queries.append(new MediaQuery(MediaQuery::None, medium, PassOwnPtr<MediaQuery::ExpressionVector>()));235 m_queries.append(new MediaQuery(MediaQuery::None, medium, nullptr)); 236 236 ec = 0; 237 237 } -
trunk/Source/WebCore/css/MediaQueryMatcher.cpp
r84892 r85603 78 78 { 79 79 if (!m_document || !m_document->frame()) 80 return PassOwnPtr<MediaQueryEvaluator>();80 return nullptr; 81 81 82 82 Element* documentElement = m_document->documentElement(); 83 83 if (!documentElement) 84 return PassOwnPtr<MediaQueryEvaluator>();84 return nullptr; 85 85 86 86 CSSStyleSelector* styleSelector = m_document->styleSelector(); 87 87 if (!styleSelector) 88 return PassOwnPtr<MediaQueryEvaluator>();88 return nullptr; 89 89 90 90 RefPtr<RenderStyle> rootStyle = styleSelector->styleForElement(documentElement, 0 /*defaultParent*/, false /*allowSharing*/, true /*resolveForRootDefault*/); -
trunk/Source/WebCore/css/SVGCSSStyleSelector.cpp
r85020 r85603 565 565 return svgstyle->setShadow(adoptPtr(m_parentStyle->svgStyle()->shadow() ? new ShadowData(*m_parentStyle->svgStyle()->shadow()) : 0)); 566 566 if (isInitial || primitiveValue) // initial | none 567 return svgstyle->setShadow( PassOwnPtr<ShadowData>());567 return svgstyle->setShadow(nullptr); 568 568 569 569 if (!value->isValueList()) -
trunk/Source/WebCore/dom/MessagePort.cpp
r85162 r85603 207 207 { 208 208 if (!ports || !ports->size()) 209 return PassOwnPtr<MessagePortChannelArray>();209 return nullptr; 210 210 211 211 // HashSet used to efficiently check for duplicates in the passed-in array. … … 217 217 if (!port || port->isCloned() || portSet.contains(port)) { 218 218 ec = INVALID_STATE_ERR; 219 return PassOwnPtr<MessagePortChannelArray>();219 return nullptr; 220 220 } 221 221 portSet.add(port); … … 235 235 { 236 236 if (!channels || !channels->size()) 237 return PassOwnPtr<MessagePortArray>();237 return nullptr; 238 238 239 239 OwnPtr<MessagePortArray> portArray = adoptPtr(new MessagePortArray(channels->size())); -
trunk/Source/WebCore/html/InputType.cpp
r84695 r85603 505 505 PassOwnPtr<ClickHandlingState> InputType::willDispatchClick() 506 506 { 507 return PassOwnPtr<ClickHandlingState>();507 return nullptr; 508 508 } 509 509 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r85020 r85603 372 372 if (!context) { 373 373 canvas->dispatchEvent(WebGLContextEvent::create(eventNames().webglcontextcreationerrorEvent, false, true, "Could not create a WebGL context.")); 374 return PassOwnPtr<WebGLRenderingContext>();374 return nullptr; 375 375 } 376 376 … … 474 474 { 475 475 detachAndRemoveAllObjects(); 476 m_context->setContextLostCallback( PassOwnPtr<GraphicsContext3D::ContextLostCallback>());476 m_context->setContextLostCallback(nullptr); 477 477 } 478 478 -
trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp
r85172 r85603 85 85 m_hasText = true; 86 86 m_text = text; 87 setSourceData( PassOwnPtr<SourceData>());87 setSourceData(nullptr); 88 88 } 89 89 -
trunk/Source/WebCore/page/ContextMenuController.cpp
r85036 r85603 123 123 { 124 124 if (!event->isMouseEvent()) 125 return PassOwnPtr<ContextMenu>();125 return nullptr; 126 126 127 127 MouseEvent* mouseEvent = static_cast<MouseEvent*>(event); … … 132 132 133 133 if (!result.innerNonSharedNode()) 134 return PassOwnPtr<ContextMenu>();134 return nullptr; 135 135 136 136 m_hitTestResult = result; -
trunk/Source/WebCore/page/Page.cpp
r85256 r85603 129 129 #endif 130 130 #if ENABLE(DEVICE_ORIENTATION) 131 , m_deviceMotionController(RuntimeEnabledFeatures::deviceMotionEnabled() ? adoptPtr(new DeviceMotionController(pageClients.deviceMotionClient)) : PassOwnPtr<DeviceMotionController>())132 , m_deviceOrientationController(RuntimeEnabledFeatures::deviceOrientationEnabled() ? adoptPtr(new DeviceOrientationController(this, pageClients.deviceOrientationClient)) : PassOwnPtr<DeviceOrientationController>())131 , m_deviceMotionController(RuntimeEnabledFeatures::deviceMotionEnabled() ? adoptPtr(new DeviceMotionController(pageClients.deviceMotionClient)) : nullptr) 132 , m_deviceOrientationController(RuntimeEnabledFeatures::deviceOrientationEnabled() ? adoptPtr(new DeviceOrientationController(this, pageClients.deviceOrientationClient)) : nullptr) 133 133 #endif 134 134 #if ENABLE(INPUT_SPEECH) -
trunk/Source/WebCore/platform/PlatformGestureRecognizer.cpp
r84890 r85603 41 41 PassOwnPtr<PlatformGestureRecognizer> PlatformGestureRecognizer::create() 42 42 { 43 return PassOwnPtr<PlatformGestureRecognizer>();43 return nullptr; 44 44 } 45 45 -
trunk/Source/WebCore/platform/PurgeableBuffer.h
r76248 r85603 64 64 65 65 #if !ENABLE(PURGEABLE_MEMORY) 66 inline PassOwnPtr<PurgeableBuffer> PurgeableBuffer::create(const char*, size_t) { return PassOwnPtr<PurgeableBuffer>(); }66 inline PassOwnPtr<PurgeableBuffer> PurgeableBuffer::create(const char*, size_t) { return nullptr; } 67 67 inline PurgeableBuffer::~PurgeableBuffer() { } 68 68 inline const char* PurgeableBuffer::data() const { return 0; } -
trunk/Source/WebCore/platform/graphics/ImageBuffer.h
r84884 r85603 70 70 if (success) 71 71 return buf.release(); 72 return PassOwnPtr<ImageBuffer>();72 return nullptr; 73 73 } 74 74 -
trunk/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
r85169 r85603 107 107 108 108 if (!s.ok()) 109 return PassOwnPtr<LevelDBDatabase>();109 return nullptr; 110 110 111 111 result->m_db = adoptPtr(db); -
trunk/Source/WebCore/platform/mac/PurgeableBufferMac.cpp
r85036 r85603 56 56 { 57 57 if (size < minPurgeableBufferSize) 58 return PassOwnPtr<PurgeableBuffer>();58 return nullptr; 59 59 60 60 vm_address_t buffer = 0; … … 63 63 ASSERT(ret == KERN_SUCCESS); 64 64 if (ret != KERN_SUCCESS) 65 return PassOwnPtr<PurgeableBuffer>();65 return nullptr; 66 66 67 67 ret = vm_copy(mach_task_self(), reinterpret_cast<vm_address_t>(data), size, buffer); … … 70 70 if (ret != KERN_SUCCESS) { 71 71 vm_deallocate(mach_task_self(), buffer, size); 72 return PassOwnPtr<PurgeableBuffer>();72 return nullptr; 73 73 } 74 74 -
trunk/Source/WebCore/platform/text/RegularExpression.cpp
r78042 r85603 60 60 if (m_constructionError) { 61 61 LOG_ERROR("RegularExpression: YARR compile failed with '%s'", m_constructionError); 62 return PassOwnPtr<JSC::Yarr::BytecodePattern>();62 return nullptr; 63 63 } 64 64 -
trunk/Source/WebCore/rendering/RenderTheme.cpp
r85162 r85603 94 94 95 95 // Never support box-shadow on native controls. 96 style->setBoxShadow( PassOwnPtr<ShadowData>());96 style->setBoxShadow(nullptr); 97 97 98 98 #if USE(NEW_THEME) … … 930 930 void RenderTheme::adjustMeterStyle(CSSStyleSelector*, RenderStyle* style, Element*) const 931 931 { 932 style->setBoxShadow( PassOwnPtr<ShadowData>());932 style->setBoxShadow(nullptr); 933 933 } 934 934 -
trunk/Source/WebCore/rendering/RenderThemeMac.mm
r85162 r85603 1165 1165 setFontFromControlSize(selector, style, controlSize); 1166 1166 1167 style->setBoxShadow( PassOwnPtr<ShadowData>());1167 style->setBoxShadow(nullptr); 1168 1168 } 1169 1169 … … 1251 1251 void RenderThemeMac::adjustSliderTrackStyle(CSSStyleSelector*, RenderStyle* style, Element*) const 1252 1252 { 1253 style->setBoxShadow( PassOwnPtr<ShadowData>());1253 style->setBoxShadow(nullptr); 1254 1254 } 1255 1255 … … 1292 1292 void RenderThemeMac::adjustSliderThumbStyle(CSSStyleSelector*, RenderStyle* style, Element*) const 1293 1293 { 1294 style->setBoxShadow( PassOwnPtr<ShadowData>());1294 style->setBoxShadow(nullptr); 1295 1295 } 1296 1296 … … 1444 1444 setFontFromControlSize(selector, style, controlSize); 1445 1445 1446 style->setBoxShadow( PassOwnPtr<ShadowData>());1446 style->setBoxShadow(nullptr); 1447 1447 } 1448 1448 … … 1503 1503 style->setWidth(Length(size.width(), Fixed)); 1504 1504 style->setHeight(Length(size.height(), Fixed)); 1505 style->setBoxShadow( PassOwnPtr<ShadowData>());1505 style->setBoxShadow(nullptr); 1506 1506 } 1507 1507 … … 1518 1518 style->setWidth(Length(size.width() - emptyResultsOffset, Fixed)); 1519 1519 style->setHeight(Length(size.height(), Fixed)); 1520 style->setBoxShadow( PassOwnPtr<ShadowData>());1520 style->setBoxShadow(nullptr); 1521 1521 } 1522 1522 … … 1531 1531 style->setWidth(Length(size.width(), Fixed)); 1532 1532 style->setHeight(Length(size.height(), Fixed)); 1533 style->setBoxShadow( PassOwnPtr<ShadowData>());1533 style->setBoxShadow(nullptr); 1534 1534 } 1535 1535 … … 1564 1564 style->setWidth(Length(size.width() + resultsArrowWidth, Fixed)); 1565 1565 style->setHeight(Length(size.height(), Fixed)); 1566 style->setBoxShadow( PassOwnPtr<ShadowData>());1566 style->setBoxShadow(nullptr); 1567 1567 } 1568 1568 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r85027 r85603 1103 1103 } 1104 1104 1105 void inheritAnimations(const AnimationList* parent) { rareNonInheritedData.access()->m_animations = parent ? adoptPtr(new AnimationList(*parent)) : PassOwnPtr<AnimationList>(); }1106 void inheritTransitions(const AnimationList* parent) { rareNonInheritedData.access()->m_transitions = parent ? adoptPtr(new AnimationList(*parent)) : PassOwnPtr<AnimationList>(); }1105 void inheritAnimations(const AnimationList* parent) { rareNonInheritedData.access()->m_animations = parent ? adoptPtr(new AnimationList(*parent)) : nullptr; } 1106 void inheritTransitions(const AnimationList* parent) { rareNonInheritedData.access()->m_transitions = parent ? adoptPtr(new AnimationList(*parent)) : nullptr; } 1107 1107 void adjustAnimations(); 1108 1108 void adjustTransitions(); -
trunk/Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
r84851 r85603 164 164 StyleShadowSVGData::StyleShadowSVGData(const StyleShadowSVGData& other) 165 165 : RefCounted<StyleShadowSVGData>() 166 , shadow(other.shadow ? adoptPtr(new ShadowData(*other.shadow)) : PassOwnPtr<ShadowData>())166 , shadow(other.shadow ? adoptPtr(new ShadowData(*other.shadow)) : nullptr) 167 167 { 168 168 } -
trunk/Source/WebCore/rendering/style/ShadowData.cpp
r85027 r85603 38 38 , m_style(o.m_style) 39 39 , m_isWebkitBoxShadow(o.m_isWebkitBoxShadow) 40 , m_next(o.m_next ? adoptPtr(new ShadowData(*o.m_next)) : PassOwnPtr<ShadowData>())40 , m_next(o.m_next ? adoptPtr(new ShadowData(*o.m_next)) : nullptr) 41 41 { 42 42 } -
trunk/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
r85027 r85603 64 64 , textFillColor(o.textFillColor) 65 65 , textEmphasisColor(o.textEmphasisColor) 66 , textShadow(o.textShadow ? adoptPtr(new ShadowData(*o.textShadow)) : PassOwnPtr<ShadowData>())66 , textShadow(o.textShadow ? adoptPtr(new ShadowData(*o.textShadow)) : nullptr) 67 67 , highlight(o.highlight) 68 68 , cursorData(o.cursorData) -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r85027 r85603 80 80 , m_runningAcceleratedAnimation(o.m_runningAcceleratedAnimation) 81 81 #endif 82 , m_boxShadow(o.m_boxShadow ? adoptPtr(new ShadowData(*o.m_boxShadow)) : PassOwnPtr<ShadowData>())82 , m_boxShadow(o.m_boxShadow ? adoptPtr(new ShadowData(*o.m_boxShadow)) : nullptr) 83 83 , m_boxReflect(o.m_boxReflect) 84 , m_animations(o.m_animations ? adoptPtr(new AnimationList(*o.m_animations)) : PassOwnPtr<AnimationList>())85 , m_transitions(o.m_transitions ? adoptPtr(new AnimationList(*o.m_transitions)) : PassOwnPtr<AnimationList>())84 , m_animations(o.m_animations ? adoptPtr(new AnimationList(*o.m_animations)) : nullptr) 85 , m_transitions(o.m_transitions ? adoptPtr(new AnimationList(*o.m_transitions)) : nullptr) 86 86 , m_mask(o.m_mask) 87 87 , m_maskBoxImage(o.m_maskBoxImage) -
trunk/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
r84101 r85603 261 261 262 262 if (!SVGImageBufferTools::createImageBuffer(absoluteTileBoundaries, clampedAbsoluteTileBoundaries, tileImage, ColorSpaceDeviceRGB)) 263 return PassOwnPtr<ImageBuffer>();263 return nullptr; 264 264 265 265 GraphicsContext* tileImageContext = tileImage->context(); -
trunk/Source/WebKit/chromium/ChangeLog
r85592 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Take advantage of implicit conversion from nullptr_t to PassOwnPtr 4 5 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 6 doesn't work, but should 7 8 Reviewed by Adam Barth. 9 10 * src/WebMediaPlayerClientImpl.cpp: 11 1 12 2011-05-03 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp
r84933 r85603 57 57 58 58 if (!webFrame->client()) 59 return PassOwnPtr<WebMediaPlayer>();59 return nullptr; 60 60 return adoptPtr(webFrame->client()->createMediaPlayer(webFrame, client)); 61 61 } -
trunk/Source/WebKit/mac/ChangeLog
r85549 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Take advantage of implicit conversion from nullptr_t to PassOwnPtr 4 5 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 6 doesn't work, but should 7 8 Reviewed by Adam Barth. 9 10 * History/WebHistory.mm: 11 * Plugins/WebNetscapePluginEventHandler.mm: 12 * WebView/WebView.mm: 13 1 14 2011-05-02 Brady Eidson <beidson@apple.com> 2 15 -
trunk/Source/WebKit/mac/History/WebHistory.mm
r85515 r85603 827 827 item->setLastVisitWasHTTPNonGet([method caseInsensitiveCompare:@"GET"] && (![[url scheme] caseInsensitiveCompare:@"http"] || ![[url scheme] caseInsensitiveCompare:@"https"])); 828 828 829 item->setRedirectURLs( PassOwnPtr<Vector<String> >());829 item->setRedirectURLs(nullptr); 830 830 831 831 NSArray *entries = [[NSArray alloc] initWithObjects:entry, nil]; -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginEventHandler.mm
r84883 r85603 45 45 default: 46 46 ASSERT_NOT_REACHED(); 47 return PassOwnPtr<WebNetscapePluginEventHandler>();47 return nullptr; 48 48 } 49 49 } -
trunk/Source/WebKit/mac/WebView/WebView.mm
r85549 r85603 643 643 static NSString *mailQuirksScriptContents = leakMailQuirksUserScriptContents(); 644 644 core(self)->group().addUserScriptToWorld(core([WebScriptWorld world]), 645 mailQuirksScriptContents, KURL(), PassOwnPtr<Vector<String> >(), PassOwnPtr<Vector<String> >(), InjectAtDocumentEnd, InjectInAllFrames);645 mailQuirksScriptContents, KURL(), nullptr, nullptr, InjectAtDocumentEnd, InjectInAllFrames); 646 646 } 647 647 … … 664 664 static NSString *outlookQuirksScriptContents = leakOutlookQuirksUserScriptContents(); 665 665 core(self)->group().addUserScriptToWorld(core([WebScriptWorld world]), 666 outlookQuirksScriptContents, KURL(), PassOwnPtr<Vector<String> >(), PassOwnPtr<Vector<String> >(), InjectAtDocumentEnd, InjectInAllFrames);666 outlookQuirksScriptContents, KURL(), nullptr, nullptr, InjectAtDocumentEnd, InjectInAllFrames); 667 667 } 668 668 … … 2581 2581 NSUInteger count = [patterns count]; 2582 2582 if (count == 0) 2583 return PassOwnPtr<Vector<String> >();2583 return nullptr; 2584 2584 OwnPtr<Vector<String> > patternsVector = adoptPtr(new Vector<String>); 2585 2585 for (NSUInteger i = 0; i < count; ++i) { -
trunk/Source/WebKit2/ChangeLog
r85595 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Take advantage of implicit conversion from nullptr_t to PassOwnPtr 4 5 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 6 doesn't work, but should 7 8 Reviewed by Adam Barth. 9 10 * Platform/CoreIPC/Connection.cpp: 11 * UIProcess/qt/WebContextMenuProxyQt.cpp: 12 * WebProcess/InjectedBundle/InjectedBundle.cpp: 13 * WebProcess/WebPage/DrawingArea.cpp: 14 1 15 2011-05-03 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
trunk/Source/WebKit2/Platform/CoreIPC/Connection.cpp
r85576 r85603 378 378 } 379 379 380 return PassOwnPtr<ArgumentDecoder>();380 return nullptr; 381 381 } 382 382 … … 388 388 if (!isValid()) { 389 389 didFailToSendSyncMessage(); 390 return PassOwnPtr<ArgumentDecoder>();390 return nullptr; 391 391 } 392 392 … … 396 396 if (!m_shouldWaitForSyncReplies) { 397 397 didFailToSendSyncMessage(); 398 return PassOwnPtr<ArgumentDecoder>();398 return nullptr; 399 399 } 400 400 … … 458 458 // any more incoming messages. 459 459 if (!isValid()) 460 return PassOwnPtr<ArgumentDecoder>();460 return nullptr; 461 461 462 462 // We didn't find a sync reply yet, keep waiting. … … 472 472 m_client->syncMessageSendTimedOut(this); 473 473 474 return PassOwnPtr<ArgumentDecoder>();474 return nullptr; 475 475 } 476 476 -
trunk/Source/WebKit2/UIProcess/qt/WebContextMenuProxyQt.cpp
r81205 r85603 137 137 // Do not show sub-menus with just disabled actions. 138 138 if (menu->isEmpty()) 139 return PassOwnPtr<QMenu>();139 return nullptr; 140 140 141 141 bool isAnyActionEnabled = false; … … 146 146 } 147 147 if (!isAnyActionEnabled) 148 return PassOwnPtr<QMenu>();148 return nullptr; 149 149 150 150 return menu.release(); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r85515 r85603 213 213 { 214 214 if (!patterns) 215 return PassOwnPtr<Vector<String> >();215 return nullptr; 216 216 217 217 size_t size = patterns->size(); 218 218 if (!size) 219 return PassOwnPtr<Vector<String> >();219 return nullptr; 220 220 221 221 OwnPtr<Vector<String> > patternsVector = adoptPtr(new Vector<String>); -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp
r85515 r85603 49 49 return DrawingAreaImpl::create(webPage, parameters); 50 50 #else 51 return PassOwnPtr<DrawingArea>();51 return nullptr; 52 52 #endif 53 53 case DrawingAreaTypeChunkedUpdate: … … 59 59 } 60 60 61 return PassOwnPtr<DrawingArea>();61 return nullptr; 62 62 } 63 63 -
trunk/Tools/ChangeLog
r85583 r85603 1 2011-05-02 Adam Roben <aroben@apple.com> 2 3 Take advantage of implicit nullptr_t -> PassOwnPtr conversion 4 5 Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr 6 doesn't work, but should 7 8 Reviewed by Adam Barth. 9 10 * DumpRenderTree/chromium/CppBoundClass.h: 11 * DumpRenderTree/chromium/WebViewHost.cpp: 12 1 13 2011-05-02 Martin Robinson <mrobinson@igalia.com> 2 14 -
trunk/Tools/DumpRenderTree/chromium/CppBoundClass.h
r84926 r85603 206 206 bindFallbackCallback(callback.release()); 207 207 } else 208 bindFallbackCallback( PassOwnPtr<Callback>());208 bindFallbackCallback(nullptr); 209 209 } 210 210 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r84926 r85603 1298 1298 1299 1299 // In case LoadRequest failed before DidCreateDataSource was called. 1300 setPendingExtraData( PassOwnPtr<TestShellExtraData>());1300 setPendingExtraData(nullptr); 1301 1301 1302 1302 // Restore focus to the main frame prior to loading new request.
Note: See TracChangeset
for help on using the changeset viewer.