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

Unified Diff: third_party/WebKit/Source/core/html/track/vtt/VTTElement.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/VTTElement.cpp
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp
index 2db707437b1d191bbdb9967ae9f1536ca43723d3..28a8d311fbcc4a8e39d2591591dc0c6f56577b30 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp
@@ -71,21 +71,21 @@ VTTElement::VTTElement(VTTNodeType nodeType, Document* document)
{
}
-PassRefPtrWillBeRawPtr<VTTElement> VTTElement::create(VTTNodeType nodeType, Document* document)
+RawPtr<VTTElement> VTTElement::create(VTTNodeType nodeType, Document* document)
{
- return adoptRefWillBeNoop(new VTTElement(nodeType, document));
+ return new VTTElement(nodeType, document);
}
-PassRefPtrWillBeRawPtr<Element> VTTElement::cloneElementWithoutAttributesAndChildren()
+RawPtr<Element> VTTElement::cloneElementWithoutAttributesAndChildren()
{
- RefPtrWillBeRawPtr<VTTElement> clone = create(static_cast<VTTNodeType>(m_webVTTNodeType), &document());
+ RawPtr<VTTElement> clone = create(static_cast<VTTNodeType>(m_webVTTNodeType), &document());
clone->setLanguage(m_language);
return clone.release();
}
-PassRefPtrWillBeRawPtr<HTMLElement> VTTElement::createEquivalentHTMLElement(Document& document)
+RawPtr<HTMLElement> VTTElement::createEquivalentHTMLElement(Document& document)
{
- RefPtrWillBeRawPtr<HTMLElement> htmlElement = nullptr;
+ RawPtr<HTMLElement> htmlElement = nullptr;
switch (m_webVTTNodeType) {
case VTTNodeTypeClass:
case VTTNodeTypeLanguage:
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTElement.h ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698