diff --git a/dom/html/HTMLMediaElement.h b/dom/html/HTMLMediaElement.h index 78d007ced263..e158413f27a6 100644 --- a/dom/html/HTMLMediaElement.h +++ b/dom/html/HTMLMediaElement.h @@ -221,9 +221,9 @@ public: // suspended the channel. virtual void NotifySuspendedByCache(bool aSuspendedByCache) final override; - virtual bool IsActive() const final override; + bool IsActive() const; - virtual bool IsHidden() const final override; + bool IsHidden() const; // Called by the media decoder and the video frame to get the // ImageContainer containing the video data. diff --git a/dom/media/MediaDecoderOwner.h b/dom/media/MediaDecoderOwner.h index edc3029d16ab..051f171f767b 100644 --- a/dom/media/MediaDecoderOwner.h +++ b/dom/media/MediaDecoderOwner.h @@ -118,12 +118,6 @@ public: NEXT_FRAME_UNINITIALIZED }; - // Check if the decoder owner is active. - virtual bool IsActive() const = 0; - - // Check if the decoder owner is hidden. - virtual bool IsHidden() const = 0; - // Called by media decoder when the audible state changed virtual void SetAudibleState(bool aAudible) = 0; diff --git a/dom/media/gtest/MockMediaDecoderOwner.h b/dom/media/gtest/MockMediaDecoderOwner.h index 3b9881cb3b40..43e69b586935 100644 --- a/dom/media/gtest/MockMediaDecoderOwner.h +++ b/dom/media/gtest/MockMediaDecoderOwner.h @@ -36,8 +36,6 @@ public: void FirstFrameLoaded() override {} void DispatchEncrypted(const nsTArray& aInitData, const nsAString& aInitDataType) override {} - bool IsActive() const override { return true; } - bool IsHidden() const override { return false; } void DownloadSuspended() override {} void DownloadResumed(bool aForceNetworkLoading) override {} void NotifySuspendedByCache(bool aIsSuspended) override {}