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

Unified Diff: third_party/WebKit/Source/core/html/PluginDocument.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/PluginDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp
index 4dc2ec59762bbb16ead789e15931e822bf8b165e..9041b93349fb09d4c56b0cd23f30b2b0dafbbfe1 100644
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp
@@ -45,9 +45,9 @@ using namespace HTMLNames;
// FIXME: Share more code with MediaDocumentParser.
class PluginDocumentParser : public RawDataDocumentParser {
public:
- static PassRefPtrWillBeRawPtr<PluginDocumentParser> create(PluginDocument* document)
+ static RawPtr<PluginDocumentParser> create(PluginDocument* document)
{
- return adoptRefWillBeNoop(new PluginDocumentParser(document));
+ return new PluginDocumentParser(document);
}
DEFINE_INLINE_VIRTUAL_TRACE()
@@ -71,7 +71,7 @@ private:
PluginView* pluginView() const;
- RefPtrWillBeMember<HTMLEmbedElement> m_embedElement;
+ Member<HTMLEmbedElement> m_embedElement;
};
void PluginDocumentParser::createDocumentStructure()
@@ -89,7 +89,7 @@ void PluginDocumentParser::createDocumentStructure()
if (!frame->settings() || !frame->loader().allowPlugins(NotAboutToInstantiatePlugin))
return;
- RefPtrWillBeRawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*document());
+ RawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*document());
rootElement->insertedByParser();
document()->appendChild(rootElement);
frame->loader().dispatchDocumentElementAvailable();
@@ -97,7 +97,7 @@ void PluginDocumentParser::createDocumentStructure()
if (isStopped())
return; // runScriptsAtDocumentElementAvailable can detach the frame.
- RefPtrWillBeRawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*document());
+ RawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*document());
body->setAttribute(styleAttr, "background-color: rgb(38,38,38); height: 100%; width: 100%; overflow: hidden; margin: 0");
rootElement->appendChild(body);
if (isStopped())
@@ -168,7 +168,7 @@ PluginDocument::PluginDocument(const DocumentInit& initializer)
lockCompatibilityMode();
}
-PassRefPtrWillBeRawPtr<DocumentParser> PluginDocument::createParser()
+RawPtr<DocumentParser> PluginDocument::createParser()
{
return PluginDocumentParser::create(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/PluginDocument.h ('k') | third_party/WebKit/Source/core/html/PublicURLManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698