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

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, 10 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 a09e9a33dacd84e94ed5c68d190b8fcc8c3efa8e..ef6515f9492eba3bc20c35ffed7426a0e4942e69 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()))

Powered by Google App Engine
This is Rietveld 408576698