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

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

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT 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
Index: Source/core/html/TextDocument.h
diff --git a/Source/core/html/TextDocument.h b/Source/core/html/TextDocument.h
index c0d338468e8d013fe3d5418b29080a66dc47f43c..1e4921191ae6bb2bb8a917a3db5e4e4e0ca85923 100644
--- a/Source/core/html/TextDocument.h
+++ b/Source/core/html/TextDocument.h
@@ -31,13 +31,13 @@ namespace WebCore {
class TextDocument FINAL : public HTMLDocument {
public:
- static PassRefPtr<TextDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<TextDocument> create(const DocumentInitializer& initializer = DocumentInitializer())
{
- return adoptRef(new TextDocument(frame, url));
+ return adoptRef(new TextDocument(initializer));
}
private:
- TextDocument(Frame*, const KURL&);
+ TextDocument(const DocumentInitializer&);
virtual PassRefPtr<DocumentParser> createParser();
};

Powered by Google App Engine
This is Rietveld 408576698