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

Unified Diff: trunk/Source/core/html/track/vtt/VTTCue.cpp

Issue 291233003: Revert 174382 "Oilpan: make DocumentFragment a heap allocated ob..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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 | « trunk/Source/core/html/track/vtt/VTTCue.h ('k') | trunk/Source/core/html/track/vtt/VTTParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/html/track/vtt/VTTCue.cpp
===================================================================
--- trunk/Source/core/html/track/vtt/VTTCue.cpp (revision 174395)
+++ trunk/Source/core/html/track/vtt/VTTCue.cpp (working copy)
@@ -435,18 +435,19 @@
}
}
-PassRefPtrWillBeRawPtr<DocumentFragment> VTTCue::getCueAsHTML()
+PassRefPtr<DocumentFragment> VTTCue::getCueAsHTML()
{
createVTTNodeTree();
- RefPtrWillBeRawPtr<DocumentFragment> clonedFragment = DocumentFragment::create(document());
+ RefPtr<DocumentFragment> clonedFragment = DocumentFragment::create(document());
copyVTTNodeToDOMTree(m_vttNodeTree.get(), clonedFragment.get());
return clonedFragment.release();
}
-PassRefPtrWillBeRawPtr<DocumentFragment> VTTCue::createCueRenderingTree()
+PassRefPtr<DocumentFragment> VTTCue::createCueRenderingTree()
{
+ RefPtr<DocumentFragment> clonedFragment;
createVTTNodeTree();
- RefPtrWillBeRawPtr<DocumentFragment> clonedFragment = DocumentFragment::create(document());
+ clonedFragment = DocumentFragment::create(document());
m_vttNodeTree->cloneChildNodes(clonedFragment.get());
return clonedFragment.release();
}
@@ -711,7 +712,7 @@
m_cueBackgroundBox->removeChildren();
// Update the two sets containing past and future WebVTT objects.
- RefPtrWillBeRawPtr<DocumentFragment> referenceTree = createCueRenderingTree();
+ RefPtr<DocumentFragment> referenceTree = createCueRenderingTree();
markFutureAndPastNodes(referenceTree.get(), startTime(), movieTime);
m_cueBackgroundBox->appendChild(referenceTree, ASSERT_NO_EXCEPTION);
}
« no previous file with comments | « trunk/Source/core/html/track/vtt/VTTCue.h ('k') | trunk/Source/core/html/track/vtt/VTTParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698