void TextTrackCue::setIsActive(bool active) { m_isActive = active; // Remove the display tree as soon as the cue becomes inactive. if (!active) removeDisplayTree(); }
void VTTCue::setIsActive(bool active) { TextTrackCue::setIsActive(active); if (!active) { if (!hasDisplayTree()) return; // Remove the display tree as soon as the cue becomes inactive. removeDisplayTree(); } }
TextTrackCue::~TextTrackCue() { removeDisplayTree(); }
VTTCue::~VTTCue() { removeDisplayTree(); }