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

Unified Diff: third_party/WebKit/Source/core/html/MediaDocument.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/MediaDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/MediaDocument.cpp b/third_party/WebKit/Source/core/html/MediaDocument.cpp
index 525d869dbb2ff380d5110f98d9e9b3d3e17ac593..046cae1ed4adfbd635fc21428d2199fd8765b307 100644
--- a/third_party/WebKit/Source/core/html/MediaDocument.cpp
+++ b/third_party/WebKit/Source/core/html/MediaDocument.cpp
@@ -49,9 +49,9 @@ using namespace HTMLNames;
// FIXME: Share more code with PluginDocumentParser.
class MediaDocumentParser : public RawDataDocumentParser {
public:
- static PassRefPtrWillBeRawPtr<MediaDocumentParser> create(MediaDocument* document)
+ static RawPtr<MediaDocumentParser> create(MediaDocument* document)
{
- return adoptRefWillBeNoop(new MediaDocumentParser(document));
+ return (new MediaDocumentParser(document));
}
private:
@@ -71,25 +71,25 @@ private:
void MediaDocumentParser::createDocumentStructure()
{
ASSERT(document());
- RefPtrWillBeRawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*document());
+ RawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*document());
rootElement->insertedByParser();
document()->appendChild(rootElement);
if (document()->frame())
document()->frame()->loader().dispatchDocumentElementAvailable();
- RefPtrWillBeRawPtr<HTMLHeadElement> head = HTMLHeadElement::create(*document());
- RefPtrWillBeRawPtr<HTMLMetaElement> meta = HTMLMetaElement::create(*document());
+ RawPtr<HTMLHeadElement> head = HTMLHeadElement::create(*document());
+ RawPtr<HTMLMetaElement> meta = HTMLMetaElement::create(*document());
meta->setAttribute(nameAttr, "viewport");
meta->setAttribute(contentAttr, "width=device-width");
head->appendChild(meta.release());
- RefPtrWillBeRawPtr<HTMLVideoElement> media = HTMLVideoElement::create(*document());
+ RawPtr<HTMLVideoElement> media = HTMLVideoElement::create(*document());
media->setAttribute(controlsAttr, "");
media->setAttribute(autoplayAttr, "");
media->setAttribute(nameAttr, "media");
- RefPtrWillBeRawPtr<HTMLSourceElement> source = HTMLSourceElement::create(*document());
+ RawPtr<HTMLSourceElement> source = HTMLSourceElement::create(*document());
source->setSrc(document()->url());
if (DocumentLoader* loader = document()->loader())
@@ -97,7 +97,7 @@ void MediaDocumentParser::createDocumentStructure()
media->appendChild(source.release());
- RefPtrWillBeRawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*document());
+ RawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*document());
body->appendChild(media.release());
rootElement->appendChild(head.release());
@@ -126,7 +126,7 @@ MediaDocument::MediaDocument(const DocumentInit& initializer)
lockCompatibilityMode();
}
-PassRefPtrWillBeRawPtr<DocumentParser> MediaDocument::createParser()
+RawPtr<DocumentParser> MediaDocument::createParser()
{
return MediaDocumentParser::create(this);
}

Powered by Google App Engine
This is Rietveld 408576698