Index: Source/core/frame/BarProp.h |
diff --git a/Source/core/frame/BarProp.h b/Source/core/frame/BarProp.h |
index 84264a70c5321a375140dbcab6f561d0aefee9b4..d8e8b3eaaca676f6afa53b0dea1b077cefeba0a6 100644 |
--- a/Source/core/frame/BarProp.h |
+++ b/Source/core/frame/BarProp.h |
@@ -31,6 +31,7 @@ |
#include "bindings/v8/ScriptWrappable.h" |
#include "core/frame/DOMWindowProperty.h" |
+#include "heap/Handle.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -38,14 +39,19 @@ namespace WebCore { |
class LocalFrame; |
- class BarProp : public ScriptWrappable, public RefCounted<BarProp>, public DOMWindowProperty { |
+ class BarProp FINAL : public RefCountedWillBeGarbageCollectedFinalized<BarProp>, public ScriptWrappable, public DOMWindowProperty { |
public: |
enum Type { Locationbar, Menubar, Personalbar, Scrollbars, Statusbar, Toolbar }; |
- static PassRefPtr<BarProp> create(LocalFrame* frame, Type type) { return adoptRef(new BarProp(frame, type)); } |
+ static PassRefPtrWillBeRawPtr<BarProp> create(LocalFrame* frame, Type type) |
+ { |
+ return adoptRefWillBeNoop(new BarProp(frame, type)); |
+ } |
bool visible() const; |
+ void trace(Visitor*) { } |
+ |
private: |
BarProp(LocalFrame*, Type); |
Type m_type; |