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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp
index 7a7a2da1dd96a8868e16c4e5f3c95f30cfc92b03..eaf6e9897a4c7c2662cf6006727e213296337bf5 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp
@@ -465,7 +465,7 @@ void VTTCue::createVTTNodeTree()
void VTTCue::copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* parent)
{
for (Node* node = vttNode->firstChild(); node; node = node->nextSibling()) {
- RefPtrWillBeRawPtr<Node> clonedNode;
+ RawPtr<Node> clonedNode;
if (node->isVTTElement())
clonedNode = toVTTElement(node)->createEquivalentHTMLElement(document());
else
@@ -476,10 +476,10 @@ void VTTCue::copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* parent)
}
}
-PassRefPtrWillBeRawPtr<DocumentFragment> VTTCue::getCueAsHTML()
+RawPtr<DocumentFragment> VTTCue::getCueAsHTML()
{
createVTTNodeTree();
- RefPtrWillBeRawPtr<DocumentFragment> clonedFragment = DocumentFragment::create(document());
+ RawPtr<DocumentFragment> clonedFragment = DocumentFragment::create(document());
copyVTTNodeToDOMTree(m_vttNodeTree.get(), clonedFragment.get());
return clonedFragment.release();
}
@@ -796,7 +796,7 @@ void VTTCue::updatePastAndFutureNodes(double movieTime)
}
}
-PassRefPtrWillBeRawPtr<VTTCueBox> VTTCue::getDisplayTree()
+RawPtr<VTTCueBox> VTTCue::getDisplayTree()
{
ASSERT(track() && track()->isRendered() && isActive());
@@ -875,7 +875,7 @@ void VTTCue::updateDisplay(HTMLDivElement& container)
if (m_cueAlignment != Middle)
UseCounter::count(document(), UseCounter::VTTCueRenderAlignNotMiddle);
- RefPtrWillBeRawPtr<VTTCueBox> displayBox = getDisplayTree();
+ RawPtr<VTTCueBox> displayBox = getDisplayTree();
VTTRegion* region = 0;
if (track()->regions())
region = track()->regions()->getRegionById(regionId());
@@ -891,7 +891,7 @@ void VTTCue::updateDisplay(HTMLDivElement& container)
} else {
// Let region be the WebVTT region whose region identifier matches the
// region identifier of cue.
- RefPtrWillBeRawPtr<HTMLDivElement> regionNode = region->getDisplayTree(document());
+ RawPtr<HTMLDivElement> regionNode = region->getDisplayTree(document());
// Append the region to the viewport, if it was not already.
if (!container.contains(regionNode.get()))
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTCue.h ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698