⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184066 in webkit


Ignore:
Timestamp:
May 10, 2015, 10:53:20 PM (11 years ago)
Author:
Gyuyoung Kim
Message:

Use Ref instead of PassRefPtr in WebCore/page
https://bugs.webkit.org/show_bug.cgi?id=144841

Reviewed by Darin Adler.

To kill PassRefPtr, this patch replaces PassRefPtr with Ref or RefPtr
in WebCore/page.

Source/WebCore:

No new tests, no behavior changes.

  • page/DebugPageOverlays.cpp:
  • page/EventSource.cpp:

(WebCore::EventSource::create):

  • page/EventSource.h:
  • page/History.h:

(WebCore::History::create):

  • page/Location.h:

(WebCore::Location::create):

  • page/MainFrame.cpp:

(WebCore::MainFrame::create):

  • page/MainFrame.h:
  • page/Navigator.h:

(WebCore::Navigator::create):

  • page/PageOverlay.cpp:

(WebCore::PageOverlay::create):

  • page/PageOverlay.h:
  • page/Performance.h:
  • page/PerformanceEntryList.h:

(WebCore::PerformanceEntryList::create):

  • page/PerformanceMark.h:

(WebCore::PerformanceMark::create):

  • page/PerformanceMeasure.h:

(WebCore::PerformanceMeasure::create):

  • page/PerformanceNavigation.h:

(WebCore::PerformanceNavigation::create):

  • page/PerformanceResourceTiming.h:

(WebCore::PerformanceResourceTiming::create):

  • page/PerformanceTiming.h:

(WebCore::PerformanceTiming::create):

  • page/PerformanceUserTiming.h:

(WebCore::UserTiming::create):

  • page/Screen.h:
  • page/Settings.cpp:

(WebCore::Settings::create):

  • page/Settings.h:
  • page/TextIndicator.cpp:

(WebCore::TextIndicator::create):

  • page/TextIndicator.h:
  • page/UserContentController.cpp:

(WebCore::UserContentController::create):

  • page/UserContentController.h:
  • page/UserMessageHandlerDescriptor.h:

(WebCore::UserMessageHandlerDescriptor::create):

  • page/UserMessageHandlersNamespace.h:
  • page/VisitedLinkStore.h:
  • page/WebKitNamespace.h:

(WebCore::WebKitNamespace::create):

  • page/WebKitPoint.h:

(WebCore::WebKitPoint::create):

  • page/WorkerNavigator.h:

(WebCore::WorkerNavigator::create):

  • page/animation/ImplicitAnimation.h:

(WebCore::ImplicitAnimation::create):

  • page/animation/KeyframeAnimation.h:
  • page/mac/ServicesOverlayController.h:
  • page/mac/ServicesOverlayController.mm:

(WebCore::ServicesOverlayController::Highlight::createForSelection):
(WebCore::ServicesOverlayController::Highlight::createForTelephoneNumber):

  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::create):

  • page/scrolling/ScrollingCoordinator.h:
  • page/scrolling/ScrollingStateFixedNode.cpp:

(WebCore::ScrollingStateFixedNode::create):
(WebCore::ScrollingStateFixedNode::clone):

  • page/scrolling/ScrollingStateFixedNode.h:
  • page/scrolling/ScrollingStateFrameScrollingNode.cpp:

(WebCore::ScrollingStateFrameScrollingNode::create):
(WebCore::ScrollingStateFrameScrollingNode::clone):

  • page/scrolling/ScrollingStateFrameScrollingNode.h:
  • page/scrolling/ScrollingStateNode.h:
  • page/scrolling/ScrollingStateOverflowScrollingNode.cpp:

(WebCore::ScrollingStateOverflowScrollingNode::create):
(WebCore::ScrollingStateOverflowScrollingNode::clone):

  • page/scrolling/ScrollingStateOverflowScrollingNode.h:
  • page/scrolling/ScrollingStateStickyNode.cpp:

(WebCore::ScrollingStateStickyNode::create):
(WebCore::ScrollingStateStickyNode::clone):

  • page/scrolling/ScrollingStateStickyNode.h:
  • page/scrolling/ios/ScrollingCoordinatorIOS.mm:

(WebCore::ScrollingCoordinator::create):

  • page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h:
  • page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm:

(WebCore::ScrollingTreeFrameScrollingNodeIOS::create):

  • page/scrolling/ios/ScrollingTreeIOS.cpp:

(WebCore::ScrollingTreeIOS::create):

  • page/scrolling/mac/ScrollingCoordinatorMac.mm:

(WebCore::ScrollingCoordinator::create):

  • page/scrolling/mac/ScrollingTreeFixedNode.h:
  • page/scrolling/mac/ScrollingTreeFixedNode.mm:

(WebCore::ScrollingTreeFixedNode::create):

  • page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h:
  • page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:

