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

    // Remove the display tree as soon as the cue becomes inactive.
    if (!active)
        removeDisplayTree();
}
示例#2
0
文件: VTTCue.cpp 项目: aosm/WebCore
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();
    }
}
示例#3
0
TextTrackCue::~TextTrackCue()
{
    removeDisplayTree();
}
示例#4
0
VTTCue::~VTTCue()
{
    removeDisplayTree();
}