summaryrefslogtreecommitdiff
path: root/Source/WebCore/bridge/runtime_root.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bridge/runtime_root.h')
-rw-r--r--Source/WebCore/bridge/runtime_root.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/bridge/runtime_root.h b/Source/WebCore/bridge/runtime_root.h
index 37b019d71..a998cf07c 100644
--- a/Source/WebCore/bridge/runtime_root.h
+++ b/Source/WebCore/bridge/runtime_root.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (C) 2004 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -33,7 +33,6 @@
#include <wtf/HashCountedSet.h>
#include <wtf/HashSet.h>
#include <wtf/Noncopyable.h>
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace JSC {
@@ -55,9 +54,9 @@ class RootObject : public RefCounted<RootObject>, private JSC::WeakHandleOwner {
friend class JavaJSObject;
public:
- virtual ~RootObject();
+ WEBCORE_EXPORT virtual ~RootObject();
- static PassRefPtr<RootObject> create(const void* nativeHandle, JSGlobalObject*);
+ static Ref<RootObject> create(const void* nativeHandle, JSGlobalObject*);
bool isValid() { return m_isValid; }
void invalidate();
@@ -67,7 +66,7 @@ public:
bool gcIsProtected(JSObject*);
const void* nativeHandle() const;
- JSGlobalObject* globalObject() const;
+ WEBCORE_EXPORT JSGlobalObject* globalObject() const;
void updateGlobalObject(JSGlobalObject*);
void addRuntimeObject(VM&, RuntimeObject*);
@@ -83,7 +82,7 @@ private:
RootObject(const void* nativeHandle, JSGlobalObject*);
// WeakHandleOwner
- virtual void finalize(JSC::Handle<JSC::Unknown>, void* context) override;
+ void finalize(JSC::Handle<JSC::Unknown>, void* context) override;
bool m_isValid;