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

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, 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/PluginDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp
index e92d21952d6b71c5b3bbb59eb6d91c3e71ec8c82..56d4686bc7154651f8abb30dc63c6507cbf9abf0 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,12 +89,12 @@ 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();
- 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);
@@ -154,7 +154,7 @@ PluginDocument::PluginDocument(const DocumentInit& initializer)
lockCompatibilityMode();
}
-PassRefPtrWillBeRawPtr<DocumentParser> PluginDocument::createParser()
+RawPtr<DocumentParser> PluginDocument::createParser()
{
return PluginDocumentParser::create(this);
}

Powered by Google App Engine
This is Rietveld 408576698