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

Unified Diff: third_party/WebKit/Source/core/html/track/vtt/VTTParser.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/VTTParser.cpp
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp
index c578a5df330b05e0fa71e1414b05fb9341db4e82..114cae3e0198384777efdae0d9fb76289f8e9b00 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp
@@ -321,25 +321,25 @@ public:
explicit VTTTreeBuilder(Document& document)
: m_document(&document) { }
- PassRefPtrWillBeRawPtr<DocumentFragment> buildFromString(const String& cueText);
+ RawPtr<DocumentFragment> buildFromString(const String& cueText);
private:
void constructTreeFromToken(Document&);
Document& document() const { return *m_document; }
VTTToken m_token;
- RefPtrWillBeMember<ContainerNode> m_currentNode;
+ Member<ContainerNode> m_currentNode;
Vector<AtomicString> m_languageStack;
- RawPtrWillBeMember<Document> m_document;
+ Member<Document> m_document;
};
-PassRefPtrWillBeRawPtr<DocumentFragment> VTTTreeBuilder::buildFromString(const String& cueText)
+RawPtr<DocumentFragment> VTTTreeBuilder::buildFromString(const String& cueText)
{
// Cue text processing based on
// 5.4 WebVTT cue text parsing rules, and
// 5.5 WebVTT cue text DOM construction rules
- RefPtrWillBeRawPtr<DocumentFragment> fragment = DocumentFragment::create(document());
+ RawPtr<DocumentFragment> fragment = DocumentFragment::create(document());
if (cueText.isEmpty()) {
fragment->parserAppendChild(Text::create(document(), ""));
@@ -357,7 +357,7 @@ PassRefPtrWillBeRawPtr<DocumentFragment> VTTTreeBuilder::buildFromString(const S
return fragment.release();
}
-PassRefPtrWillBeRawPtr<DocumentFragment> VTTParser::createDocumentFragmentFromCueText(Document& document, const String& cueText)
+RawPtr<DocumentFragment> VTTParser::createDocumentFragmentFromCueText(Document& document, const String& cueText)
{
VTTTreeBuilder treeBuilder(document);
return treeBuilder.buildFromString(cueText);
@@ -503,7 +503,7 @@ void VTTTreeBuilder::constructTreeFromToken(Document& document)
if (nodeType == VTTNodeTypeRubyText && currentType != VTTNodeTypeRuby)
break;
- RefPtrWillBeRawPtr<VTTElement> child = VTTElement::create(nodeType, &document);
+ RawPtr<VTTElement> child = VTTElement::create(nodeType, &document);
if (!m_token.classes().isEmpty())
child->setAttribute(classAttr, m_token.classes());
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTParser.h ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698