Changeset 295178 in webkit
- Timestamp:
- Jun 2, 2022, 11:45:13 PM (4 years ago)
- Location:
- branches/safari-613-branch/Source/WebCore/html
- Files:
-
- 2 edited
-
MediaController.cpp (modified) (2 diffs)
-
MediaController.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613-branch/Source/WebCore/html/MediaController.cpp
r273895 r295178 48 48 49 49 MediaController::MediaController(ScriptExecutionContext& context) 50 : m_paused(false) 50 : ContextDestructionObserver(&context) 51 , m_paused(false) 51 52 , m_defaultPlaybackRate(1) 52 53 , m_volume(1) … … 59 60 , m_closedCaptionsVisible(false) 60 61 , m_clock(PAL::Clock::create()) 61 , m_scriptExecutionContext(context)62 62 , m_timeupdateTimer(*this, &MediaController::scheduleTimeupdateEvent) 63 63 { -
branches/safari-613-branch/Source/WebCore/html/MediaController.h
r246490 r295178 28 28 #if ENABLE(VIDEO) 29 29 30 #include "ContextDestructionObserver.h" 30 31 #include "Event.h" 31 32 #include "EventTarget.h" … … 42 43 class HTMLMediaElement; 43 44 44 class MediaController final : public RefCounted<MediaController>, public MediaControllerInterface, public EventTargetWithInlineData { 45 class MediaController final 46 : public RefCounted<MediaController> 47 , public MediaControllerInterface 48 , public ContextDestructionObserver 49 , public EventTargetWithInlineData { 45 50 WTF_MAKE_ISO_ALLOCATED(MediaController); 46 51 public: … … 96 101 void derefEventTarget() final { deref(); } 97 102 EventTargetInterface eventTargetInterface() const final { return MediaControllerEventTargetInterfaceType; } 98 ScriptExecutionContext* scriptExecutionContext() const final { return &m_scriptExecutionContext; };103 ScriptExecutionContext* scriptExecutionContext() const final { return ContextDestructionObserver::scriptExecutionContext(); }; 99 104 100 105 void addMediaElement(HTMLMediaElement&); … … 148 153 bool m_closedCaptionsVisible; 149 154 std::unique_ptr<PAL::Clock> m_clock; 150 ScriptExecutionContext& m_scriptExecutionContext;151 155 Timer m_timeupdateTimer; 152 156 MonotonicTime m_previousTimeupdateTime;
Note:
See TracChangeset
for help on using the changeset viewer.