Changeset 184066 in webkit
- Timestamp:
- May 10, 2015, 10:53:20 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 66 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/page/DebugPageOverlays.cpp (modified) (2 diffs)
-
WebCore/page/EventSource.cpp (modified) (1 diff)
-
WebCore/page/EventSource.h (modified) (1 diff)
-
WebCore/page/History.h (modified) (1 diff)
-
WebCore/page/Location.h (modified) (1 diff)
-
WebCore/page/MainFrame.cpp (modified) (1 diff)
-
WebCore/page/MainFrame.h (modified) (1 diff)
-
WebCore/page/Navigator.h (modified) (1 diff)
-
WebCore/page/PageOverlay.cpp (modified) (1 diff)
-
WebCore/page/PageOverlay.h (modified) (1 diff)
-
WebCore/page/Performance.h (modified) (1 diff)
-
WebCore/page/PerformanceEntryList.h (modified) (1 diff)
-
WebCore/page/PerformanceMark.h (modified) (1 diff)
-
WebCore/page/PerformanceMeasure.h (modified) (1 diff)
-
WebCore/page/PerformanceNavigation.h (modified) (1 diff)
-
WebCore/page/PerformanceResourceTiming.h (modified) (1 diff)
-
WebCore/page/PerformanceTiming.h (modified) (1 diff)
-
WebCore/page/PerformanceUserTiming.h (modified) (1 diff)
-
WebCore/page/Screen.h (modified) (1 diff)
-
WebCore/page/Settings.cpp (modified) (1 diff)
-
WebCore/page/Settings.h (modified) (1 diff)
-
WebCore/page/TextIndicator.cpp (modified) (3 diffs)
-
WebCore/page/TextIndicator.h (modified) (1 diff)
-
WebCore/page/UserContentController.cpp (modified) (1 diff)
-
WebCore/page/UserContentController.h (modified) (1 diff)
-
WebCore/page/UserMessageHandlerDescriptor.h (modified) (1 diff)
-
WebCore/page/UserMessageHandlersNamespace.h (modified) (1 diff)
-
WebCore/page/VisitedLinkStore.h (modified) (1 diff)
-
WebCore/page/WebKitNamespace.h (modified) (2 diffs)
-
WebCore/page/WebKitPoint.h (modified) (1 diff)
-
WebCore/page/WorkerNavigator.h (modified) (1 diff)
-
WebCore/page/animation/ImplicitAnimation.h (modified) (1 diff)
-
WebCore/page/animation/KeyframeAnimation.h (modified) (1 diff)
-
WebCore/page/mac/ServicesOverlayController.h (modified) (1 diff)
-
WebCore/page/mac/ServicesOverlayController.mm (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingCoordinator.cpp (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingCoordinator.h (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingStateFixedNode.cpp (modified) (2 diffs)
-
WebCore/page/scrolling/ScrollingStateFixedNode.h (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp (modified) (2 diffs)
-
WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingStateNode.h (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.cpp (modified) (2 diffs)
-
WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.h (modified) (1 diff)
-
WebCore/page/scrolling/ScrollingStateStickyNode.cpp (modified) (2 diffs)
-
WebCore/page/scrolling/ScrollingStateStickyNode.h (modified) (1 diff)
-
WebCore/page/scrolling/ios/ScrollingCoordinatorIOS.mm (modified) (1 diff)
-
WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h (modified) (1 diff)
-
WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm (modified) (1 diff)
-
WebCore/page/scrolling/ios/ScrollingTreeIOS.cpp (modified) (1 diff)
-
WebCore/page/scrolling/ios/ScrollingTreeIOS.h (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeFixedNode.h (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeFixedNode.mm (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeMac.cpp (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeMac.h (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeStickyNode.h (modified) (1 diff)
-
WebCore/page/scrolling/mac/ScrollingTreeStickyNode.mm (modified) (1 diff)
-
WebKit/mac/WebCoreSupport/WebViewGroup.mm (modified) (1 diff)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/UIProcess/WebPageProxy.cpp (modified) (1 diff)
-
WebKit2/UIProcess/mac/PageClientImpl.mm (modified) (1 diff)
-
WebKit2/WebProcess/UserContent/WebUserContentController.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r184065 r184066 1 2015-05-10 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 3 Use Ref instead of PassRefPtr in WebCore/page 4 https://bugs.webkit.org/show_bug.cgi?id=144841 5 6 Reviewed by Darin Adler. 7 8 To kill PassRefPtr, this patch replaces PassRefPtr with Ref or RefPtr 9 in WebCore/page. 10 11 No new tests, no behavior changes. 12 13 * page/DebugPageOverlays.cpp: 14 * page/EventSource.cpp: 15 (WebCore::EventSource::create): 16 * page/EventSource.h: 17 * page/History.h: 18 (WebCore::History::create): 19 * page/Location.h: 20 (WebCore::Location::create): 21 * page/MainFrame.cpp: 22 (WebCore::MainFrame::create): 23 * page/MainFrame.h: 24 * page/Navigator.h: 25 (WebCore::Navigator::create): 26 * page/PageOverlay.cpp: 27 (WebCore::PageOverlay::create): 28 * page/PageOverlay.h: 29 * page/Performance.h: 30 * page/PerformanceEntryList.h: 31 (WebCore::PerformanceEntryList::create): 32 * page/PerformanceMark.h: 33 (WebCore::PerformanceMark::create): 34 * page/PerformanceMeasure.h: 35 (WebCore::PerformanceMeasure::create): 36 * page/PerformanceNavigation.h: 37 (WebCore::PerformanceNavigation::create): 38 * page/PerformanceResourceTiming.h: 39 (WebCore::PerformanceResourceTiming::create): 40 * page/PerformanceTiming.h: 41 (WebCore::PerformanceTiming::create): 42 * page/PerformanceUserTiming.h: 43 (WebCore::UserTiming::create): 44 * page/Screen.h: 45 * page/Settings.cpp: 46 (WebCore::Settings::create): 47 * page/Settings.h: 48 * page/TextIndicator.cpp: 49 (WebCore::TextIndicator::create): 50 * page/TextIndicator.h: 51 * page/UserContentController.cpp: 52 (WebCore::UserContentController::create): 53 * page/UserContentController.h: 54 * page/UserMessageHandlerDescriptor.h: 55 (WebCore::UserMessageHandlerDescriptor::create): 56 * page/UserMessageHandlersNamespace.h: 57 * page/VisitedLinkStore.h: 58 * page/WebKitNamespace.h: 59 (WebCore::WebKitNamespace::create): 60 * page/WebKitPoint.h: 61 (WebCore::WebKitPoint::create): 62 * page/WorkerNavigator.h: 63 (WebCore::WorkerNavigator::create): 64 * page/animation/ImplicitAnimation.h: 65 (WebCore::ImplicitAnimation::create): 66 * page/animation/KeyframeAnimation.h: 67 * page/mac/ServicesOverlayController.h: 68 * page/mac/ServicesOverlayController.mm: 69 (WebCore::ServicesOverlayController::Highlight::createForSelection): 70 (WebCore::ServicesOverlayController::Highlight::createForTelephoneNumber): 71 * page/scrolling/ScrollingCoordinator.cpp: 72 (WebCore::ScrollingCoordinator::create): 73 * page/scrolling/ScrollingCoordinator.h: 74 * page/scrolling/ScrollingStateFixedNode.cpp: 75 (WebCore::ScrollingStateFixedNode::create): 76 (WebCore::ScrollingStateFixedNode::clone): 77 * page/scrolling/ScrollingStateFixedNode.h: 78 * page/scrolling/ScrollingStateFrameScrollingNode.cpp: 79 (WebCore::ScrollingStateFrameScrollingNode::create): 80 (WebCore::ScrollingStateFrameScrollingNode::clone): 81 * page/scrolling/ScrollingStateFrameScrollingNode.h: 82 * page/scrolling/ScrollingStateNode.h: 83 * page/scrolling/ScrollingStateOverflowScrollingNode.cpp: 84 (WebCore::ScrollingStateOverflowScrollingNode::create): 85 (WebCore::ScrollingStateOverflowScrollingNode::clone): 86 * page/scrolling/ScrollingStateOverflowScrollingNode.h: 87 * page/scrolling/ScrollingStateStickyNode.cpp: 88 (WebCore::ScrollingStateStickyNode::create): 89 (WebCore::ScrollingStateStickyNode::clone): 90 * page/scrolling/ScrollingStateStickyNode.h: 91 * page/scrolling/ios/ScrollingCoordinatorIOS.mm: 92 (WebCore::ScrollingCoordinator::create): 93 * page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h: 94 * page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm: 95 (WebCore::ScrollingTreeFrameScrollingNodeIOS::create): 96 * page/scrolling/ios/ScrollingTreeIOS.cpp: 97 (WebCore::ScrollingTreeIOS::create): 98 * page/scrolling/mac/ScrollingCoordinatorMac.mm: 99 (WebCore::ScrollingCoordinator::create): 100 * page/scrolling/mac/ScrollingTreeFixedNode.h: 101 * page/scrolling/mac/ScrollingTreeFixedNode.mm: 102 (WebCore::ScrollingTreeFixedNode::create): 103 * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h: 104 * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm: 105 (WebCore::ScrollingTreeFrameScrollingNodeMac::create): 106 * page/scrolling/mac/ScrollingTreeMac.cpp: 107 (ScrollingTreeMac::create): 108 * page/scrolling/mac/ScrollingTreeMac.h: 109 * page/scrolling/mac/ScrollingTreeStickyNode.h: 110 * page/scrolling/mac/ScrollingTreeStickyNode.mm: 111 (WebCore::ScrollingTreeStickyNode::create): 112 1 113 2015-05-10 Simon Fraser <simon.fraser@apple.com> 2 114 -
trunk/Source/WebCore/page/DebugPageOverlays.cpp
r183597 r184066 75 75 class MouseWheelRegionOverlay final : public RegionOverlay { 76 76 public: 77 static PassRefPtr<MouseWheelRegionOverlay> create(MainFrame& frame)77 static Ref<MouseWheelRegionOverlay> create(MainFrame& frame) 78 78 { 79 return adoptRef( new MouseWheelRegionOverlay(frame));79 return adoptRef(*new MouseWheelRegionOverlay(frame)); 80 80 } 81 81 … … 114 114 class NonFastScrollableRegionOverlay final : public RegionOverlay { 115 115 public: 116 static PassRefPtr<NonFastScrollableRegionOverlay> create(MainFrame& frame)116 static Ref<NonFastScrollableRegionOverlay> create(MainFrame& frame) 117 117 { 118 return adoptRef( new NonFastScrollableRegionOverlay(frame));118 return adoptRef(*new NonFastScrollableRegionOverlay(frame)); 119 119 } 120 120 -
trunk/Source/WebCore/page/EventSource.cpp
r183031 r184066 73 73 } 74 74 75 PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext& context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec)75 RefPtr<EventSource> EventSource::create(ScriptExecutionContext& context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec) 76 76 { 77 77 if (url.isEmpty()) { -
trunk/Source/WebCore/page/EventSource.h
r182544 r184066 52 52 WTF_MAKE_FAST_ALLOCATED; 53 53 public: 54 static PassRefPtr<EventSource> create(ScriptExecutionContext&, const String& url, const Dictionary&, ExceptionCode&);54 static RefPtr<EventSource> create(ScriptExecutionContext&, const String& url, const Dictionary&, ExceptionCode&); 55 55 virtual ~EventSource(); 56 56 -
trunk/Source/WebCore/page/History.h
r165676 r184066 43 43 class History : public ScriptWrappable, public RefCounted<History>, public DOMWindowProperty { 44 44 public: 45 static PassRefPtr<History> create(Frame* frame) { return adoptRef(new History(frame)); }45 static Ref<History> create(Frame* frame) { return adoptRef(*new History(frame)); } 46 46 47 47 unsigned length() const; -
trunk/Source/WebCore/page/Location.h
r165676 r184066 47 47 class Location : public ScriptWrappable, public RefCounted<Location>, public DOMWindowProperty { 48 48 public: 49 static PassRefPtr<Location> create(Frame* frame) { return adoptRef(new Location(frame)); }49 static Ref<Location> create(Frame* frame) { return adoptRef(*new Location(frame)); } 50 50 51 51 void setHref(const String&, DOMWindow& activeWindow, DOMWindow& firstWindow); -
trunk/Source/WebCore/page/MainFrame.cpp
r183595 r184066 62 62 } 63 63 64 Ref Ptr<MainFrame> MainFrame::create(Page& page, PageConfiguration& configuration)64 Ref<MainFrame> MainFrame::create(Page& page, PageConfiguration& configuration) 65 65 { 66 return adoptRef( new MainFrame(page, configuration));66 return adoptRef(*new MainFrame(page, configuration)); 67 67 } 68 68 -
trunk/Source/WebCore/page/MainFrame.h
r183595 r184066 41 41 class MainFrame final : public Frame { 42 42 public: 43 static Ref Ptr<MainFrame> create(Page&, PageConfiguration&);43 static Ref<MainFrame> create(Page&, PageConfiguration&); 44 44 45 45 virtual ~MainFrame(); -
trunk/Source/WebCore/page/Navigator.h
r169017 r184066 42 42 class Navigator : public NavigatorBase, public ScriptWrappable, public RefCounted<Navigator>, public DOMWindowProperty, public Supplementable<Navigator> { 43 43 public: 44 static PassRefPtr<Navigator> create(Frame* frame) { return adoptRef(new Navigator(frame)); }44 static Ref<Navigator> create(Frame* frame) { return adoptRef(*new Navigator(frame)); } 45 45 virtual ~Navigator(); 46 46 -
trunk/Source/WebCore/page/PageOverlay.cpp
r183597 r184066 47 47 } 48 48 49 PassRefPtr<PageOverlay> PageOverlay::create(Client& client, OverlayType overlayType)50 { 51 return adoptRef( new PageOverlay(client, overlayType));49 Ref<PageOverlay> PageOverlay::create(Client& client, OverlayType overlayType) 50 { 51 return adoptRef(*new PageOverlay(client, overlayType)); 52 52 } 53 53 -
trunk/Source/WebCore/page/PageOverlay.h
r183597 r184066 70 70 }; 71 71 72 WEBCORE_EXPORT static PassRefPtr<PageOverlay> create(Client&, OverlayType = OverlayType::View);72 WEBCORE_EXPORT static Ref<PageOverlay> create(Client&, OverlayType = OverlayType::View); 73 73 WEBCORE_EXPORT virtual ~PageOverlay(); 74 74 -
trunk/Source/WebCore/page/Performance.h
r183795 r184066 55 55 class Performance final : public ScriptWrappable, public RefCounted<Performance>, public DOMWindowProperty, public EventTargetWithInlineData { 56 56 public: 57 static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Performance(frame)); }57 static Ref<Performance> create(Frame* frame) { return adoptRef(*new Performance(frame)); } 58 58 ~Performance(); 59 59 -
trunk/Source/WebCore/page/PerformanceEntryList.h
r157653 r184066 46 46 class PerformanceEntryList : public RefCounted<PerformanceEntryList> { 47 47 public: 48 static PassRefPtr<PerformanceEntryList> create() { return adoptRef(new PerformanceEntryList); }48 static Ref<PerformanceEntryList> create() { return adoptRef(*new PerformanceEntryList); } 49 49 ~PerformanceEntryList(); 50 50 -
trunk/Source/WebCore/page/PerformanceMark.h
r140882 r184066 37 37 class PerformanceMark : public PerformanceEntry { 38 38 public: 39 static PassRefPtr<PerformanceMark> create(const String& name, double startTime) { return adoptRef(new PerformanceMark(name, startTime)); }39 static Ref<PerformanceMark> create(const String& name, double startTime) { return adoptRef(*new PerformanceMark(name, startTime)); } 40 40 41 41 virtual bool isMark() { return true; } -
trunk/Source/WebCore/page/PerformanceMeasure.h
r140882 r184066 37 37 class PerformanceMeasure : public PerformanceEntry { 38 38 public: 39 static PassRefPtr<PerformanceMeasure> create(const String& name, double startTime, double duration) { return adoptRef(new PerformanceMeasure(name, startTime, duration)); }39 static Ref<PerformanceMeasure> create(const String& name, double startTime, double duration) { return adoptRef(*new PerformanceMeasure(name, startTime, duration)); } 40 40 41 41 virtual bool isMeasure() { return true; } -
trunk/Source/WebCore/page/PerformanceNavigation.h
r104380 r184066 44 44 class PerformanceNavigation : public RefCounted<PerformanceNavigation>, public DOMWindowProperty { 45 45 public: 46 static PassRefPtr<PerformanceNavigation> create(Frame* frame) { return adoptRef(new PerformanceNavigation(frame)); }46 static Ref<PerformanceNavigation> create(Frame* frame) { return adoptRef(*new PerformanceNavigation(frame)); } 47 47 48 48 enum PerformanceNavigationType { -
trunk/Source/WebCore/page/PerformanceResourceTiming.h
r178019 r184066 51 51 class PerformanceResourceTiming : public PerformanceEntry { 52 52 public: 53 static PassRefPtr<PerformanceResourceTiming> create(const AtomicString& initiatorType, const ResourceRequest& request, const ResourceResponse& response, double initiationTime, double finishTime, Document* requestingDocument)53 static Ref<PerformanceResourceTiming> create(const AtomicString& initiatorType, const ResourceRequest& request, const ResourceResponse& response, double initiationTime, double finishTime, Document* requestingDocument) 54 54 { 55 return adoptRef( new PerformanceResourceTiming(initiatorType, request, response, initiationTime, finishTime, requestingDocument));55 return adoptRef(*new PerformanceResourceTiming(initiatorType, request, response, initiationTime, finishTime, requestingDocument)); 56 56 } 57 57 -
trunk/Source/WebCore/page/PerformanceTiming.h
r168845 r184066 48 48 class PerformanceTiming : public RefCounted<PerformanceTiming>, public DOMWindowProperty { 49 49 public: 50 static PassRefPtr<PerformanceTiming> create(Frame* frame) { return adoptRef(new PerformanceTiming(frame)); }50 static Ref<PerformanceTiming> create(Frame* frame) { return adoptRef(*new PerformanceTiming(frame)); } 51 51 52 52 unsigned long long navigationStart() const; -
trunk/Source/WebCore/page/PerformanceUserTiming.h
r136565 r184066 49 49 class UserTiming : public RefCounted<UserTiming> { 50 50 public: 51 static PassRefPtr<UserTiming> create(Performance* performance) { return adoptRef(new UserTiming(performance)); }51 static Ref<UserTiming> create(Performance* performance) { return adoptRef(*new UserTiming(performance)); } 52 52 53 53 void mark(const String& markName, ExceptionCode&); -
trunk/Source/WebCore/page/Screen.h
r175434 r184066 42 42 class Screen final : public ScriptWrappable, public RefCounted<Screen>, public DOMWindowProperty { 43 43 public: 44 static PassRefPtr<Screen> create(Frame* frame) { return adoptRef(new Screen(frame)); }44 static Ref<Screen> create(Frame* frame) { return adoptRef(*new Screen(frame)); } 45 45 46 46 unsigned height() const; -
trunk/Source/WebCore/page/Settings.cpp
r183727 r184066 214 214 } 215 215 216 PassRefPtr<Settings> Settings::create(Page* page)217 { 218 return adoptRef( new Settings(page));216 Ref<Settings> Settings::create(Page* page) 217 { 218 return adoptRef(*new Settings(page)); 219 219 } 220 220 -
trunk/Source/WebCore/page/Settings.h
r183442 r184066 72 72 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; 73 73 public: 74 static PassRefPtr<Settings> create(Page*);74 static Ref<Settings> create(Page*); 75 75 ~Settings(); 76 76 -
trunk/Source/WebCore/page/TextIndicator.cpp
r183158 r184066 86 86 } 87 87 88 PassRefPtr<TextIndicator> TextIndicator::create(const TextIndicatorData& data)89 { 90 return adoptRef( new TextIndicator(data));91 } 92 93 PassRefPtr<TextIndicator> TextIndicator::createWithRange(const Range& range, TextIndicatorPresentationTransition presentationTransition)88 Ref<TextIndicator> TextIndicator::create(const TextIndicatorData& data) 89 { 90 return adoptRef(*new TextIndicator(data)); 91 } 92 93 RefPtr<TextIndicator> TextIndicator::createWithRange(const Range& range, TextIndicatorPresentationTransition presentationTransition) 94 94 { 95 95 Frame* frame = range.startContainer()->document().frame(); … … 110 110 // FIXME (138889): Ideally the FrameSnapshotting functions would be more flexible 111 111 // and we wouldn't have to implement this here. 112 static PassRefPtr<Image> snapshotSelectionWithHighlight(Frame& frame)112 static RefPtr<Image> snapshotSelectionWithHighlight(Frame& frame) 113 113 { 114 114 auto& selection = frame.selection(); … … 131 131 } 132 132 133 PassRefPtr<TextIndicator> TextIndicator::createWithSelectionInFrame(Frame& frame, TextIndicatorPresentationTransition presentationTransition)133 RefPtr<TextIndicator> TextIndicator::createWithSelectionInFrame(Frame& frame, TextIndicatorPresentationTransition presentationTransition) 134 134 { 135 135 IntRect selectionRect = enclosingIntRect(frame.selection().selectionBounds()); -
trunk/Source/WebCore/page/TextIndicator.h
r183517 r184066 82 82 class TextIndicator : public RefCounted<TextIndicator> { 83 83 public: 84 WEBCORE_EXPORT static PassRefPtr<TextIndicator> create(const TextIndicatorData&);85 WEBCORE_EXPORT static PassRefPtr<TextIndicator> createWithSelectionInFrame(Frame&, TextIndicatorPresentationTransition);86 WEBCORE_EXPORT static PassRefPtr<TextIndicator> createWithRange(const Range&, TextIndicatorPresentationTransition);84 WEBCORE_EXPORT static Ref<TextIndicator> create(const TextIndicatorData&); 85 WEBCORE_EXPORT static RefPtr<TextIndicator> createWithSelectionInFrame(Frame&, TextIndicatorPresentationTransition); 86 WEBCORE_EXPORT static RefPtr<TextIndicator> createWithRange(const Range&, TextIndicatorPresentationTransition); 87 87 88 88 WEBCORE_EXPORT ~TextIndicator(); -
trunk/Source/WebCore/page/UserContentController.cpp
r182564 r184066 46 46 namespace WebCore { 47 47 48 Ref Ptr<UserContentController> UserContentController::create()49 { 50 return adoptRef( new UserContentController);48 Ref<UserContentController> UserContentController::create() 49 { 50 return adoptRef(*new UserContentController); 51 51 } 52 52 -
trunk/Source/WebCore/page/UserContentController.h
r182564 r184066 61 61 class UserContentController : public RefCounted<UserContentController> { 62 62 public: 63 WEBCORE_EXPORT static Ref Ptr<UserContentController> create();63 WEBCORE_EXPORT static Ref<UserContentController> create(); 64 64 WEBCORE_EXPORT ~UserContentController(); 65 65 -
trunk/Source/WebCore/page/UserMessageHandlerDescriptor.h
r172849 r184066 49 49 }; 50 50 51 static PassRefPtr<UserMessageHandlerDescriptor> create(const AtomicString& name, DOMWrapperWorld& world, Client& client)51 static Ref<UserMessageHandlerDescriptor> create(const AtomicString& name, DOMWrapperWorld& world, Client& client) 52 52 { 53 return adoptRef( new UserMessageHandlerDescriptor(name, world, client));53 return adoptRef(*new UserMessageHandlerDescriptor(name, world, client)); 54 54 } 55 55 WEBCORE_EXPORT ~UserMessageHandlerDescriptor(); -
trunk/Source/WebCore/page/UserMessageHandlersNamespace.h
r177259 r184066 31 31 #include "FrameDestructionObserver.h" 32 32 #include "UserMessageHandler.h" 33 #include <wtf/PassRefPtr.h>34 33 #include <wtf/RefCounted.h> 35 34 #include <wtf/RefPtr.h> -
trunk/Source/WebCore/page/VisitedLinkStore.h
r172849 r184066 29 29 #include <wtf/Forward.h> 30 30 #include <wtf/HashSet.h> 31 #include <wtf/PassRefPtr.h>32 31 #include <wtf/RefCounted.h> 33 32 -
trunk/Source/WebCore/page/WebKitNamespace.h
r169023 r184066 30 30 31 31 #include "DOMWindowProperty.h" 32 #include <wtf/PassRefPtr.h>33 32 #include <wtf/Ref.h> 34 33 #include <wtf/RefCounted.h> … … 41 40 class WebKitNamespace : public DOMWindowProperty, public RefCounted<WebKitNamespace> { 42 41 public: 43 static PassRefPtr<WebKitNamespace> create(Frame& frame)42 static Ref<WebKitNamespace> create(Frame& frame) 44 43 { 45 return adoptRef( new WebKitNamespace(frame));44 return adoptRef(*new WebKitNamespace(frame)); 46 45 } 47 46 -
trunk/Source/WebCore/page/WebKitPoint.h
r165676 r184066 35 35 public: 36 36 37 static PassRefPtr<WebKitPoint> create()37 static Ref<WebKitPoint> create() 38 38 { 39 return adoptRef( new WebKitPoint());39 return adoptRef(*new WebKitPoint); 40 40 } 41 static PassRefPtr<WebKitPoint> create(float x, float y)41 static Ref<WebKitPoint> create(float x, float y) 42 42 { 43 return adoptRef( new WebKitPoint(x, y));43 return adoptRef(*new WebKitPoint(x, y)); 44 44 } 45 45 -
trunk/Source/WebCore/page/WorkerNavigator.h
r165676 r184066 38 38 class WorkerNavigator : public NavigatorBase, public RefCounted<WorkerNavigator>, public Supplementable<WorkerNavigator> { 39 39 public: 40 static PassRefPtr<WorkerNavigator> create(const String& userAgent) { return adoptRef(new WorkerNavigator(userAgent)); }40 static Ref<WorkerNavigator> create(const String& userAgent) { return adoptRef(*new WorkerNavigator(userAgent)); } 41 41 virtual ~WorkerNavigator(); 42 42 -
trunk/Source/WebCore/page/animation/ImplicitAnimation.h
r183454 r184066 42 42 class ImplicitAnimation : public AnimationBase { 43 43 public: 44 static PassRefPtr<ImplicitAnimation> create(Animation& animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* fromStyle)44 static Ref<ImplicitAnimation> create(Animation& animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* fromStyle) 45 45 { 46 return adoptRef( new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle));46 return adoptRef(*new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle)); 47 47 }; 48 48 -
trunk/Source/WebCore/page/animation/KeyframeAnimation.h
r183454 r184066 41 41 class KeyframeAnimation final : public AnimationBase { 42 42 public: 43 static Ref Ptr<KeyframeAnimation> create(Animation& animation, RenderElement* renderer, int index, CompositeAnimation* compositeAnimation, RenderStyle* unanimatedStyle)43 static Ref<KeyframeAnimation> create(Animation& animation, RenderElement* renderer, int index, CompositeAnimation* compositeAnimation, RenderStyle* unanimatedStyle) 44 44 { 45 return adoptRef( new KeyframeAnimation(animation, renderer, index, compositeAnimation, unanimatedStyle));45 return adoptRef(*new KeyframeAnimation(animation, renderer, index, compositeAnimation, unanimatedStyle)); 46 46 } 47 47 -
trunk/Source/WebCore/page/mac/ServicesOverlayController.h
r184047 r184066 58 58 WTF_MAKE_NONCOPYABLE(Highlight); 59 59 public: 60 static PassRefPtr<Highlight> createForSelection(ServicesOverlayController&, RetainPtr<DDHighlightRef>, PassRefPtr<Range>);61 static PassRefPtr<Highlight> createForTelephoneNumber(ServicesOverlayController&, RetainPtr<DDHighlightRef>, PassRefPtr<Range>);60 static Ref<Highlight> createForSelection(ServicesOverlayController&, RetainPtr<DDHighlightRef>, PassRefPtr<Range>); 61 static Ref<Highlight> createForTelephoneNumber(ServicesOverlayController&, RetainPtr<DDHighlightRef>, PassRefPtr<Range>); 62 62 ~Highlight(); 63 63 -
trunk/Source/WebCore/page/mac/ServicesOverlayController.mm
r184047 r184066 56 56 namespace WebCore { 57 57 58 PassRefPtr<ServicesOverlayController::Highlight> ServicesOverlayController::Highlight::createForSelection(ServicesOverlayController& controller, RetainPtr<DDHighlightRef> ddHighlight, PassRefPtr<Range> range)59 { 60 return adoptRef( new Highlight(controller, Type::Selection, ddHighlight, range));61 } 62 63 PassRefPtr<ServicesOverlayController::Highlight> ServicesOverlayController::Highlight::createForTelephoneNumber(ServicesOverlayController& controller, RetainPtr<DDHighlightRef> ddHighlight, PassRefPtr<Range> range)64 { 65 return adoptRef( new Highlight(controller, Type::TelephoneNumber, ddHighlight, range));58 Ref<ServicesOverlayController::Highlight> ServicesOverlayController::Highlight::createForSelection(ServicesOverlayController& controller, RetainPtr<DDHighlightRef> ddHighlight, PassRefPtr<Range> range) 59 { 60 return adoptRef(*new Highlight(controller, Type::Selection, ddHighlight, range)); 61 } 62 63 Ref<ServicesOverlayController::Highlight> ServicesOverlayController::Highlight::createForTelephoneNumber(ServicesOverlayController& controller, RetainPtr<DDHighlightRef> ddHighlight, PassRefPtr<Range> range) 64 { 65 return adoptRef(*new Highlight(controller, Type::TelephoneNumber, ddHighlight, range)); 66 66 } 67 67 -
trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
r183606 r184066 56 56 57 57 #if !PLATFORM(COCOA) 58 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)58 Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page) 59 59 { 60 60 #if USE(COORDINATED_GRAPHICS) 61 return adoptRef( new ScrollingCoordinatorCoordinatedGraphics(page));62 #endif 63 64 return adoptRef( new ScrollingCoordinator(page));61 return adoptRef(*new ScrollingCoordinatorCoordinatedGraphics(page)); 62 #endif 63 64 return adoptRef(*new ScrollingCoordinator(page)); 65 65 } 66 66 #endif -
trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.h
r183597 r184066 107 107 class ScrollingCoordinator : public ThreadSafeRefCounted<ScrollingCoordinator> { 108 108 public: 109 static PassRefPtr<ScrollingCoordinator> create(Page*);109 static Ref<ScrollingCoordinator> create(Page*); 110 110 virtual ~ScrollingCoordinator(); 111 111 -
trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.cpp
r180493 r184066 35 35 namespace WebCore { 36 36 37 PassRefPtr<ScrollingStateFixedNode> ScrollingStateFixedNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)37 Ref<ScrollingStateFixedNode> ScrollingStateFixedNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID) 38 38 { 39 return adoptRef( new ScrollingStateFixedNode(stateTree, nodeID));39 return adoptRef(*new ScrollingStateFixedNode(stateTree, nodeID)); 40 40 } 41 41 … … 55 55 } 56 56 57 PassRefPtr<ScrollingStateNode> ScrollingStateFixedNode::clone(ScrollingStateTree& adoptiveTree)57 Ref<ScrollingStateNode> ScrollingStateFixedNode::clone(ScrollingStateTree& adoptiveTree) 58 58 { 59 return adoptRef( new ScrollingStateFixedNode(*this, adoptiveTree));59 return adoptRef(*new ScrollingStateFixedNode(*this, adoptiveTree)); 60 60 } 61 61 -
trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.h
r176915 r184066 40 40 class ScrollingStateFixedNode final : public ScrollingStateNode { 41 41 public: 42 static PassRefPtr<ScrollingStateFixedNode> create(ScrollingStateTree&, ScrollingNodeID);42 static Ref<ScrollingStateFixedNode> create(ScrollingStateTree&, ScrollingNodeID); 43 43 44 virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;44 virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override; 45 45 46 46 virtual ~ScrollingStateFixedNode(); -
trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp
r183655 r184066 34 34 namespace WebCore { 35 35 36 PassRefPtr<ScrollingStateFrameScrollingNode> ScrollingStateFrameScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)37 { 38 return adoptRef( new ScrollingStateFrameScrollingNode(stateTree, nodeID));36 Ref<ScrollingStateFrameScrollingNode> ScrollingStateFrameScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID) 37 { 38 return adoptRef(*new ScrollingStateFrameScrollingNode(stateTree, nodeID)); 39 39 } 40 40 … … 84 84 } 85 85 86 PassRefPtr<ScrollingStateNode> ScrollingStateFrameScrollingNode::clone(ScrollingStateTree& adoptiveTree)87 { 88 return adoptRef( new ScrollingStateFrameScrollingNode(*this, adoptiveTree));86 Ref<ScrollingStateNode> ScrollingStateFrameScrollingNode::clone(ScrollingStateTree& adoptiveTree) 87 { 88 return adoptRef(*new ScrollingStateFrameScrollingNode(*this, adoptiveTree)); 89 89 } 90 90 -
trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h
r183655 r184066 41 41 class ScrollingStateFrameScrollingNode final : public ScrollingStateScrollingNode { 42 42 public: 43 static PassRefPtr<ScrollingStateFrameScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);43 static Ref<ScrollingStateFrameScrollingNode> create(ScrollingStateTree&, ScrollingNodeID); 44 44 45 virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;45 virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override; 46 46 47 47 virtual ~ScrollingStateFrameScrollingNode(); -
trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h
r180493 r184066 198 198 bool isOverflowScrollingNode() const { return m_nodeType == OverflowScrollingNode; } 199 199 200 virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree& adoptiveTree) = 0;200 virtual Ref<ScrollingStateNode> clone(ScrollingStateTree& adoptiveTree) = 0; 201 201 PassRefPtr<ScrollingStateNode> cloneAndReset(ScrollingStateTree& adoptiveTree); 202 202 void cloneAndResetChildren(ScrollingStateNode&, ScrollingStateTree& adoptiveTree); -
trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.cpp
r180493 r184066 34 34 namespace WebCore { 35 35 36 PassRefPtr<ScrollingStateOverflowScrollingNode> ScrollingStateOverflowScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)36 Ref<ScrollingStateOverflowScrollingNode> ScrollingStateOverflowScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID) 37 37 { 38 return adoptRef( new ScrollingStateOverflowScrollingNode(stateTree, nodeID));38 return adoptRef(*new ScrollingStateOverflowScrollingNode(stateTree, nodeID)); 39 39 } 40 40 … … 55 55 } 56 56 57 PassRefPtr<ScrollingStateNode> ScrollingStateOverflowScrollingNode::clone(ScrollingStateTree& adoptiveTree)57 Ref<ScrollingStateNode> ScrollingStateOverflowScrollingNode::clone(ScrollingStateTree& adoptiveTree) 58 58 { 59 return adoptRef( new ScrollingStateOverflowScrollingNode(*this, adoptiveTree));59 return adoptRef(*new ScrollingStateOverflowScrollingNode(*this, adoptiveTree)); 60 60 } 61 61 -
trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.h
r176915 r184066 35 35 class ScrollingStateOverflowScrollingNode : public ScrollingStateScrollingNode { 36 36 public: 37 static PassRefPtr<ScrollingStateOverflowScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);37 static Ref<ScrollingStateOverflowScrollingNode> create(ScrollingStateTree&, ScrollingNodeID); 38 38 39 virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;39 virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override; 40 40 41 41 virtual ~ScrollingStateOverflowScrollingNode(); -
trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.cpp
r180493 r184066 35 35 namespace WebCore { 36 36 37 PassRefPtr<ScrollingStateStickyNode> ScrollingStateStickyNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)37 Ref<ScrollingStateStickyNode> ScrollingStateStickyNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID) 38 38 { 39 return adoptRef( new ScrollingStateStickyNode(stateTree, nodeID));39 return adoptRef(*new ScrollingStateStickyNode(stateTree, nodeID)); 40 40 } 41 41 … … 55 55 } 56 56 57 PassRefPtr<ScrollingStateNode> ScrollingStateStickyNode::clone(ScrollingStateTree& adoptiveTree)57 Ref<ScrollingStateNode> ScrollingStateStickyNode::clone(ScrollingStateTree& adoptiveTree) 58 58 { 59 return adoptRef( new ScrollingStateStickyNode(*this, adoptiveTree));59 return adoptRef(*new ScrollingStateStickyNode(*this, adoptiveTree)); 60 60 } 61 61 -
trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.h
r176915 r184066 40 40 class ScrollingStateStickyNode final : public ScrollingStateNode { 41 41 public: 42 static PassRefPtr<ScrollingStateStickyNode> create(ScrollingStateTree&, ScrollingNodeID);42 static Ref<ScrollingStateStickyNode> create(ScrollingStateTree&, ScrollingNodeID); 43 43 44 virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;44 virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override; 45 45 46 46 virtual ~ScrollingStateStickyNode(); -
trunk/Source/WebCore/page/scrolling/ios/ScrollingCoordinatorIOS.mm
r183746 r184066 45 45 namespace WebCore { 46 46 47 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)47 Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page) 48 48 { 49 return adoptRef( new ScrollingCoordinatorIOS(page));49 return adoptRef(*new ScrollingCoordinatorIOS(page)); 50 50 } 51 51 -
trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h
r176915 r184066 38 38 class ScrollingTreeFrameScrollingNodeIOS : public ScrollingTreeFrameScrollingNode { 39 39 public: 40 WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFrameScrollingNodeIOS> create(ScrollingTree&, ScrollingNodeID);40 WEBCORE_EXPORT static Ref<ScrollingTreeFrameScrollingNodeIOS> create(ScrollingTree&, ScrollingNodeID); 41 41 virtual ~ScrollingTreeFrameScrollingNodeIOS(); 42 42 -
trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm
r183655 r184066 41 41 namespace WebCore { 42 42 43 PassRefPtr<ScrollingTreeFrameScrollingNodeIOS> ScrollingTreeFrameScrollingNodeIOS::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)44 { 45 return adoptRef( new ScrollingTreeFrameScrollingNodeIOS(scrollingTree, nodeID));43 Ref<ScrollingTreeFrameScrollingNodeIOS> ScrollingTreeFrameScrollingNodeIOS::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID) 44 { 45 return adoptRef(*new ScrollingTreeFrameScrollingNodeIOS(scrollingTree, nodeID)); 46 46 } 47 47 -
trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeIOS.cpp
r180441 r184066 42 42 namespace WebCore { 43 43 44 Ref Ptr<ScrollingTreeIOS> ScrollingTreeIOS::create(AsyncScrollingCoordinator* scrollingCoordinator)44 Ref<ScrollingTreeIOS> ScrollingTreeIOS::create(AsyncScrollingCoordinator* scrollingCoordinator) 45 45 { 46 return adoptRef( new ScrollingTreeIOS(scrollingCoordinator));46 return adoptRef(*new ScrollingTreeIOS(scrollingCoordinator)); 47 47 } 48 48 -
trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeIOS.h
r177835 r184066 40 40 class ScrollingTreeIOS : public ScrollingTree { 41 41 public: 42 static Ref Ptr<ScrollingTreeIOS> create(AsyncScrollingCoordinator*);42 static Ref<ScrollingTreeIOS> create(AsyncScrollingCoordinator*); 43 43 virtual ~ScrollingTreeIOS(); 44 44 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm
r183746 r184066 47 47 namespace WebCore { 48 48 49 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)49 Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page) 50 50 { 51 return adoptRef( new ScrollingCoordinatorMac(page));51 return adoptRef(*new ScrollingCoordinatorMac(page)); 52 52 } 53 53 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.h
r174374 r184066 41 41 class ScrollingTreeFixedNode : public ScrollingTreeNode { 42 42 public: 43 WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFixedNode> create(ScrollingTree&, ScrollingNodeID);43 WEBCORE_EXPORT static Ref<ScrollingTreeFixedNode> create(ScrollingTree&, ScrollingNodeID); 44 44 45 45 virtual ~ScrollingTreeFixedNode(); -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.mm
r174340 r184066 35 35 namespace WebCore { 36 36 37 PassRefPtr<ScrollingTreeFixedNode> ScrollingTreeFixedNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)37 Ref<ScrollingTreeFixedNode> ScrollingTreeFixedNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID) 38 38 { 39 return adoptRef( new ScrollingTreeFixedNode(scrollingTree, nodeID));39 return adoptRef(*new ScrollingTreeFixedNode(scrollingTree, nodeID)); 40 40 } 41 41 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h
r183702 r184066 40 40 class ScrollingTreeFrameScrollingNodeMac : public ScrollingTreeFrameScrollingNode, private ScrollControllerClient { 41 41 public: 42 WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFrameScrollingNode> create(ScrollingTree&, ScrollingNodeID);42 WEBCORE_EXPORT static Ref<ScrollingTreeFrameScrollingNode> create(ScrollingTree&, ScrollingNodeID); 43 43 virtual ~ScrollingTreeFrameScrollingNodeMac(); 44 44 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
r183702 r184066 50 50 static void logThreadedScrollingMode(unsigned synchronousScrollingReasons); 51 51 52 PassRefPtr<ScrollingTreeFrameScrollingNode> ScrollingTreeFrameScrollingNodeMac::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)53 { 54 return adoptRef( new ScrollingTreeFrameScrollingNodeMac(scrollingTree, nodeID));52 Ref<ScrollingTreeFrameScrollingNode> ScrollingTreeFrameScrollingNodeMac::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID) 53 { 54 return adoptRef(*new ScrollingTreeFrameScrollingNodeMac(scrollingTree, nodeID)); 55 55 } 56 56 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeMac.cpp
r170451 r184066 35 35 using namespace WebCore; 36 36 37 Ref Ptr<ScrollingTreeMac> ScrollingTreeMac::create(AsyncScrollingCoordinator* scrollingCoordinator)37 Ref<ScrollingTreeMac> ScrollingTreeMac::create(AsyncScrollingCoordinator* scrollingCoordinator) 38 38 { 39 return adoptRef( new ScrollingTreeMac(scrollingCoordinator));39 return adoptRef(*new ScrollingTreeMac(scrollingCoordinator)); 40 40 } 41 41 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeMac.h
r170451 r184066 35 35 class ScrollingTreeMac : public ThreadedScrollingTree { 36 36 public: 37 static Ref Ptr<ScrollingTreeMac> create(AsyncScrollingCoordinator*);37 static Ref<ScrollingTreeMac> create(AsyncScrollingCoordinator*); 38 38 39 39 virtual PassRefPtr<ScrollingTreeNode> createScrollingTreeNode(ScrollingNodeType, ScrollingNodeID) override; -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeStickyNode.h
r180441 r184066 41 41 class ScrollingTreeStickyNode : public ScrollingTreeNode { 42 42 public: 43 WEBCORE_EXPORT static PassRefPtr<ScrollingTreeStickyNode> create(ScrollingTree&, ScrollingNodeID);43 WEBCORE_EXPORT static Ref<ScrollingTreeStickyNode> create(ScrollingTree&, ScrollingNodeID); 44 44 45 45 virtual ~ScrollingTreeStickyNode(); -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeStickyNode.mm
r174374 r184066 37 37 namespace WebCore { 38 38 39 PassRefPtr<ScrollingTreeStickyNode> ScrollingTreeStickyNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)39 Ref<ScrollingTreeStickyNode> ScrollingTreeStickyNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID) 40 40 { 41 return adoptRef( new ScrollingTreeStickyNode(scrollingTree, nodeID));41 return adoptRef(*new ScrollingTreeStickyNode(scrollingTree, nodeID)); 42 42 } 43 43 -
trunk/Source/WebKit/mac/WebCoreSupport/WebViewGroup.mm
r176991 r184066 67 67 : m_name(name) 68 68 , m_localStorageDatabasePath(localStorageDatabasePath) 69 , m_userContentController( *UserContentController::create())69 , m_userContentController(UserContentController::create()) 70 70 , m_visitedLinkStore(WebVisitedLinkStore::create()) 71 71 { -
trunk/Source/WebKit2/ChangeLog
r184064 r184066 1 2015-05-10 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 3 Use Ref instead of PassRefPtr in WebCore/page 4 https://bugs.webkit.org/show_bug.cgi?id=144841 5 6 Reviewed by Darin Adler. 7 8 To kill PassRefPtr, this patch replaces PassRefPtr with Ref or RefPtr 9 in WebCore/page. 10 11 (WebKit::WebUserContentController::WebUserContentController): 12 * UIProcess/WebPageProxy.cpp: 13 (WebKit::WebPageProxy::setTextIndicator): 14 * UIProcess/mac/PageClientImpl.mm: 15 (WebKit::PageClientImpl::didPerformDictionaryLookup): 16 * WebProcess/UserContent/WebUserContentController.cpp: 17 (WebKit::WebUserContentController::WebUserContentController): 18 1 19 2015-05-10 Philip Chimento <philip.chimento@gmail.com> 2 20 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r184016 r184066 3925 3925 void WebPageProxy::setTextIndicator(const TextIndicatorData& indicatorData, uint64_t lifetime) 3926 3926 { 3927 m_pageClient.setTextIndicator( *TextIndicator::create(indicatorData), static_cast<TextIndicatorLifetime>(lifetime));3927 m_pageClient.setTextIndicator(TextIndicator::create(indicatorData), static_cast<TextIndicatorLifetime>(lifetime)); 3928 3928 } 3929 3929 -
trunk/Source/WebKit2/UIProcess/mac/PageClientImpl.mm
r183978 r184066 597 597 598 598 if (canLoadLUTermOptionDisableSearchTermIndicator() && dictionaryPopupInfo.textIndicator.contentImage) { 599 [m_wkView _setTextIndicator: *TextIndicator::create(dictionaryPopupInfo.textIndicator) withLifetime:TextIndicatorLifetime::Permanent];599 [m_wkView _setTextIndicator:TextIndicator::create(dictionaryPopupInfo.textIndicator) withLifetime:TextIndicatorLifetime::Permanent]; 600 600 [mutableOptions setObject:@YES forKey:getLUTermOptionDisableSearchTermIndicator()]; 601 601 [getLULookupDefinitionModuleClass() showDefinitionForTerm:dictionaryPopupInfo.attributedString.string.get() atLocation:textBaselineOrigin options:mutableOptions.get()]; -
trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp
r181246 r184066 70 70 WebUserContentController::WebUserContentController(uint64_t identifier) 71 71 : m_identifier(identifier) 72 , m_userContentController( *UserContentController::create())72 , m_userContentController(UserContentController::create()) 73 73 { 74 74 WebProcess::singleton().addMessageReceiver(Messages::WebUserContentController::messageReceiverName(), m_identifier, *this);
Note:
See TracChangeset
for help on using the changeset viewer.