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

Unified Diff: Source/core/html/HTMLImageElement.h

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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
« no previous file with comments | « Source/core/html/HTMLIFrameElement.cpp ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.h
diff --git a/Source/core/html/HTMLImageElement.h b/Source/core/html/HTMLImageElement.h
index 590b0ec13e1906407e6bebc98504c5b1dcd513c5..f8acd66d8f4546ca6bfc1c1b838ab5f06a3e7085 100644
--- a/Source/core/html/HTMLImageElement.h
+++ b/Source/core/html/HTMLImageElement.h
@@ -35,9 +35,9 @@ class HTMLFormElement;
class HTMLImageElement FINAL : public HTMLElement {
friend class HTMLFormElement;
public:
- static PassRefPtr<HTMLImageElement> create(Document*);
- static PassRefPtr<HTMLImageElement> create(const QualifiedName&, Document*, HTMLFormElement*);
- static PassRefPtr<HTMLImageElement> createForJSConstructor(Document*, const int* optionalWidth, const int* optionalHeight);
+ static PassRefPtr<HTMLImageElement> create(Document&);
+ static PassRefPtr<HTMLImageElement> create(const QualifiedName&, Document&, HTMLFormElement*);
+ static PassRefPtr<HTMLImageElement> createForJSConstructor(Document&, const int* optionalWidth, const int* optionalHeight);
virtual ~HTMLImageElement();
@@ -80,7 +80,7 @@ public:
void removeClient(ImageLoaderClient* client) { m_imageLoader.removeClient(client); }
protected:
- HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
+ HTMLImageElement(const QualifiedName&, Document&, HTMLFormElement* = 0);
virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
« no previous file with comments | « Source/core/html/HTMLIFrameElement.cpp ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698