Index: Source/core/html/MediaError.h |
diff --git a/Source/core/html/MediaError.h b/Source/core/html/MediaError.h |
index 86ace1108bf59ebf5efd0407344d0cb13e5d70c8..0169c75971317c6aa74bdb606ddcf9be92fd09d4 100644 |
--- a/Source/core/html/MediaError.h |
+++ b/Source/core/html/MediaError.h |
@@ -32,7 +32,7 @@ |
namespace WebCore { |
-class MediaError : public RefCounted<MediaError>, public ScriptWrappable { |
+class MediaError FINAL : public RefCountedWillBeGarbageCollectedFinalized<MediaError>, public ScriptWrappable { |
public: |
enum Code { |
MEDIA_ERR_ABORTED = 1, |
@@ -42,10 +42,15 @@ public: |
MEDIA_ERR_ENCRYPTED |
}; |
- static PassRefPtr<MediaError> create(Code code) { return adoptRef(new MediaError(code)); } |
+ static PassRefPtrWillBeRawPtr<MediaError> create(Code code) |
+ { |
+ return adoptRefWillBeNoop(new MediaError(code)); |
+ } |
Code code() const { return m_code; } |
+ void trace(Visitor*) { } |
+ |
private: |
MediaError(Code code) : m_code(code) |
{ |