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

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, 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/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 9e95ec1ac859bfb0246f6b8d553518bfd813a531..fc66bcb11b00e1c31d47fe8216028d64cf53ba0d 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTElement.cpp
@@ -70,21 +70,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:

Powered by Google App Engine
This is Rietveld 408576698