(WebCore::ScrollingTreeFrameScrollingNodeMac::create):

  • page/scrolling/mac/ScrollingTreeMac.cpp:

(ScrollingTreeMac::create):

  • page/scrolling/mac/ScrollingTreeMac.h:
  • page/scrolling/mac/ScrollingTreeStickyNode.h:
  • page/scrolling/mac/ScrollingTreeStickyNode.mm:

(WebCore::ScrollingTreeStickyNode::create):

Source/WebKit2:

(WebKit::WebUserContentController::WebUserContentController):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::setTextIndicator):

  • UIProcess/mac/PageClientImpl.mm:

(WebKit::PageClientImpl::didPerformDictionaryLookup):

  • WebProcess/UserContent/WebUserContentController.cpp:

(WebKit::WebUserContentController::WebUserContentController):

Location:
trunk/Source
Files:
66 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r184065 r184066  
     12015-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
    11132015-05-10  Simon Fraser  <simon.fraser@apple.com>
    2114
  • trunk/Source/WebCore/page/DebugPageOverlays.cpp

    r183597 r184066  
    7575class MouseWheelRegionOverlay final : public RegionOverlay {
    7676public:
    77     static PassRefPtr<MouseWheelRegionOverlay> create(MainFrame& frame)
     77    static Ref<MouseWheelRegionOverlay> create(MainFrame& frame)
    7878    {
    79         return adoptRef(new MouseWheelRegionOverlay(frame));
     79        return adoptRef(*new MouseWheelRegionOverlay(frame));
    8080    }
    8181
     
    114114class NonFastScrollableRegionOverlay final : public RegionOverlay {
    115115public:
    116     static PassRefPtr<NonFastScrollableRegionOverlay> create(MainFrame& frame)
     116    static Ref<NonFastScrollableRegionOverlay> create(MainFrame& frame)
    117117    {
    118         return adoptRef(new NonFastScrollableRegionOverlay(frame));
     118        return adoptRef(*new NonFastScrollableRegionOverlay(frame));
    119119    }
    120120
  • trunk/Source/WebCore/page/EventSource.cpp

    r183031 r184066  
    7373}
    7474
    75 PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext& context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec)
     75RefPtr<EventSource> EventSource::create(ScriptExecutionContext& context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec)
    7676{
    7777    if (url.isEmpty()) {
  • trunk/Source/WebCore/page/EventSource.h

    r182544 r184066  
    5252    WTF_MAKE_FAST_ALLOCATED;
    5353public:
    54     static PassRefPtr<EventSource> create(ScriptExecutionContext&, const String& url, const Dictionary&, ExceptionCode&);
     54    static RefPtr<EventSource> create(ScriptExecutionContext&, const String& url, const Dictionary&, ExceptionCode&);
    5555    virtual ~EventSource();
    5656
  • trunk/Source/WebCore/page/History.h

    r165676 r184066  
    4343class History : public ScriptWrappable, public RefCounted<History>, public DOMWindowProperty {
    4444public:
    45     static PassRefPtr<History> create(Frame* frame) { return adoptRef(new History(frame)); }
     45    static Ref<History> create(Frame* frame) { return adoptRef(*new History(frame)); }
    4646
    4747    unsigned length() const;
  • trunk/Source/WebCore/page/Location.h

    r165676 r184066  
    4747class Location : public ScriptWrappable, public RefCounted<Location>, public DOMWindowProperty {
    4848public:
    49     static PassRefPtr<Location> create(Frame* frame) { return adoptRef(new Location(frame)); }
     49    static Ref<Location> create(Frame* frame) { return adoptRef(*new Location(frame)); }
    5050
    5151    void setHref(const String&, DOMWindow& activeWindow, DOMWindow& firstWindow);
  • trunk/Source/WebCore/page/MainFrame.cpp

    r183595 r184066  
    6262}
    6363
    64 RefPtr<MainFrame> MainFrame::create(Page& page, PageConfiguration& configuration)
     64Ref<MainFrame> MainFrame::create(Page& page, PageConfiguration& configuration)
    6565{
    66     return adoptRef(new MainFrame(page, configuration));
     66    return adoptRef(*new MainFrame(page, configuration));
    6767}
    6868
  • trunk/Source/WebCore/page/MainFrame.h

    r183595 r184066  
    4141class MainFrame final : public Frame {
    4242public:
    43     static RefPtr<MainFrame> create(Page&, PageConfiguration&);
     43    static Ref<MainFrame> create(Page&, PageConfiguration&);
    4444
    4545    virtual ~MainFrame();
  • trunk/Source/WebCore/page/Navigator.h

    r169017 r184066  
    4242class Navigator : public NavigatorBase, public ScriptWrappable, public RefCounted<Navigator>, public DOMWindowProperty, public Supplementable<Navigator> {
    4343public:
    44     static PassRefPtr<Navigator> create(Frame* frame) { return adoptRef(new Navigator(frame)); }
     44    static Ref<Navigator> create(Frame* frame) { return adoptRef(*new Navigator(frame)); }
    4545    virtual ~Navigator();
    4646
  • trunk/Source/WebCore/page/PageOverlay.cpp

    r183597 r184066  
    4747}
    4848
    49 PassRefPtr<PageOverlay> PageOverlay::create(Client& client, OverlayType overlayType)
    50 {
    51     return adoptRef(new PageOverlay(client, overlayType));
     49Ref<PageOverlay> PageOverlay::create(Client& client, OverlayType overlayType)
     50{
     51    return adoptRef(*new PageOverlay(client, overlayType));
    5252}
    5353
  • trunk/Source/WebCore/page/PageOverlay.h

    r183597 r184066  
    7070    };
    7171
    72     WEBCORE_EXPORT static PassRefPtr<PageOverlay> create(Client&, OverlayType = OverlayType::View);
     72    WEBCORE_EXPORT static Ref<PageOverlay> create(Client&, OverlayType = OverlayType::View);
    7373    WEBCORE_EXPORT virtual ~PageOverlay();
    7474
  • trunk/Source/WebCore/page/Performance.h

    r183795 r184066  
    5555class Performance final : public ScriptWrappable, public RefCounted<Performance>, public DOMWindowProperty, public EventTargetWithInlineData {
    5656public:
    57     static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Performance(frame)); }
     57    static Ref<Performance> create(Frame* frame) { return adoptRef(*new Performance(frame)); }
    5858    ~Performance();
    5959
  • trunk/Source/WebCore/page/PerformanceEntryList.h

    r157653 r184066  
    4646class PerformanceEntryList : public RefCounted<PerformanceEntryList> {
    4747public:
    48     static PassRefPtr<PerformanceEntryList> create() { return adoptRef(new PerformanceEntryList); }
     48    static Ref<PerformanceEntryList> create() { return adoptRef(*new PerformanceEntryList); }
    4949    ~PerformanceEntryList();
    5050
  • trunk/Source/WebCore/page/PerformanceMark.h

    r140882 r184066  
    3737class PerformanceMark : public PerformanceEntry {
    3838public:
    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)); }
    4040
    4141    virtual bool isMark() { return true; }
  • trunk/Source/WebCore/page/PerformanceMeasure.h

    r140882 r184066  
    3737class PerformanceMeasure : public PerformanceEntry {
    3838public:
    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)); }
    4040
    4141    virtual bool isMeasure() { return true; }
  • trunk/Source/WebCore/page/PerformanceNavigation.h

    r104380 r184066  
    4444class PerformanceNavigation : public RefCounted<PerformanceNavigation>, public DOMWindowProperty {
    4545public:
    46     static PassRefPtr<PerformanceNavigation> create(Frame* frame) { return adoptRef(new PerformanceNavigation(frame)); }
     46    static Ref<PerformanceNavigation> create(Frame* frame) { return adoptRef(*new PerformanceNavigation(frame)); }
    4747
    4848    enum PerformanceNavigationType {
  • trunk/Source/WebCore/page/PerformanceResourceTiming.h

    r178019 r184066  
    5151class PerformanceResourceTiming : public PerformanceEntry {
    5252public:
    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)
    5454    {
    55         return adoptRef(new PerformanceResourceTiming(initiatorType, request, response, initiationTime, finishTime, requestingDocument));
     55        return adoptRef(*new PerformanceResourceTiming(initiatorType, request, response, initiationTime, finishTime, requestingDocument));
    5656    }
    5757
  • trunk/Source/WebCore/page/PerformanceTiming.h

    r168845 r184066  
    4848class PerformanceTiming : public RefCounted<PerformanceTiming>, public DOMWindowProperty {
    4949public:
    50     static PassRefPtr<PerformanceTiming> create(Frame* frame) { return adoptRef(new PerformanceTiming(frame)); }
     50    static Ref<PerformanceTiming> create(Frame* frame) { return adoptRef(*new PerformanceTiming(frame)); }
    5151
    5252    unsigned long long navigationStart() const;
  • trunk/Source/WebCore/page/PerformanceUserTiming.h

    r136565 r184066  
    4949class UserTiming : public RefCounted<UserTiming> {
    5050public:
    51     static PassRefPtr<UserTiming> create(Performance* performance) { return adoptRef(new UserTiming(performance)); }
     51    static Ref<UserTiming> create(Performance* performance) { return adoptRef(*new UserTiming(performance)); }
    5252
    5353    void mark(const String& markName, ExceptionCode&);
  • trunk/Source/WebCore/page/Screen.h

    r175434 r184066  
    4242class Screen final : public ScriptWrappable, public RefCounted<Screen>, public DOMWindowProperty {
    4343public:
    44     static PassRefPtr<Screen> create(Frame* frame) { return adoptRef(new Screen(frame)); }
     44    static Ref<Screen> create(Frame* frame) { return adoptRef(*new Screen(frame)); }
    4545
    4646    unsigned height() const;
  • trunk/Source/WebCore/page/Settings.cpp

    r183727 r184066  
    214214}
    215215
    216 PassRefPtr<Settings> Settings::create(Page* page)
    217 {
    218     return adoptRef(new Settings(page));
     216Ref<Settings> Settings::create(Page* page)
     217{
     218    return adoptRef(*new Settings(page));
    219219}
    220220
  • trunk/Source/WebCore/page/Settings.h

    r183442 r184066  
    7272    WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED;
    7373public:
    74     static PassRefPtr<Settings> create(Page*);
     74    static Ref<Settings> create(Page*);
    7575    ~Settings();
    7676
  • trunk/Source/WebCore/page/TextIndicator.cpp

    r183158 r184066  
    8686}
    8787
    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)
     88Ref<TextIndicator> TextIndicator::create(const TextIndicatorData& data)
     89{
     90    return adoptRef(*new TextIndicator(data));
     91}
     92
     93RefPtr<TextIndicator> TextIndicator::createWithRange(const Range& range, TextIndicatorPresentationTransition presentationTransition)
    9494{
    9595    Frame* frame = range.startContainer()->document().frame();
     
    110110// FIXME (138889): Ideally the FrameSnapshotting functions would be more flexible
    111111// and we wouldn't have to implement this here.
    112 static PassRefPtr<Image> snapshotSelectionWithHighlight(Frame& frame)
     112static RefPtr<Image> snapshotSelectionWithHighlight(Frame& frame)
    113113{
    114114    auto& selection = frame.selection();
     
    131131}
    132132
    133 PassRefPtr<TextIndicator> TextIndicator::createWithSelectionInFrame(Frame& frame, TextIndicatorPresentationTransition presentationTransition)
     133RefPtr<TextIndicator> TextIndicator::createWithSelectionInFrame(Frame& frame, TextIndicatorPresentationTransition presentationTransition)
    134134{
    135135    IntRect selectionRect = enclosingIntRect(frame.selection().selectionBounds());
  • trunk/Source/WebCore/page/TextIndicator.h

    r183517 r184066  
    8282class TextIndicator : public RefCounted<TextIndicator> {
    8383public:
    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);
    8787
    8888    WEBCORE_EXPORT ~TextIndicator();
  • trunk/Source/WebCore/page/UserContentController.cpp

    r182564 r184066  
    4646namespace WebCore {
    4747
    48 RefPtr<UserContentController> UserContentController::create()
    49 {
    50     return adoptRef(new UserContentController);
     48Ref<UserContentController> UserContentController::create()
     49{
     50    return adoptRef(*new UserContentController);
    5151}
    5252
  • trunk/Source/WebCore/page/UserContentController.h

    r182564 r184066  
    6161class UserContentController : public RefCounted<UserContentController> {
    6262public:
    63     WEBCORE_EXPORT static RefPtr<UserContentController> create();
     63    WEBCORE_EXPORT static Ref<UserContentController> create();
    6464    WEBCORE_EXPORT ~UserContentController();
    6565
  • trunk/Source/WebCore/page/UserMessageHandlerDescriptor.h

    r172849 r184066  
    4949    };
    5050
    51     static PassRefPtr<UserMessageHandlerDescriptor> create(const AtomicString& name, DOMWrapperWorld& world, Client& client)
     51    static Ref<UserMessageHandlerDescriptor> create(const AtomicString& name, DOMWrapperWorld& world, Client& client)
    5252    {
    53         return adoptRef(new UserMessageHandlerDescriptor(name, world, client));
     53        return adoptRef(*new UserMessageHandlerDescriptor(name, world, client));
    5454    }
    5555    WEBCORE_EXPORT ~UserMessageHandlerDescriptor();
  • trunk/Source/WebCore/page/UserMessageHandlersNamespace.h

    r177259 r184066  
    3131#include "FrameDestructionObserver.h"
    3232#include "UserMessageHandler.h"
    33 #include <wtf/PassRefPtr.h>
    3433#include <wtf/RefCounted.h>
    3534#include <wtf/RefPtr.h>
  • trunk/Source/WebCore/page/VisitedLinkStore.h

    r172849 r184066  
    2929#include <wtf/Forward.h>
    3030#include <wtf/HashSet.h>
    31 #include <wtf/PassRefPtr.h>
    3231#include <wtf/RefCounted.h>
    3332
  • trunk/Source/WebCore/page/WebKitNamespace.h

    r169023 r184066  
    3030
    3131#include "DOMWindowProperty.h"
    32 #include <wtf/PassRefPtr.h>
    3332#include <wtf/Ref.h>
    3433#include <wtf/RefCounted.h>
     
    4140class WebKitNamespace : public DOMWindowProperty, public RefCounted<WebKitNamespace> {
    4241public:
    43     static PassRefPtr<WebKitNamespace> create(Frame& frame)
     42    static Ref<WebKitNamespace> create(Frame& frame)
    4443    {
    45         return adoptRef(new WebKitNamespace(frame));
     44        return adoptRef(*new WebKitNamespace(frame));
    4645    }
    4746
  • trunk/Source/WebCore/page/WebKitPoint.h

    r165676 r184066  
    3535    public:
    3636
    37         static PassRefPtr<WebKitPoint> create()
     37        static Ref<WebKitPoint> create()
    3838        {
    39             return adoptRef(new WebKitPoint());
     39            return adoptRef(*new WebKitPoint);
    4040        }
    41         static PassRefPtr<WebKitPoint> create(float x, float y)
     41        static Ref<WebKitPoint> create(float x, float y)
    4242        {
    43             return adoptRef(new WebKitPoint(x, y));
     43            return adoptRef(*new WebKitPoint(x, y));
    4444        }
    4545
  • trunk/Source/WebCore/page/WorkerNavigator.h

    r165676 r184066  
    3838class WorkerNavigator : public NavigatorBase, public RefCounted<WorkerNavigator>, public Supplementable<WorkerNavigator> {
    3939public:
    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)); }
    4141    virtual ~WorkerNavigator();
    4242
  • trunk/Source/WebCore/page/animation/ImplicitAnimation.h

    r183454 r184066  
    4242class ImplicitAnimation : public AnimationBase {
    4343public:
    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)
    4545    {
    46         return adoptRef(new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle));
     46        return adoptRef(*new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle));
    4747    };
    4848   
  • trunk/Source/WebCore/page/animation/KeyframeAnimation.h

    r183454 r184066  
    4141class KeyframeAnimation final : public AnimationBase {
    4242public:
    43     static RefPtr<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)
    4444    {
    45         return adoptRef(new KeyframeAnimation(animation, renderer, index, compositeAnimation, unanimatedStyle));
     45        return adoptRef(*new KeyframeAnimation(animation, renderer, index, compositeAnimation, unanimatedStyle));
    4646    }
    4747
  • trunk/Source/WebCore/page/mac/ServicesOverlayController.h

    r184047 r184066  
    5858        WTF_MAKE_NONCOPYABLE(Highlight);
    5959    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>);
    6262        ~Highlight();
    6363
  • trunk/Source/WebCore/page/mac/ServicesOverlayController.mm

    r184047 r184066  
    5656namespace WebCore {
    5757
    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));
     58Ref<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
     63Ref<ServicesOverlayController::Highlight> ServicesOverlayController::Highlight::createForTelephoneNumber(ServicesOverlayController& controller, RetainPtr<DDHighlightRef> ddHighlight, PassRefPtr<Range> range)
     64{
     65    return adoptRef(*new Highlight(controller, Type::TelephoneNumber, ddHighlight, range));
    6666}
    6767
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r183606 r184066  
    5656
    5757#if !PLATFORM(COCOA)
    58 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
     58Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
    5959{
    6060#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));
    6565}
    6666#endif
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.h

    r183597 r184066  
    107107class ScrollingCoordinator : public ThreadSafeRefCounted<ScrollingCoordinator> {
    108108public:
    109     static PassRefPtr<ScrollingCoordinator> create(Page*);
     109    static Ref<ScrollingCoordinator> create(Page*);
    110110    virtual ~ScrollingCoordinator();
    111111
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.cpp

    r180493 r184066  
    3535namespace WebCore {
    3636
    37 PassRefPtr<ScrollingStateFixedNode> ScrollingStateFixedNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
     37Ref<ScrollingStateFixedNode> ScrollingStateFixedNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
    3838{
    39     return adoptRef(new ScrollingStateFixedNode(stateTree, nodeID));
     39    return adoptRef(*new ScrollingStateFixedNode(stateTree, nodeID));
    4040}
    4141
     
    5555}
    5656
    57 PassRefPtr<ScrollingStateNode> ScrollingStateFixedNode::clone(ScrollingStateTree& adoptiveTree)
     57Ref<ScrollingStateNode> ScrollingStateFixedNode::clone(ScrollingStateTree& adoptiveTree)
    5858{
    59     return adoptRef(new ScrollingStateFixedNode(*this, adoptiveTree));
     59    return adoptRef(*new ScrollingStateFixedNode(*this, adoptiveTree));
    6060}
    6161
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.h

    r176915 r184066  
    4040class ScrollingStateFixedNode final : public ScrollingStateNode {
    4141public:
    42     static PassRefPtr<ScrollingStateFixedNode> create(ScrollingStateTree&, ScrollingNodeID);
     42    static Ref<ScrollingStateFixedNode> create(ScrollingStateTree&, ScrollingNodeID);
    4343
    44     virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;
     44    virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override;
    4545
    4646    virtual ~ScrollingStateFixedNode();
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp

    r183655 r184066  
    3434namespace WebCore {
    3535
    36 PassRefPtr<ScrollingStateFrameScrollingNode> ScrollingStateFrameScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
    37 {
    38     return adoptRef(new ScrollingStateFrameScrollingNode(stateTree, nodeID));
     36Ref<ScrollingStateFrameScrollingNode> ScrollingStateFrameScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
     37{
     38    return adoptRef(*new ScrollingStateFrameScrollingNode(stateTree, nodeID));
    3939}
    4040
     
    8484}
    8585
    86 PassRefPtr<ScrollingStateNode> ScrollingStateFrameScrollingNode::clone(ScrollingStateTree& adoptiveTree)
    87 {
    88     return adoptRef(new ScrollingStateFrameScrollingNode(*this, adoptiveTree));
     86Ref<ScrollingStateNode> ScrollingStateFrameScrollingNode::clone(ScrollingStateTree& adoptiveTree)
     87{
     88    return adoptRef(*new ScrollingStateFrameScrollingNode(*this, adoptiveTree));
    8989}
    9090
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h

    r183655 r184066  
    4141class ScrollingStateFrameScrollingNode final : public ScrollingStateScrollingNode {
    4242public:
    43     static PassRefPtr<ScrollingStateFrameScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);
     43    static Ref<ScrollingStateFrameScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);
    4444
    45     virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;
     45    virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override;
    4646
    4747    virtual ~ScrollingStateFrameScrollingNode();
  • trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h

    r180493 r184066  
    198198    bool isOverflowScrollingNode() const { return m_nodeType == OverflowScrollingNode; }
    199199
    200     virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree& adoptiveTree) = 0;
     200    virtual Ref<ScrollingStateNode> clone(ScrollingStateTree& adoptiveTree) = 0;
    201201    PassRefPtr<ScrollingStateNode> cloneAndReset(ScrollingStateTree& adoptiveTree);
    202202    void cloneAndResetChildren(ScrollingStateNode&, ScrollingStateTree& adoptiveTree);
  • trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.cpp

    r180493 r184066  
    3434namespace WebCore {
    3535
    36 PassRefPtr<ScrollingStateOverflowScrollingNode> ScrollingStateOverflowScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
     36Ref<ScrollingStateOverflowScrollingNode> ScrollingStateOverflowScrollingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
    3737{
    38     return adoptRef(new ScrollingStateOverflowScrollingNode(stateTree, nodeID));
     38    return adoptRef(*new ScrollingStateOverflowScrollingNode(stateTree, nodeID));
    3939}
    4040
     
    5555}
    5656
    57 PassRefPtr<ScrollingStateNode> ScrollingStateOverflowScrollingNode::clone(ScrollingStateTree& adoptiveTree)
     57Ref<ScrollingStateNode> ScrollingStateOverflowScrollingNode::clone(ScrollingStateTree& adoptiveTree)
    5858{
    59     return adoptRef(new ScrollingStateOverflowScrollingNode(*this, adoptiveTree));
     59    return adoptRef(*new ScrollingStateOverflowScrollingNode(*this, adoptiveTree));
    6060}
    6161   
  • trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.h

    r176915 r184066  
    3535class ScrollingStateOverflowScrollingNode : public ScrollingStateScrollingNode {
    3636public:
    37     static PassRefPtr<ScrollingStateOverflowScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);
     37    static Ref<ScrollingStateOverflowScrollingNode> create(ScrollingStateTree&, ScrollingNodeID);
    3838
    39     virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;
     39    virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override;
    4040
    4141    virtual ~ScrollingStateOverflowScrollingNode();
  • trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.cpp

    r180493 r184066  
    3535namespace WebCore {
    3636
    37 PassRefPtr<ScrollingStateStickyNode> ScrollingStateStickyNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
     37Ref<ScrollingStateStickyNode> ScrollingStateStickyNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
    3838{
    39     return adoptRef(new ScrollingStateStickyNode(stateTree, nodeID));
     39    return adoptRef(*new ScrollingStateStickyNode(stateTree, nodeID));
    4040}
    4141
     
    5555}
    5656
    57 PassRefPtr<ScrollingStateNode> ScrollingStateStickyNode::clone(ScrollingStateTree& adoptiveTree)
     57Ref<ScrollingStateNode> ScrollingStateStickyNode::clone(ScrollingStateTree& adoptiveTree)
    5858{
    59     return adoptRef(new ScrollingStateStickyNode(*this, adoptiveTree));
     59    return adoptRef(*new ScrollingStateStickyNode(*this, adoptiveTree));
    6060}
    6161
  • trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.h

    r176915 r184066  
    4040class ScrollingStateStickyNode final : public ScrollingStateNode {
    4141public:
    42     static PassRefPtr<ScrollingStateStickyNode> create(ScrollingStateTree&, ScrollingNodeID);
     42    static Ref<ScrollingStateStickyNode> create(ScrollingStateTree&, ScrollingNodeID);
    4343
    44     virtual PassRefPtr<ScrollingStateNode> clone(ScrollingStateTree&) override;
     44    virtual Ref<ScrollingStateNode> clone(ScrollingStateTree&) override;
    4545
    4646    virtual ~ScrollingStateStickyNode();
  • trunk/Source/WebCore/page/scrolling/ios/ScrollingCoordinatorIOS.mm

    r183746 r184066  
    4545namespace WebCore {
    4646
    47 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
     47Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
    4848{
    49     return adoptRef(new ScrollingCoordinatorIOS(page));
     49    return adoptRef(*new ScrollingCoordinatorIOS(page));
    5050}
    5151
  • trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h

    r176915 r184066  
    3838class ScrollingTreeFrameScrollingNodeIOS : public ScrollingTreeFrameScrollingNode {
    3939public:
    40     WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFrameScrollingNodeIOS> create(ScrollingTree&, ScrollingNodeID);
     40    WEBCORE_EXPORT static Ref<ScrollingTreeFrameScrollingNodeIOS> create(ScrollingTree&, ScrollingNodeID);
    4141    virtual ~ScrollingTreeFrameScrollingNodeIOS();
    4242
  • trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm

    r183655 r184066  
    4141namespace WebCore {
    4242
    43 PassRefPtr<ScrollingTreeFrameScrollingNodeIOS> ScrollingTreeFrameScrollingNodeIOS::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
    44 {
    45     return adoptRef(new ScrollingTreeFrameScrollingNodeIOS(scrollingTree, nodeID));
     43Ref<ScrollingTreeFrameScrollingNodeIOS> ScrollingTreeFrameScrollingNodeIOS::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
     44{
     45    return adoptRef(*new ScrollingTreeFrameScrollingNodeIOS(scrollingTree, nodeID));
    4646}
    4747
  • trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeIOS.cpp

    r180441 r184066  
    4242namespace WebCore {
    4343
    44 RefPtr<ScrollingTreeIOS> ScrollingTreeIOS::create(AsyncScrollingCoordinator* scrollingCoordinator)
     44Ref<ScrollingTreeIOS> ScrollingTreeIOS::create(AsyncScrollingCoordinator* scrollingCoordinator)
    4545{
    46     return adoptRef(new ScrollingTreeIOS(scrollingCoordinator));
     46    return adoptRef(*new ScrollingTreeIOS(scrollingCoordinator));
    4747}
    4848
  • trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeIOS.h

    r177835 r184066  
    4040class ScrollingTreeIOS : public ScrollingTree {
    4141public:
    42     static RefPtr<ScrollingTreeIOS> create(AsyncScrollingCoordinator*);
     42    static Ref<ScrollingTreeIOS> create(AsyncScrollingCoordinator*);
    4343    virtual ~ScrollingTreeIOS();
    4444
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm

    r183746 r184066  
    4747namespace WebCore {
    4848
    49 PassRefPtr<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
     49Ref<ScrollingCoordinator> ScrollingCoordinator::create(Page* page)
    5050{
    51     return adoptRef(new ScrollingCoordinatorMac(page));
     51    return adoptRef(*new ScrollingCoordinatorMac(page));
    5252}
    5353
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.h

    r174374 r184066  
    4141class ScrollingTreeFixedNode : public ScrollingTreeNode {
    4242public:
    43     WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFixedNode> create(ScrollingTree&, ScrollingNodeID);
     43    WEBCORE_EXPORT static Ref<ScrollingTreeFixedNode> create(ScrollingTree&, ScrollingNodeID);
    4444
    4545    virtual ~ScrollingTreeFixedNode();
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFixedNode.mm

    r174340 r184066  
    3535namespace WebCore {
    3636
    37 PassRefPtr<ScrollingTreeFixedNode> ScrollingTreeFixedNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
     37Ref<ScrollingTreeFixedNode> ScrollingTreeFixedNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
    3838{
    39     return adoptRef(new ScrollingTreeFixedNode(scrollingTree, nodeID));
     39    return adoptRef(*new ScrollingTreeFixedNode(scrollingTree, nodeID));
    4040}
    4141
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h

    r183702 r184066  
    4040class ScrollingTreeFrameScrollingNodeMac : public ScrollingTreeFrameScrollingNode, private ScrollControllerClient {
    4141public:
    42     WEBCORE_EXPORT static PassRefPtr<ScrollingTreeFrameScrollingNode> create(ScrollingTree&, ScrollingNodeID);
     42    WEBCORE_EXPORT static Ref<ScrollingTreeFrameScrollingNode> create(ScrollingTree&, ScrollingNodeID);
    4343    virtual ~ScrollingTreeFrameScrollingNodeMac();
    4444
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm

    r183702 r184066  
    5050static void logThreadedScrollingMode(unsigned synchronousScrollingReasons);
    5151
    52 PassRefPtr<ScrollingTreeFrameScrollingNode> ScrollingTreeFrameScrollingNodeMac::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
    53 {
    54     return adoptRef(new ScrollingTreeFrameScrollingNodeMac(scrollingTree, nodeID));
     52Ref<ScrollingTreeFrameScrollingNode> ScrollingTreeFrameScrollingNodeMac::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
     53{
     54    return adoptRef(*new ScrollingTreeFrameScrollingNodeMac(scrollingTree, nodeID));
    5555}
    5656
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeMac.cpp

    r170451 r184066  
    3535using namespace WebCore;
    3636
    37 RefPtr<ScrollingTreeMac> ScrollingTreeMac::create(AsyncScrollingCoordinator* scrollingCoordinator)
     37Ref<ScrollingTreeMac> ScrollingTreeMac::create(AsyncScrollingCoordinator* scrollingCoordinator)
    3838{
    39     return adoptRef(new ScrollingTreeMac(scrollingCoordinator));
     39    return adoptRef(*new ScrollingTreeMac(scrollingCoordinator));
    4040}
    4141
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeMac.h

    r170451 r184066  
    3535class ScrollingTreeMac : public ThreadedScrollingTree {
    3636public:
    37     static RefPtr<ScrollingTreeMac> create(AsyncScrollingCoordinator*);
     37    static Ref<ScrollingTreeMac> create(AsyncScrollingCoordinator*);
    3838
    3939    virtual PassRefPtr<ScrollingTreeNode> createScrollingTreeNode(ScrollingNodeType, ScrollingNodeID) override;
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeStickyNode.h

    r180441 r184066  
    4141class ScrollingTreeStickyNode : public ScrollingTreeNode {
    4242public:
    43     WEBCORE_EXPORT static PassRefPtr<ScrollingTreeStickyNode> create(ScrollingTree&, ScrollingNodeID);
     43    WEBCORE_EXPORT static Ref<ScrollingTreeStickyNode> create(ScrollingTree&, ScrollingNodeID);
    4444
    4545    virtual ~ScrollingTreeStickyNode();
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeStickyNode.mm

    r174374 r184066  
    3737namespace WebCore {
    3838
    39 PassRefPtr<ScrollingTreeStickyNode> ScrollingTreeStickyNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
     39Ref<ScrollingTreeStickyNode> ScrollingTreeStickyNode::create(ScrollingTree& scrollingTree, ScrollingNodeID nodeID)
    4040{
    41     return adoptRef(new ScrollingTreeStickyNode(scrollingTree, nodeID));
     41    return adoptRef(*new ScrollingTreeStickyNode(scrollingTree, nodeID));
    4242}
    4343
  • trunk/Source/WebKit/mac/WebCoreSupport/WebViewGroup.mm

    r176991 r184066  
    6767    : m_name(name)
    6868    , m_localStorageDatabasePath(localStorageDatabasePath)
    69     , m_userContentController(*UserContentController::create())
     69    , m_userContentController(UserContentController::create())
    7070    , m_visitedLinkStore(WebVisitedLinkStore::create())
    7171{
  • trunk/Source/WebKit2/ChangeLog

    r184064 r184066  
     12015-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
    1192015-05-10  Philip Chimento  <philip.chimento@gmail.com>
    220
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r184016 r184066  
    39253925void WebPageProxy::setTextIndicator(const TextIndicatorData& indicatorData, uint64_t lifetime)
    39263926{
    3927     m_pageClient.setTextIndicator(*TextIndicator::create(indicatorData), static_cast<TextIndicatorLifetime>(lifetime));
     3927    m_pageClient.setTextIndicator(TextIndicator::create(indicatorData), static_cast<TextIndicatorLifetime>(lifetime));
    39283928}
    39293929
  • trunk/Source/WebKit2/UIProcess/mac/PageClientImpl.mm

    r183978 r184066  
    597597
    598598    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];
    600600        [mutableOptions setObject:@YES forKey:getLUTermOptionDisableSearchTermIndicator()];
    601601        [getLULookupDefinitionModuleClass() showDefinitionForTerm:dictionaryPopupInfo.attributedString.string.get() atLocation:textBaselineOrigin options:mutableOptions.get()];
  • trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp

    r181246 r184066  
    7070WebUserContentController::WebUserContentController(uint64_t identifier)
    7171    : m_identifier(identifier)
    72     , m_userContentController(*UserContentController::create())
     72    , m_userContentController(UserContentController::create())
    7373{
    7474    WebProcess::singleton().addMessageReceiver(Messages::WebUserContentController::messageReceiverName(), m_identifier, *this);
Note: See TracChangeset for help on using the changeset viewer.