Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: Source/core/html/track/TextTrackCue.cpp

Issue 52713005: Decouple tokenizer/tree builder state from WebVTTParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/track/WebVTTParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCue.cpp
diff --git a/Source/core/html/track/TextTrackCue.cpp b/Source/core/html/track/TextTrackCue.cpp
index fcd83dc4699206aed7ad0445b2f663b2951bd6c2..31344ee836a49b26046b3aa0559a77c388d89085 100644
--- a/Source/core/html/track/TextTrackCue.cpp
+++ b/Source/core/html/track/TextTrackCue.cpp
@@ -504,7 +504,7 @@ void TextTrackCue::invalidateCueIndex()
void TextTrackCue::createWebVTTNodeTree()
{
if (!m_webVTTNodeTree)
- m_webVTTNodeTree = WebVTTParser::create(0, document())->createDocumentFragmentFromCueText(m_content);
+ m_webVTTNodeTree = WebVTTParser::createDocumentFragmentFromCueText(document(), m_content);
}
void TextTrackCue::copyWebVTTNodeToDOMTree(ContainerNode* webVTTNode, ContainerNode* parent)
« no previous file with comments | « no previous file | Source/core/html/track/WebVTTParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698