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

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.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/ImageDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
index daf22dc71caf529822cab2f76f69ddc52a979c5a..80c964022aed54fa947238c2fcc876db4c573531 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
@@ -57,9 +57,9 @@ using namespace HTMLNames;
class ImageEventListener : public EventListener {
public:
- static PassRefPtrWillBeRawPtr<ImageEventListener> create(ImageDocument* document)
+ static RawPtr<ImageEventListener> create(ImageDocument* document)
{
- return adoptRefWillBeNoop(new ImageEventListener(document));
+ return new ImageEventListener(document);
}
static const ImageEventListener* cast(const EventListener* listener)
{
@@ -85,14 +85,14 @@ private:
virtual void handleEvent(ExecutionContext*, Event*);
- RawPtrWillBeMember<ImageDocument> m_doc;
+ Member<ImageDocument> m_doc;
};
class ImageDocumentParser : public RawDataDocumentParser {
public:
- static PassRefPtrWillBeRawPtr<ImageDocumentParser> create(ImageDocument* document)
+ static RawPtr<ImageDocumentParser> create(ImageDocument* document)
{
- return adoptRefWillBeNoop(new ImageDocumentParser(document));
+ return new ImageDocumentParser(document);
}
ImageDocument* document() const
@@ -196,14 +196,14 @@ ImageDocument::ImageDocument(const DocumentInit& initializer)
lockCompatibilityMode();
}
-PassRefPtrWillBeRawPtr<DocumentParser> ImageDocument::createParser()
+RawPtr<DocumentParser> ImageDocument::createParser()
{
return ImageDocumentParser::create(this);
}
void ImageDocument::createDocumentStructure()
{
- RefPtrWillBeRawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*this);
+ RawPtr<HTMLHtmlElement> rootElement = HTMLHtmlElement::create(*this);
appendChild(rootElement);
rootElement->insertedByParser();
@@ -212,13 +212,13 @@ void ImageDocument::createDocumentStructure()
if (isStopped())
return; // runScriptsAtDocumentElementAvailable can detach the frame.
- RefPtrWillBeRawPtr<HTMLHeadElement> head = HTMLHeadElement::create(*this);
- RefPtrWillBeRawPtr<HTMLMetaElement> meta = HTMLMetaElement::create(*this);
+ RawPtr<HTMLHeadElement> head = HTMLHeadElement::create(*this);
+ RawPtr<HTMLMetaElement> meta = HTMLMetaElement::create(*this);
meta->setAttribute(nameAttr, "viewport");
meta->setAttribute(contentAttr, "width=device-width, minimum-scale=0.1");
head->appendChild(meta);
- RefPtrWillBeRawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this);
+ RawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this);
body->setAttribute(styleAttr, "margin: 0px;");
frame()->loader().client()->dispatchWillInsertBody();
@@ -233,7 +233,7 @@ void ImageDocument::createDocumentStructure()
if (shouldShrinkToFit()) {
// Add event listeners
- RefPtrWillBeRawPtr<EventListener> listener = ImageEventListener::create(this);
+ RawPtr<EventListener> listener = ImageEventListener::create(this);
if (LocalDOMWindow* domWindow = this->domWindow())
domWindow->addEventListener("resize", listener, false);
if (m_shrinkToFitMode == Desktop)
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.h ('k') | third_party/WebKit/Source/core/html/LabelableElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698