Index: Source/core/frame/Location.h |
diff --git a/Source/core/frame/Location.h b/Source/core/frame/Location.h |
index 8930ae2e1133abab9a4479eea6f0f9588d025d85..e8a0d6dfcee96be97963405f4ee7783c324842af 100644 |
--- a/Source/core/frame/Location.h |
+++ b/Source/core/frame/Location.h |
@@ -43,9 +43,12 @@ class ExceptionState; |
class LocalFrame; |
class KURL; |
-class Location FINAL : public ScriptWrappable, public RefCounted<Location>, public DOMWindowProperty { |
+class Location FINAL : public RefCountedWillBeGarbageCollectedFinalized<Location>, public ScriptWrappable, public DOMWindowProperty { |
public: |
- static PassRefPtr<Location> create(LocalFrame* frame) { return adoptRef(new Location(frame)); } |
+ static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame) |
+ { |
+ return adoptRefWillBeNoop(new Location(frame)); |
+ } |
void setHref(DOMWindow* callingWindow, DOMWindow* enteredWindow, const String&); |
String href() const; |
@@ -72,6 +75,8 @@ public: |
PassRefPtr<DOMStringList> ancestorOrigins() const; |
+ void trace(Visitor*) { } |
+ |
private: |
explicit Location(LocalFrame*); |