Diff
Modified: trunk/Source/WebKit2/ChangeLog (185636 => 185637)
--- trunk/Source/WebKit2/ChangeLog 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/ChangeLog 2015-06-17 03:33:26 UTC (rev 185637)
@@ -1,3 +1,119 @@
+2015-06-16 Gyuyoung Kim <gyuyoung....@webkit.org>
+
+ Purge PassRefPtr with Ref or RefPtr
+ https://bugs.webkit.org/show_bug.cgi?id=146001
+
+ Reviewed by Darin Adler.
+
+ As step to remove PassRefPtr, this patch reduces use of PassRefPtr in WebKit2.
+ If function can't return nullptr, PassRefPtr is changed with Ref. If not, the function
+ returns RefPtr.
+
+ * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
+ (WebKit::DatabaseToWebProcessConnection::create):
+ * DatabaseProcess/DatabaseToWebProcessConnection.h:
+ * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
+ (WebKit::DatabaseProcessIDBConnection::create):
+ * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
+ (WebKit::UniqueIDBDatabase::create):
+ * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
+ * NetworkProcess/NetworkConnectionToWebProcess.cpp:
+ (WebKit::NetworkConnectionToWebProcess::create):
+ * NetworkProcess/NetworkConnectionToWebProcess.h:
+ * NetworkProcess/RemoteNetworkingContext.h:
+ * PluginProcess/WebProcessConnection.cpp:
+ (WebKit::WebProcessConnection::create):
+ * PluginProcess/WebProcessConnection.h:
+ * Shared/API/APINumber.h:
+ (API::Number::create):
+ * Shared/API/APISecurityOrigin.h:
+ (API::SecurityOrigin::createFromString):
+ (API::SecurityOrigin::create):
+ * Shared/API/APISerializedScriptValue.h:
+ (API::SerializedScriptValue::create):
+ (API::SerializedScriptValue::adopt):
+ * Shared/APIWebArchive.h:
+ * Shared/APIWebArchive.mm:
+ (API::WebArchive::create):
+ * Shared/APIWebArchiveResource.h:
+ * Shared/APIWebArchiveResource.mm:
+ (API::WebArchiveResource::create):
+ * Shared/AsyncRequest.h:
+ * UIProcess/API/efl/ewk_url_request_private.h:
+ (EwkUrlRequest::create):
+ * UIProcess/API/efl/ewk_url_response_private.h:
+ (EwkUrlResponse::create):
+ * UIProcess/API/efl/ewk_url_scheme_request_private.h:
+ (EwkUrlSchemeRequest::create):
+ * UIProcess/API/efl/ewk_window_features_private.h:
+ (EwkWindowFeatures::create):
+ * UIProcess/API/efl/tests/test_ewk2_object.cpp:
+ (TestEwkObject1::create):
+ (TestEwkObject2::create):
+ * UIProcess/API/gtk/WebKitBatteryProvider.cpp:
+ (WebKitBatteryProvider::create):
+ * UIProcess/API/gtk/WebKitBatteryProvider.h:
+ * UIProcess/API/gtk/WebKitColorChooser.cpp:
+ (WebKit::WebKitColorChooser::create):
+ * UIProcess/API/gtk/WebKitGeolocationProvider.cpp:
+ (WebKitGeolocationProvider::create):
+ * UIProcess/API/gtk/WebKitNotificationProvider.cpp:
+ (WebKitNotificationProvider::create):
+ * UIProcess/API/gtk/WebKitNotificationProvider.h:
+ * UIProcess/GeolocationPermissionRequestProxy.h:
+ (WebKit::GeolocationPermissionRequestProxy::create):
+ * UIProcess/InspectorServer/HTTPRequest.h:
+ (WebKit::HTTPRequest::create):
+ * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp:
+ (WebKit::WebSoupCustomProtocolRequestManager::create):
+ * UIProcess/Network/NetworkProcessProxy.cpp:
+ (WebKit::NetworkProcessProxy::create):
+ * UIProcess/Network/NetworkProcessProxy.h:
+ * UIProcess/Notifications/NotificationPermissionRequest.cpp:
+ (WebKit::NotificationPermissionRequest::create):
+ * UIProcess/Notifications/NotificationPermissionRequest.h:
+ * UIProcess/Notifications/WebNotification.h:
+ (WebKit::WebNotification::create):
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::scriptValueCallback):
+ * UIProcess/WebVibrationProxy.cpp:
+ (WebKit::WebVibrationProxy::create):
+ * UIProcess/WebVibrationProxy.h:
+ * UIProcess/WebViewportAttributes.h:
+ (WebKit::WebViewportAttributes::create):
+ * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+ (WebKit::WebsiteDataStore::createNonPersistent):
+ (WebKit::WebsiteDataStore::create):
+ * UIProcess/WebsiteData/WebsiteDataStore.h:
+ * UIProcess/gtk/WebColorPickerGtk.cpp:
+ (WebKit::WebColorPickerGtk::create):
+ * UIProcess/gtk/WebColorPickerGtk.h:
+ * UIProcess/gtk/WebContextMenuProxyGtk.h:
+ (WebKit::WebContextMenuProxyGtk::create):
+ * UIProcess/gtk/WebPopupMenuProxyGtk.h:
+ (WebKit::WebPopupMenuProxyGtk::create):
+ * UIProcess/mac/ViewSnapshotStore.h:
+ * UIProcess/mac/ViewSnapshotStore.mm:
+ (WebKit::ViewSnapshot::create):
+ * UIProcess/mac/WebColorPickerMac.h:
+ * UIProcess/mac/WebColorPickerMac.mm:
+ (WebKit::WebColorPickerMac::create):
+ * UIProcess/mac/WebContextMenuProxyMac.h:
+ (WebKit::WebContextMenuProxyMac::create):
+ * UIProcess/mac/WebPopupMenuProxyMac.h:
+ (WebKit::WebPopupMenuProxyMac::create):
+ * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
+ * WebProcess/Databases/WebToDatabaseProcessConnection.h:
+ (WebKit::WebToDatabaseProcessConnection::create):
+ * WebProcess/FullScreen/WebFullScreenManager.cpp:
+ (WebKit::WebFullScreenManager::create):
+ * WebProcess/FullScreen/WebFullScreenManager.h:
+ * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
+ (WebKit::InjectedBundleRangeHandle::create):
+ * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
+ * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
+ (WebKit::InjectedBundleBackForwardList::create):
+
2015-06-16 Carlos Alberto Lopez Perez <clo...@igalia.com>
Unreviewed build fix after r185615.
Modified: trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.cpp (185636 => 185637)
--- trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,9 +35,9 @@
namespace WebKit {
-PassRefPtr<DatabaseToWebProcessConnection> DatabaseToWebProcessConnection::create(IPC::Connection::Identifier connectionIdentifier)
+Ref<DatabaseToWebProcessConnection> DatabaseToWebProcessConnection::create(IPC::Connection::Identifier connectionIdentifier)
{
- return adoptRef(new DatabaseToWebProcessConnection(connectionIdentifier));
+ return adoptRef(*new DatabaseToWebProcessConnection(connectionIdentifier));
}
DatabaseToWebProcessConnection::DatabaseToWebProcessConnection(IPC::Connection::Identifier connectionIdentifier)
Modified: trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.h (185636 => 185637)
--- trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -38,7 +38,7 @@
class DatabaseToWebProcessConnection : public RefCounted<DatabaseToWebProcessConnection>, public IPC::Connection::Client, public IPC::MessageSender {
public:
- static PassRefPtr<DatabaseToWebProcessConnection> create(IPC::Connection::Identifier);
+ static Ref<DatabaseToWebProcessConnection> create(IPC::Connection::Identifier);
~DatabaseToWebProcessConnection();
IPC::Connection* connection() const { return m_connection.get(); }
Modified: trunk/Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h (185636 => 185637)
--- trunk/Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -47,9 +47,9 @@
class DatabaseProcessIDBConnection : public RefCounted<DatabaseProcessIDBConnection>, public IPC::MessageSender {
public:
- static RefPtr<DatabaseProcessIDBConnection> create(DatabaseToWebProcessConnection& connection, uint64_t serverConnectionIdentifier)
+ static Ref<DatabaseProcessIDBConnection> create(DatabaseToWebProcessConnection& connection, uint64_t serverConnectionIdentifier)
{
- return adoptRef(new DatabaseProcessIDBConnection(connection, serverConnectionIdentifier));
+ return adoptRef(*new DatabaseProcessIDBConnection(connection, serverConnectionIdentifier));
}
virtual ~DatabaseProcessIDBConnection();
Modified: trunk/Source/WebKit2/DatabaseProcess/IndexedDB/UniqueIDBDatabase.h (185636 => 185637)
--- trunk/Source/WebKit2/DatabaseProcess/IndexedDB/UniqueIDBDatabase.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/DatabaseProcess/IndexedDB/UniqueIDBDatabase.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -68,9 +68,9 @@
class UniqueIDBDatabase : public ThreadSafeRefCounted<UniqueIDBDatabase> {
public:
- static PassRefPtr<UniqueIDBDatabase> create(const UniqueIDBDatabaseIdentifier& identifier)
+ static Ref<UniqueIDBDatabase> create(const UniqueIDBDatabaseIdentifier& identifier)
{
- return adoptRef(new UniqueIDBDatabase(identifier));
+ return adoptRef(*new UniqueIDBDatabase(identifier));
}
~UniqueIDBDatabase();
Modified: trunk/Source/WebKit2/DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h (185636 => 185637)
--- trunk/Source/WebKit2/DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -51,9 +51,9 @@
class UniqueIDBDatabaseBackingStoreSQLite final : public UniqueIDBDatabaseBackingStore {
public:
- static PassRefPtr<UniqueIDBDatabaseBackingStore> create(const UniqueIDBDatabaseIdentifier& identifier, const String& databaseDirectory)
+ static Ref<UniqueIDBDatabaseBackingStore> create(const UniqueIDBDatabaseIdentifier& identifier, const String& databaseDirectory)
{
- return adoptRef(new UniqueIDBDatabaseBackingStoreSQLite(identifier, databaseDirectory));
+ return adoptRef(*new UniqueIDBDatabaseBackingStoreSQLite(identifier, databaseDirectory));
}
virtual ~UniqueIDBDatabaseBackingStoreSQLite();
Modified: trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp (185636 => 185637)
--- trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -47,9 +47,9 @@
namespace WebKit {
-PassRefPtr<NetworkConnectionToWebProcess> NetworkConnectionToWebProcess::create(IPC::Connection::Identifier connectionIdentifier)
+Ref<NetworkConnectionToWebProcess> NetworkConnectionToWebProcess::create(IPC::Connection::Identifier connectionIdentifier)
{
- return adoptRef(new NetworkConnectionToWebProcess(connectionIdentifier));
+ return adoptRef(*new NetworkConnectionToWebProcess(connectionIdentifier));
}
NetworkConnectionToWebProcess::NetworkConnectionToWebProcess(IPC::Connection::Identifier connectionIdentifier)
Modified: trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h (185636 => 185637)
--- trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -48,7 +48,7 @@
class NetworkConnectionToWebProcess : public RefCounted<NetworkConnectionToWebProcess>, IPC::Connection::Client {
public:
- static PassRefPtr<NetworkConnectionToWebProcess> create(IPC::Connection::Identifier);
+ static Ref<NetworkConnectionToWebProcess> create(IPC::Connection::Identifier);
virtual ~NetworkConnectionToWebProcess();
IPC::Connection* connection() const { return m_connection.get(); }
Modified: trunk/Source/WebKit2/NetworkProcess/RemoteNetworkingContext.h (185636 => 185637)
--- trunk/Source/WebKit2/NetworkProcess/RemoteNetworkingContext.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/NetworkProcess/RemoteNetworkingContext.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -34,9 +34,9 @@
class RemoteNetworkingContext final : public WebCore::NetworkingContext {
public:
- static PassRefPtr<RemoteNetworkingContext> create(WebCore::SessionID sessionID, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
+ static Ref<RemoteNetworkingContext> create(WebCore::SessionID sessionID, bool shouldClearReferrerOnHTTPSToHTTPRedirect)
{
- return adoptRef(new RemoteNetworkingContext(sessionID, shouldClearReferrerOnHTTPSToHTTPRedirect));
+ return adoptRef(*new RemoteNetworkingContext(sessionID, shouldClearReferrerOnHTTPSToHTTPRedirect));
}
virtual ~RemoteNetworkingContext();
Modified: trunk/Source/WebKit2/PluginProcess/WebProcessConnection.cpp (185636 => 185637)
--- trunk/Source/WebKit2/PluginProcess/WebProcessConnection.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/PluginProcess/WebProcessConnection.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -46,9 +46,9 @@
namespace WebKit {
-PassRefPtr<WebProcessConnection> WebProcessConnection::create(IPC::Connection::Identifier connectionIdentifier)
+RefPtr<WebProcessConnection> WebProcessConnection::create(IPC::Connection::Identifier connectionIdentifier)
{
- return adoptRef(new WebProcessConnection(connectionIdentifier));
+ return adoptRef(*new WebProcessConnection(connectionIdentifier));
}
WebProcessConnection::~WebProcessConnection()
Modified: trunk/Source/WebKit2/PluginProcess/WebProcessConnection.h (185636 => 185637)
--- trunk/Source/WebKit2/PluginProcess/WebProcessConnection.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/PluginProcess/WebProcessConnection.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -44,7 +44,7 @@
class WebProcessConnection : public RefCounted<WebProcessConnection>, IPC::Connection::Client {
public:
- static PassRefPtr<WebProcessConnection> create(IPC::Connection::Identifier);
+ static RefPtr<WebProcessConnection> create(IPC::Connection::Identifier);
virtual ~WebProcessConnection();
IPC::Connection* connection() const { return m_connection.get(); }
Modified: trunk/Source/WebKit2/Shared/API/APINumber.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/API/APINumber.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/API/APINumber.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -36,9 +36,9 @@
template<typename NumberType, API::Object::Type APIObjectType>
class Number : public ObjectImpl<APIObjectType> {
public:
- static PassRefPtr<Number> create(NumberType value)
+ static Ref<Number> create(NumberType value)
{
- return adoptRef(new Number(value));
+ return adoptRef(*new Number(value));
}
NumberType value() const { return m_value; }
Modified: trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -34,20 +34,20 @@
class SecurityOrigin : public API::ObjectImpl<API::Object::Type::SecurityOrigin> {
public:
- static PassRefPtr<SecurityOrigin> createFromString(const WTF::String& string)
+ static RefPtr<SecurityOrigin> createFromString(const WTF::String& string)
{
return create(WebCore::SecurityOrigin::createFromString(string));
}
- static PassRefPtr<SecurityOrigin> create(const WTF::String& protocol, const WTF::String& host, int port)
+ static RefPtr<SecurityOrigin> create(const WTF::String& protocol, const WTF::String& host, int port)
{
return create(WebCore::SecurityOrigin::create(protocol, host, port));
}
- static PassRefPtr<SecurityOrigin> create(PassRefPtr<WebCore::SecurityOrigin> securityOrigin)
+ static RefPtr<SecurityOrigin> create(PassRefPtr<WebCore::SecurityOrigin> securityOrigin)
{
if (!securityOrigin)
- return 0;
+ return nullptr;
return adoptRef(new SecurityOrigin(securityOrigin));
}
Modified: trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -36,22 +36,22 @@
class SerializedScriptValue : public API::ObjectImpl<API::Object::Type::SerializedScriptValue> {
public:
- static PassRefPtr<SerializedScriptValue> create(PassRefPtr<WebCore::SerializedScriptValue> serializedValue)
+ static Ref<SerializedScriptValue> create(PassRefPtr<WebCore::SerializedScriptValue> serializedValue)
{
- return adoptRef(new SerializedScriptValue(serializedValue));
+ return adoptRef(*new SerializedScriptValue(serializedValue));
}
- static PassRefPtr<SerializedScriptValue> create(JSContextRef context, JSValueRef value, JSValueRef* exception)
+ static RefPtr<SerializedScriptValue> create(JSContextRef context, JSValueRef value, JSValueRef* exception)
{
RefPtr<WebCore::SerializedScriptValue> serializedValue = WebCore::SerializedScriptValue::create(context, value, exception);
if (!serializedValue)
- return 0;
- return adoptRef(new SerializedScriptValue(serializedValue.get()));
+ return nullptr;
+ return adoptRef(*new SerializedScriptValue(serializedValue.get()));
}
- static PassRefPtr<SerializedScriptValue> adopt(Vector<uint8_t>& buffer)
+ static Ref<SerializedScriptValue> adopt(Vector<uint8_t>& buffer)
{
- return adoptRef(new SerializedScriptValue(WebCore::SerializedScriptValue::adopt(buffer)));
+ return adoptRef(*new SerializedScriptValue(WebCore::SerializedScriptValue::adopt(buffer)));
}
JSValueRef deserialize(JSContextRef context, JSValueRef* exception)
Modified: trunk/Source/WebKit2/Shared/APIWebArchive.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/APIWebArchive.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/APIWebArchive.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -50,10 +50,10 @@
public:
virtual ~WebArchive();
- static PassRefPtr<WebArchive> create(WebArchiveResource* mainResource, PassRefPtr<API::Array> subresources, PassRefPtr<API::Array> subframeArchives);
- static PassRefPtr<WebArchive> create(API::Data*);
- static PassRefPtr<WebArchive> create(PassRefPtr<WebCore::LegacyWebArchive>);
- static PassRefPtr<WebArchive> create(WebCore::Range*);
+ static Ref<WebArchive> create(WebArchiveResource* mainResource, PassRefPtr<API::Array> subresources, PassRefPtr<API::Array> subframeArchives);
+ static Ref<WebArchive> create(API::Data*);
+ static Ref<WebArchive> create(PassRefPtr<WebCore::LegacyWebArchive>);
+ static Ref<WebArchive> create(WebCore::Range*);
WebArchiveResource* mainResource();
API::Array* subresources();
Modified: trunk/Source/WebKit2/Shared/APIWebArchive.mm (185636 => 185637)
--- trunk/Source/WebKit2/Shared/APIWebArchive.mm 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/APIWebArchive.mm 2015-06-17 03:33:26 UTC (rev 185637)
@@ -38,24 +38,24 @@
namespace API {
-PassRefPtr<WebArchive> WebArchive::create(WebArchiveResource* mainResource, PassRefPtr<API::Array> subresources, PassRefPtr<API::Array> subframeArchives)
+Ref<WebArchive> WebArchive::create(WebArchiveResource* mainResource, PassRefPtr<API::Array> subresources, PassRefPtr<API::Array> subframeArchives)
{
- return adoptRef(new WebArchive(mainResource, subresources, subframeArchives));
+ return adoptRef(*new WebArchive(mainResource, subresources, subframeArchives));
}
-PassRefPtr<WebArchive> WebArchive::create(API::Data* data)
+Ref<WebArchive> WebArchive::create(API::Data* data)
{
- return adoptRef(new WebArchive(data));
+ return adoptRef(*new WebArchive(data));
}
-PassRefPtr<WebArchive> WebArchive::create(PassRefPtr<LegacyWebArchive> legacyWebArchive)
+Ref<WebArchive> WebArchive::create(PassRefPtr<LegacyWebArchive> legacyWebArchive)
{
- return adoptRef(new WebArchive(legacyWebArchive));
+ return adoptRef(*new WebArchive(legacyWebArchive));
}
-PassRefPtr<WebArchive> WebArchive::create(Range* range)
+Ref<WebArchive> WebArchive::create(Range* range)
{
- return adoptRef(new WebArchive(LegacyWebArchive::create(range)));
+ return adoptRef(*new WebArchive(LegacyWebArchive::create(range)));
}
WebArchive::WebArchive(WebArchiveResource* mainResource, PassRefPtr<API::Array> subresources, PassRefPtr<API::Array> subframeArchives)
Modified: trunk/Source/WebKit2/Shared/APIWebArchiveResource.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/APIWebArchiveResource.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/APIWebArchiveResource.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -48,8 +48,8 @@
public:
virtual ~WebArchiveResource();
- static PassRefPtr<WebArchiveResource> create(API::Data*, const String& URL, const String& MIMEType, const String& textEncoding);
- static PassRefPtr<WebArchiveResource> create(PassRefPtr<WebCore::ArchiveResource>);
+ static Ref<WebArchiveResource> create(API::Data*, const String& URL, const String& MIMEType, const String& textEncoding);
+ static Ref<WebArchiveResource> create(PassRefPtr<WebCore::ArchiveResource>);
Ref<API::Data> data();
String URL();
Modified: trunk/Source/WebKit2/Shared/APIWebArchiveResource.mm (185636 => 185637)
--- trunk/Source/WebKit2/Shared/APIWebArchiveResource.mm 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/APIWebArchiveResource.mm 2015-06-17 03:33:26 UTC (rev 185637)
@@ -37,14 +37,14 @@
namespace API {
-PassRefPtr<WebArchiveResource> WebArchiveResource::create(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding)
+Ref<WebArchiveResource> WebArchiveResource::create(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding)
{
- return adoptRef(new WebArchiveResource(data, URL, MIMEType, textEncoding));
+ return adoptRef(*new WebArchiveResource(data, URL, MIMEType, textEncoding));
}
-PassRefPtr<WebArchiveResource> WebArchiveResource::create(PassRefPtr<ArchiveResource> archiveResource)
+Ref<WebArchiveResource> WebArchiveResource::create(PassRefPtr<ArchiveResource> archiveResource)
{
- return adoptRef(new WebArchiveResource(archiveResource));
+ return adoptRef(*new WebArchiveResource(archiveResource));
}
WebArchiveResource::WebArchiveResource(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding)
Modified: trunk/Source/WebKit2/Shared/AsyncRequest.h (185636 => 185637)
--- trunk/Source/WebKit2/Shared/AsyncRequest.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/Shared/AsyncRequest.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -60,14 +60,14 @@
public:
template<typename T> using ArgumentType = typename std::conditional<std::is_integral<T>::value, T, const T&>::type;
- static PassRefPtr<AsyncRequest> create(std::function<void (ArgumentType<Arguments>...)> completionHandler)
+ static Ref<AsyncRequest> create(std::function<void(ArgumentType<Arguments>...)> completionHandler)
{
- return adoptRef(new AsyncRequestImpl<Arguments...>(WTF::move(completionHandler), nullptr));
+ return adoptRef(*new AsyncRequestImpl<Arguments...>(WTF::move(completionHandler), nullptr));
}
- static PassRefPtr<AsyncRequest> create(std::function<void (ArgumentType<Arguments>...)> completionHandler, std::function<void ()> abortHandler)
+ static Ref<AsyncRequest> create(std::function<void(ArgumentType<Arguments>...)> completionHandler, std::function<void()> abortHandler)
{
- return adoptRef(new AsyncRequestImpl<Arguments...>(WTF::move(completionHandler), WTF::move(abortHandler)));
+ return adoptRef(*new AsyncRequestImpl<Arguments...>(WTF::move(completionHandler), WTF::move(abortHandler)));
}
virtual ~AsyncRequestImpl()
Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_request_private.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_request_private.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_request_private.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -40,9 +40,9 @@
public:
EWK_OBJECT_DECLARE(EwkUrlRequest)
- static PassRefPtr<EwkUrlRequest> create(WKURLRequestRef requestRef)
+ static Ref<EwkUrlRequest> create(WKURLRequestRef requestRef)
{
- return adoptRef(new EwkUrlRequest(requestRef));
+ return adoptRef(*new EwkUrlRequest(requestRef));
}
const char* url() const;
Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_response_private.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_response_private.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_response_private.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -40,10 +40,10 @@
public:
EWK_OBJECT_DECLARE(EwkUrlResponse)
- static PassRefPtr<EwkUrlResponse> create(WKURLResponseRef wkResponse)
+ static RefPtr<EwkUrlResponse> create(WKURLResponseRef wkResponse)
{
if (!wkResponse)
- return 0;
+ return nullptr;
return adoptRef(new EwkUrlResponse(wkResponse));
}
Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request_private.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request_private.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request_private.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -41,10 +41,10 @@
public:
EWK_OBJECT_DECLARE(EwkUrlSchemeRequest)
- static PassRefPtr<EwkUrlSchemeRequest> create(WKSoupCustomProtocolRequestManagerRef manager, API::URLRequest* urlRequest, uint64_t requestID)
+ static RefPtr<EwkUrlSchemeRequest> create(WKSoupCustomProtocolRequestManagerRef manager, API::URLRequest* urlRequest, uint64_t requestID)
{
if (!manager || !urlRequest)
- return 0;
+ return nullptr;
return adoptRef(new EwkUrlSchemeRequest(manager, urlRequest, requestID));
}
Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_window_features_private.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_window_features_private.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_window_features_private.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -37,9 +37,9 @@
public:
EWK_OBJECT_DECLARE(EwkWindowFeatures)
- static PassRefPtr<EwkWindowFeatures> create(WKDictionaryRef windowFeatures, EwkView* viewImpl)
+ static Ref<EwkWindowFeatures> create(WKDictionaryRef windowFeatures, EwkView* viewImpl)
{
- return adoptRef(new EwkWindowFeatures(windowFeatures, viewImpl));
+ return adoptRef(*new EwkWindowFeatures(windowFeatures, viewImpl));
}
const Evas_Coord_Rectangle& geometry() const { return m_geometry; }
Modified: trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_object.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_object.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_object.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -29,7 +29,6 @@
#include "UnitTestUtils/EWK2UnitTestServer.h"
#include "WKEinaSharedString.h"
#include "ewk_object_private.h"
-#include <wtf/PassRefPtr.h>
using namespace EWK2UnitTest;
using namespace WTF;
@@ -40,10 +39,10 @@
public:
EWK_OBJECT_DECLARE(TestEwkObject)
- static PassRefPtr<TestEwkObject1> create()
+ static Ref<TestEwkObject1> create()
{
wasDeleted = false;
- return adoptRef(new TestEwkObject1());
+ return adoptRef(*new TestEwkObject1());
}
static bool wasDeleted; // We always test only one instance of TestEwkObject.
@@ -60,9 +59,9 @@
public:
EWK_OBJECT_DECLARE(TestEwkObject2)
- static PassRefPtr<TestEwkObject2> create()
+ static Ref<TestEwkObject2> create()
{
- return adoptRef(new TestEwkObject2());
+ return adoptRef(*new TestEwkObject2());
}
};
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -43,9 +43,9 @@
toBatteryProvider(clientInfo)->stopUpdating();
}
-PassRefPtr<WebKitBatteryProvider> WebKitBatteryProvider::create(WebBatteryManagerProxy* batteryManager)
+Ref<WebKitBatteryProvider> WebKitBatteryProvider::create(WebBatteryManagerProxy* batteryManager)
{
- return adoptRef(new WebKitBatteryProvider(batteryManager));
+ return adoptRef(*new WebKitBatteryProvider(batteryManager));
}
WebKitBatteryProvider::WebKitBatteryProvider(WebBatteryManagerProxy* batteryManager)
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBatteryProvider.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -32,7 +32,7 @@
class WebKitBatteryProvider : public RefCounted<WebKitBatteryProvider>, public WebCore::BatteryProviderUPowerClient {
public:
- static PassRefPtr<WebKitBatteryProvider> create(WebBatteryManagerProxy*);
+ static Ref<WebKitBatteryProvider> create(WebBatteryManagerProxy*);
virtual ~WebKitBatteryProvider();
void startUpdating();
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -29,9 +29,9 @@
namespace WebKit {
-PassRefPtr<WebKitColorChooser> WebKitColorChooser::create(WebPageProxy& page, const WebCore::Color& initialColor, const WebCore::IntRect& rect)
+Ref<WebKitColorChooser> WebKitColorChooser::create(WebPageProxy& page, const WebCore::Color& initialColor, const WebCore::IntRect& rect)
{
- return adoptRef(new WebKitColorChooser(page, initialColor, rect));
+ return adoptRef(*new WebKitColorChooser(page, initialColor, rect));
}
WebKitColorChooser::WebKitColorChooser(WebPageProxy& page, const Color& initialColor, const IntRect& rect)
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitColorChooser.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,7 +35,7 @@
class WebKitColorChooser final : public WebColorPickerGtk {
public:
- static PassRefPtr<WebKitColorChooser> create(WebPageProxy&, const WebCore::Color&, const WebCore::IntRect&);
+ static Ref<WebKitColorChooser> create(WebPageProxy&, const WebCore::Color&, const WebCore::IntRect&);
virtual ~WebKitColorChooser();
const WebCore::IntRect& elementRect() const { return m_elementRect; }
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -54,9 +54,9 @@
WKGeolocationManagerSetProvider(toAPI(m_geolocationManager.get()), nullptr);
}
-PassRefPtr<WebKitGeolocationProvider> WebKitGeolocationProvider::create(WebGeolocationManagerProxy* geolocationManager)
+Ref<WebKitGeolocationProvider> WebKitGeolocationProvider::create(WebGeolocationManagerProxy* geolocationManager)
{
- return adoptRef(new WebKitGeolocationProvider(geolocationManager));
+ return adoptRef(*new WebKitGeolocationProvider(geolocationManager));
}
WebKitGeolocationProvider::WebKitGeolocationProvider(WebGeolocationManagerProxy* geolocationManager)
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -33,7 +33,7 @@
class WebKitGeolocationProvider : public RefCounted<WebKitGeolocationProvider>, public WebCore::GeolocationProviderGeoclueClient {
public:
virtual ~WebKitGeolocationProvider();
- static PassRefPtr<WebKitGeolocationProvider> create(WebGeolocationManagerProxy*);
+ static Ref<WebKitGeolocationProvider> create(WebGeolocationManagerProxy*);
void startUpdating();
void stopUpdating();
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -61,9 +61,9 @@
{
}
-PassRefPtr<WebKitNotificationProvider> WebKitNotificationProvider::create(WebNotificationManagerProxy* notificationManager)
+Ref<WebKitNotificationProvider> WebKitNotificationProvider::create(WebNotificationManagerProxy* notificationManager)
{
- return adoptRef(new WebKitNotificationProvider(notificationManager));
+ return adoptRef(*new WebKitNotificationProvider(notificationManager));
}
WebKitNotificationProvider::WebKitNotificationProvider(WebNotificationManagerProxy* notificationManager)
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationProvider.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,7 +35,7 @@
class WebKitNotificationProvider : public RefCounted<WebKitNotificationProvider> {
public:
virtual ~WebKitNotificationProvider();
- static PassRefPtr<WebKitNotificationProvider> create(WebNotificationManagerProxy*);
+ static Ref<WebKitNotificationProvider> create(WebNotificationManagerProxy*);
void show(WebPageProxy*, const WebNotification&);
void cancel(const WebNotification&);
Modified: trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebViewClient.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebViewClient.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebViewClient.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -105,7 +105,7 @@
if (!m_client.didChangeViewportAttributes)
return;
- WKRetainPtr<WKViewportAttributesRef> wkAttributes = adoptWK(toAPI(WebViewportAttributes::create(attributes).leakRef()));
+ WKRetainPtr<WKViewportAttributesRef> wkAttributes = adoptWK(toAPI(&WebViewportAttributes::create(attributes).leakRef()));
m_client.didChangeViewportAttributes(toAPI(view), wkAttributes.get(), m_client.base.clientInfo);
}
Modified: trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestProxy.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestProxy.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestProxy.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,9 +35,9 @@
class GeolocationPermissionRequestProxy : public API::ObjectImpl<API::Object::Type::GeolocationPermissionRequest> {
public:
- static PassRefPtr<GeolocationPermissionRequestProxy> create(GeolocationPermissionRequestManagerProxy* manager, uint64_t geolocationID)
+ static Ref<GeolocationPermissionRequestProxy> create(GeolocationPermissionRequestManagerProxy* manager, uint64_t geolocationID)
{
- return adoptRef(new GeolocationPermissionRequestProxy(manager, geolocationID));
+ return adoptRef(*new GeolocationPermissionRequestProxy(manager, geolocationID));
}
void allow();
Modified: trunk/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/InspectorServer/HTTPRequest.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -43,8 +43,8 @@
class HTTPRequest : public RefCounted<HTTPRequest> {
public:
- static PassRefPtr<HTTPRequest> create() { return adoptRef(new HTTPRequest()); }
- static PassRefPtr<HTTPRequest> create(const String& requestMethod, const WebCore::URL& url, WebCore::HTTPVersion version) { return adoptRef(new HTTPRequest(requestMethod, url, version)); }
+ static Ref<HTTPRequest> create() { return adoptRef(*new HTTPRequest()); }
+ static Ref<HTTPRequest> create(const String& requestMethod, const WebCore::URL& url, WebCore::HTTPVersion version) { return adoptRef(*new HTTPRequest(requestMethod, url, version)); }
static PassRefPtr<HTTPRequest> parseHTTPRequestFromBuffer(const char* data, size_t length, String& failureReason);
virtual ~HTTPRequest();
Modified: trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -40,9 +40,9 @@
return "WebSoupCustomProtocolRequestManager";
}
-PassRefPtr<WebSoupCustomProtocolRequestManager> WebSoupCustomProtocolRequestManager::create(WebProcessPool* processPool)
+Ref<WebSoupCustomProtocolRequestManager> WebSoupCustomProtocolRequestManager::create(WebProcessPool* processPool)
{
- return adoptRef(new WebSoupCustomProtocolRequestManager(processPool));
+ return adoptRef(*new WebSoupCustomProtocolRequestManager(processPool));
}
WebSoupCustomProtocolRequestManager::WebSoupCustomProtocolRequestManager(WebProcessPool* processPool)
Modified: trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -45,7 +45,7 @@
public:
static const char* supplementName();
- static PassRefPtr<WebSoupCustomProtocolRequestManager> create(WebProcessPool*);
+ static Ref<WebSoupCustomProtocolRequestManager> create(WebProcessPool*);
virtual ~WebSoupCustomProtocolRequestManager();
void initializeClient(const WKSoupCustomProtocolRequestManagerClientBase*);
Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -59,9 +59,9 @@
return ++callbackID;
}
-PassRefPtr<NetworkProcessProxy> NetworkProcessProxy::create(WebProcessPool& processPool)
+Ref<NetworkProcessProxy> NetworkProcessProxy::create(WebProcessPool& processPool)
{
- return adoptRef(new NetworkProcessProxy(processPool));
+ return adoptRef(*new NetworkProcessProxy(processPool));
}
NetworkProcessProxy::NetworkProcessProxy(WebProcessPool& processPool)
Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -54,7 +54,7 @@
class NetworkProcessProxy : public ChildProcessProxy, private ProcessThrottlerClient {
public:
- static PassRefPtr<NetworkProcessProxy> create(WebProcessPool&);
+ static Ref<NetworkProcessProxy> create(WebProcessPool&);
~NetworkProcessProxy();
void getNetworkProcessConnection(PassRefPtr<Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply>);
Modified: trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -30,9 +30,9 @@
namespace WebKit {
-PassRefPtr<NotificationPermissionRequest> NotificationPermissionRequest::create(WebKit::NotificationPermissionRequestManagerProxy *manager, uint64_t notificationID)
+Ref<NotificationPermissionRequest> NotificationPermissionRequest::create(WebKit::NotificationPermissionRequestManagerProxy *manager, uint64_t notificationID)
{
- return adoptRef(new NotificationPermissionRequest(manager, notificationID));
+ return adoptRef(*new NotificationPermissionRequest(manager, notificationID));
}
NotificationPermissionRequest::NotificationPermissionRequest(NotificationPermissionRequestManagerProxy* manager, uint64_t notificationID)
Modified: trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequest.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,7 +35,7 @@
class NotificationPermissionRequest : public API::ObjectImpl<API::Object::Type::NotificationPermissionRequest> {
public:
- static PassRefPtr<NotificationPermissionRequest> create(NotificationPermissionRequestManagerProxy*, uint64_t notificationID);
+ static Ref<NotificationPermissionRequest> create(NotificationPermissionRequestManagerProxy*, uint64_t notificationID);
void allow();
void deny();
Modified: trunk/Source/WebKit2/UIProcess/Notifications/WebNotification.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/Notifications/WebNotification.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/Notifications/WebNotification.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -43,9 +43,9 @@
class WebNotification : public API::ObjectImpl<API::Object::Type::Notification> {
public:
- static PassRefPtr<WebNotification> create(const String& title, const String& body, const String& iconURL, const String& tag, const String& lang, const String& dir, const String& originString, uint64_t notificationID)
+ static Ref<WebNotification> create(const String& title, const String& body, const String& iconURL, const String& tag, const String& lang, const String& dir, const String& originString, uint64_t notificationID)
{
- return adoptRef(new WebNotification(title, body, iconURL, tag, lang, dir, originString, notificationID));
+ return adoptRef(*new WebNotification(title, body, iconURL, tag, lang, dir, originString, notificationID));
}
const String& title() const { return m_title; }
Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -4656,7 +4656,7 @@
data.reserveInitialCapacity(dataReference.size());
data.append(dataReference.data(), dataReference.size());
- callback->performCallbackWithReturnValue(data.size() ? API::SerializedScriptValue::adopt(data).get() : 0, hadException);
+ callback->performCallbackWithReturnValue(data.size() ? API::SerializedScriptValue::adopt(data).ptr() : nullptr, hadException);
}
void WebPageProxy::computedPagesCallback(const Vector<IntRect>& pageRects, double totalScaleFactorForPrinting, uint64_t callbackID)
Modified: trunk/Source/WebKit2/UIProcess/WebVibrationProxy.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebVibrationProxy.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebVibrationProxy.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,9 +35,9 @@
namespace WebKit {
-PassRefPtr<WebVibrationProxy> WebVibrationProxy::create(WebPageProxy* page)
+Ref<WebVibrationProxy> WebVibrationProxy::create(WebPageProxy* page)
{
- return adoptRef(new WebVibrationProxy(page));
+ return adoptRef(*new WebVibrationProxy(page));
}
WebVibrationProxy::WebVibrationProxy(WebPageProxy* page)
Modified: trunk/Source/WebKit2/UIProcess/WebVibrationProxy.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebVibrationProxy.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebVibrationProxy.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -39,7 +39,7 @@
class WebVibrationProxy : public API::ObjectImpl<API::Object::Type::Vibration>, private IPC::MessageReceiver {
public:
- static PassRefPtr<WebVibrationProxy> create(WebPageProxy*);
+ static Ref<WebVibrationProxy> create(WebPageProxy*);
virtual ~WebVibrationProxy();
void invalidate();
Modified: trunk/Source/WebKit2/UIProcess/WebViewportAttributes.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebViewportAttributes.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebViewportAttributes.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -34,9 +34,9 @@
class WebViewportAttributes : public API::ObjectImpl<API::Object::Type::ViewportAttributes> {
public:
- static PassRefPtr<WebViewportAttributes> create(const WebCore::ViewportAttributes& attributes)
+ static Ref<WebViewportAttributes> create(const WebCore::ViewportAttributes& attributes)
{
- return adoptRef(new WebViewportAttributes(attributes));
+ return adoptRef(*new WebViewportAttributes(attributes));
}
virtual ~WebViewportAttributes();
Modified: trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -58,14 +58,14 @@
return ++identifier;
}
-RefPtr<WebsiteDataStore> WebsiteDataStore::createNonPersistent()
+Ref<WebsiteDataStore> WebsiteDataStore::createNonPersistent()
{
- return adoptRef(new WebsiteDataStore(generateNonPersistentSessionID()));
+ return adoptRef(*new WebsiteDataStore(generateNonPersistentSessionID()));
}
-RefPtr<WebsiteDataStore> WebsiteDataStore::create(Configuration configuration)
+Ref<WebsiteDataStore> WebsiteDataStore::create(Configuration configuration)
{
- return adoptRef(new WebsiteDataStore(WTF::move(configuration)));
+ return adoptRef(*new WebsiteDataStore(WTF::move(configuration)));
}
WebsiteDataStore::WebsiteDataStore(Configuration configuration)
Modified: trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -62,8 +62,8 @@
String localStorageDirectory;
String mediaKeysStorageDirectory;
};
- static RefPtr<WebsiteDataStore> createNonPersistent();
- static RefPtr<WebsiteDataStore> create(Configuration);
+ static Ref<WebsiteDataStore> createNonPersistent();
+ static Ref<WebsiteDataStore> create(Configuration);
virtual ~WebsiteDataStore();
uint64_t identifier() const { return m_identifier; }
Modified: trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.cpp (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -37,9 +37,9 @@
namespace WebKit {
-PassRefPtr<WebColorPickerGtk> WebColorPickerGtk::create(WebPageProxy& page, const Color& initialColor, const IntRect& rect)
+Ref<WebColorPickerGtk> WebColorPickerGtk::create(WebPageProxy& page, const Color& initialColor, const IntRect& rect)
{
- return adoptRef(new WebColorPickerGtk(page, initialColor, rect));
+ return adoptRef(*new WebColorPickerGtk(page, initialColor, rect));
}
WebColorPickerGtk::WebColorPickerGtk(WebPageProxy& page, const Color& initialColor, const IntRect&)
Modified: trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebColorPickerGtk.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -42,7 +42,7 @@
class WebColorPickerGtk : public WebColorPicker {
public:
- static PassRefPtr<WebColorPickerGtk> create(WebPageProxy&, const WebCore::Color&, const WebCore::IntRect&);
+ static Ref<WebColorPickerGtk> create(WebPageProxy&, const WebCore::Color&, const WebCore::IntRect&);
virtual ~WebColorPickerGtk();
virtual void endPicker() override;
Modified: trunk/Source/WebKit2/UIProcess/gtk/WebContextMenuProxyGtk.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/gtk/WebContextMenuProxyGtk.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebContextMenuProxyGtk.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -41,9 +41,9 @@
class WebContextMenuProxyGtk : public WebContextMenuProxy {
public:
- static PassRefPtr<WebContextMenuProxyGtk> create(GtkWidget* webView, WebPageProxy* page)
+ static Ref<WebContextMenuProxyGtk> create(GtkWidget* webView, WebPageProxy* page)
{
- return adoptRef(new WebContextMenuProxyGtk(webView, page));
+ return adoptRef(*new WebContextMenuProxyGtk(webView, page));
}
~WebContextMenuProxyGtk();
Modified: trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebPopupMenuProxyGtk.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -37,9 +37,9 @@
class WebPopupMenuProxyGtk : public WebPopupMenuProxy {
public:
- static PassRefPtr<WebPopupMenuProxyGtk> create(GtkWidget* webView, WebPopupMenuProxy::Client* client)
+ static Ref<WebPopupMenuProxyGtk> create(GtkWidget* webView, WebPopupMenuProxy::Client* client)
{
- return adoptRef(new WebPopupMenuProxyGtk(webView, client));
+ return adoptRef(*new WebPopupMenuProxyGtk(webView, client));
}
~WebPopupMenuProxyGtk();
Modified: trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -62,9 +62,9 @@
class ViewSnapshot : public RefCounted<ViewSnapshot> {
public:
#if USE_IOSURFACE_VIEW_SNAPSHOTS
- static PassRefPtr<ViewSnapshot> create(std::unique_ptr<WebCore::IOSurface>);
+ static Ref<ViewSnapshot> create(std::unique_ptr<WebCore::IOSurface>);
#elif USE_RENDER_SERVER_VIEW_SNAPSHOTS
- static PassRefPtr<ViewSnapshot> create(uint32_t slotID, WebCore::IntSize, size_t imageSizeInBytes);
+ static Ref<ViewSnapshot> create(uint32_t slotID, WebCore::IntSize, size_t imageSizeInBytes);
#endif
~ViewSnapshot();
Modified: trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm 2015-06-17 03:33:26 UTC (rev 185637)
@@ -134,14 +134,14 @@
#if USE_IOSURFACE_VIEW_SNAPSHOTS
-PassRefPtr<ViewSnapshot> ViewSnapshot::create(std::unique_ptr<IOSurface> surface)
+Ref<ViewSnapshot> ViewSnapshot::create(std::unique_ptr<IOSurface> surface)
{
- return adoptRef(new ViewSnapshot(WTF::move(surface)));
+ return adoptRef(*new ViewSnapshot(WTF::move(surface)));
}
#elif USE_RENDER_SERVER_VIEW_SNAPSHOTS
-PassRefPtr<ViewSnapshot> ViewSnapshot::create(uint32_t slotID, IntSize size, size_t imageSizeInBytes)
+Ref<ViewSnapshot> ViewSnapshot::create(uint32_t slotID, IntSize size, size_t imageSizeInBytes)
{
- return adoptRef(new ViewSnapshot(slotID, size, imageSizeInBytes));
+ return adoptRef(*new ViewSnapshot(slotID, size, imageSizeInBytes));
}
#endif
Modified: trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -60,7 +60,7 @@
class WebColorPickerMac : public WebColorPicker {
public:
- static PassRefPtr<WebColorPickerMac> create(WebColorPicker::Client*, const WebCore::Color&, const WebCore::IntRect&, WKView*);
+ static Ref<WebColorPickerMac> create(WebColorPicker::Client*, const WebCore::Color&, const WebCore::IntRect&, WKView*);
~WebColorPickerMac();
virtual void endPicker() override;
Modified: trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.mm (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.mm 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/WebColorPickerMac.mm 2015-06-17 03:33:26 UTC (rev 185637)
@@ -75,9 +75,9 @@
namespace WebKit {
-PassRefPtr<WebColorPickerMac> WebColorPickerMac::create(WebColorPicker::Client* client, const WebCore::Color& initialColor, const WebCore::IntRect& rect, WKView* view)
+Ref<WebColorPickerMac> WebColorPickerMac::create(WebColorPicker::Client* client, const WebCore::Color& initialColor, const WebCore::IntRect& rect, WKView* view)
{
- return adoptRef(new WebColorPickerMac(client, initialColor, rect, view));
+ return adoptRef(*new WebColorPickerMac(client, initialColor, rect, view));
}
WebColorPickerMac::~WebColorPickerMac()
Modified: trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -43,9 +43,9 @@
class WebContextMenuProxyMac : public WebContextMenuProxy {
public:
- static PassRefPtr<WebContextMenuProxyMac> create(WKView* webView, WebPageProxy* page)
+ static Ref<WebContextMenuProxyMac> create(WKView* webView, WebPageProxy* page)
{
- return adoptRef(new WebContextMenuProxyMac(webView, page));
+ return adoptRef(*new WebContextMenuProxyMac(webView, page));
}
~WebContextMenuProxyMac();
Modified: trunk/Source/WebKit2/UIProcess/mac/WebPopupMenuProxyMac.h (185636 => 185637)
--- trunk/Source/WebKit2/UIProcess/mac/WebPopupMenuProxyMac.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/UIProcess/mac/WebPopupMenuProxyMac.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -40,9 +40,9 @@
class WebPopupMenuProxyMac : public WebPopupMenuProxy {
public:
- static PassRefPtr<WebPopupMenuProxyMac> create(WKView *webView, WebPopupMenuProxy::Client* client)
+ static Ref<WebPopupMenuProxyMac> create(WKView *webView, WebPopupMenuProxy::Client* client)
{
- return adoptRef(new WebPopupMenuProxyMac(webView, client));
+ return adoptRef(*new WebPopupMenuProxyMac(webView, client));
}
~WebPopupMenuProxyMac();
Modified: trunk/Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -35,7 +35,7 @@
class WebIDBFactoryBackend final : public WebCore::IDBFactoryBackendInterface {
public:
- static PassRefPtr<WebIDBFactoryBackend> create() { return adoptRef(new WebIDBFactoryBackend); }
+ static Ref<WebIDBFactoryBackend> create() { return adoptRef(*new WebIDBFactoryBackend); }
virtual ~WebIDBFactoryBackend();
Modified: trunk/Source/WebKit2/WebProcess/Databases/WebToDatabaseProcessConnection.h (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/Databases/WebToDatabaseProcessConnection.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/Databases/WebToDatabaseProcessConnection.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -40,9 +40,9 @@
class WebToDatabaseProcessConnection : public RefCounted<WebToDatabaseProcessConnection>, public IPC::Connection::Client, public IPC::MessageSender {
public:
- static PassRefPtr<WebToDatabaseProcessConnection> create(IPC::Connection::Identifier connectionIdentifier)
+ static Ref<WebToDatabaseProcessConnection> create(IPC::Connection::Identifier connectionIdentifier)
{
- return adoptRef(new WebToDatabaseProcessConnection(connectionIdentifier));
+ return adoptRef(*new WebToDatabaseProcessConnection(connectionIdentifier));
}
~WebToDatabaseProcessConnection();
Modified: trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.cpp (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -59,9 +59,9 @@
return element->screenRect();
}
-PassRefPtr<WebFullScreenManager> WebFullScreenManager::create(WebPage* page)
+Ref<WebFullScreenManager> WebFullScreenManager::create(WebPage* page)
{
- return adoptRef(new WebFullScreenManager(page));
+ return adoptRef(*new WebFullScreenManager(page));
}
WebFullScreenManager::WebFullScreenManager(WebPage* page)
Modified: trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.h (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -48,7 +48,7 @@
class WebFullScreenManager : public RefCounted<WebFullScreenManager> {
public:
- static PassRefPtr<WebFullScreenManager> create(WebPage*);
+ static Ref<WebFullScreenManager> create(WebPage*);
virtual ~WebFullScreenManager();
void didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&);
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp 2015-06-17 03:33:26 UTC (rev 185637)
@@ -75,9 +75,9 @@
return rangeHandle.release();
}
-PassRefPtr<InjectedBundleRangeHandle> InjectedBundleRangeHandle::create(Range* range)
+Ref<InjectedBundleRangeHandle> InjectedBundleRangeHandle::create(Range* range)
{
- return adoptRef(new InjectedBundleRangeHandle(range));
+ return adoptRef(*new InjectedBundleRangeHandle(range));
}
InjectedBundleRangeHandle::InjectedBundleRangeHandle(Range* range)
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -55,7 +55,7 @@
WebCore::Range* coreRange() const;
private:
- static PassRefPtr<InjectedBundleRangeHandle> create(WebCore::Range*);
+ static Ref<InjectedBundleRangeHandle> create(WebCore::Range*);
InjectedBundleRangeHandle(WebCore::Range*);
RefPtr<WebCore::Range> m_range;
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleBackForwardList.h (185636 => 185637)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleBackForwardList.h 2015-06-17 03:30:51 UTC (rev 185636)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleBackForwardList.h 2015-06-17 03:33:26 UTC (rev 185637)
@@ -37,9 +37,9 @@
class InjectedBundleBackForwardList : public API::ObjectImpl<API::Object::Type::BundleBackForwardList> {
public:
- static PassRefPtr<InjectedBundleBackForwardList> create(WebPage* page)
+ static Ref<InjectedBundleBackForwardList> create(WebPage* page)
{
- return adoptRef(new InjectedBundleBackForwardList(page));
+ return adoptRef(*new InjectedBundleBackForwardList(page));
}
void detach() { m_page = 0; }