void TextTrackCue::setIsActive(bool active)
{
    m_isActive = active;

    // Remove the display tree as soon as the cue becomes inactive.
    if (!active)
        removeDisplayTree();
}
Exemple #2
0
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();
    }
}
Exemple #3
0
TextTrackCue::~TextTrackCue()
{
    removeDisplayTree();
}
Exemple #4
0
VTTCue::~VTTCue()
{
    removeDisplayTree();
}