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

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

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed webkit_unit_tests build failure. Created 7 years, 5 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/HTMLViewSourceDocument.cpp ('k') | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ImageDocument.h
diff --git a/Source/core/html/ImageDocument.h b/Source/core/html/ImageDocument.h
index bdf4ee9919394bbb0caa08df2064facf4743bc02..81a1675d7c0b1cc8e2888677c53a694361e08575 100644
--- a/Source/core/html/ImageDocument.h
+++ b/Source/core/html/ImageDocument.h
@@ -35,9 +35,9 @@ class HTMLImageElement;
class ImageDocument FINAL : public HTMLDocument {
public:
- static PassRefPtr<ImageDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<ImageDocument> create(const DocumentInit& initializer = DocumentInit())
{
- return adoptRef(new ImageDocument(frame, url));
+ return adoptRef(new ImageDocument(initializer));
}
CachedImage* cachedImage();
@@ -48,7 +48,7 @@ public:
void imageClicked(int x, int y);
private:
- ImageDocument(Frame*, const KURL&);
+ ImageDocument(const DocumentInit&);
virtual PassRefPtr<DocumentParser> createParser() OVERRIDE;
virtual void dispose() OVERRIDE;
« no previous file with comments | « Source/core/html/HTMLViewSourceDocument.cpp ('k') | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698