void VTTCue::updateDisplayTree(double movieTime) { // The display tree may contain WebVTT timestamp objects representing // timestamps (processing instructions), along with displayable nodes. if (!track()->isRendered()) return; // Clear the contents of the set. m_cueBackgroundBox->removeChildren(); // Update the two sets containing past and future WebVTT objects. RefPtrWillBeRawPtr<DocumentFragment> referenceTree = createCueRenderingTree(); markFutureAndPastNodes(referenceTree.get(), startTime(), movieTime); m_cueBackgroundBox->appendChild(referenceTree, ASSERT_NO_EXCEPTION); }
void TextTrackCue::updateDisplayTree(float movieTime) { // The display tree may contain WebVTT timestamp objects representing // timestamps (processing instructions), along with displayable nodes. if (!track()->isRendered()) return; // Clear the contents of the set. m_allDocumentNodes->removeChildren(); // Update the two sets containing past and future WebVTT objects. RefPtr<DocumentFragment> referenceTree = createCueRenderingTree(); markFutureAndPastNodes(referenceTree.get(), startTime(), movieTime); m_allDocumentNodes->appendChild(referenceTree); }