summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/PerformanceNavigation.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/page/PerformanceNavigation.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/page/PerformanceNavigation.h')
-rw-r--r--Source/WebCore/page/PerformanceNavigation.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/WebCore/page/PerformanceNavigation.h b/Source/WebCore/page/PerformanceNavigation.h
index f397923e6..3d572439b 100644
--- a/Source/WebCore/page/PerformanceNavigation.h
+++ b/Source/WebCore/page/PerformanceNavigation.h
@@ -28,14 +28,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PerformanceNavigation_h
-#define PerformanceNavigation_h
+#pragma once
#if ENABLE(WEB_TIMING)
#include "DOMWindowProperty.h"
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
+#include <wtf/Ref.h>
namespace WebCore {
@@ -43,7 +42,7 @@ class Frame;
class PerformanceNavigation : public RefCounted<PerformanceNavigation>, public DOMWindowProperty {
public:
- static PassRefPtr<PerformanceNavigation> create(Frame* frame) { return adoptRef(new PerformanceNavigation(frame)); }
+ static Ref<PerformanceNavigation> create(Frame* frame) { return adoptRef(*new PerformanceNavigation(frame)); }
enum PerformanceNavigationType {
TYPE_NAVIGATE,
@@ -59,7 +58,6 @@ private:
explicit PerformanceNavigation(Frame*);
};
-}
+} // namespace WebCore
-#endif // !ENABLE(WEB_TIMING)
-#endif // !defined(PerformanceNavigation_h)
+#endif // ENABLE(WEB_TIMING)