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

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: 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/PluginDocument.cpp ('k') | Source/core/html/TextDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/TextDocument.h
diff --git a/Source/core/html/TextDocument.h b/Source/core/html/TextDocument.h
index c0d338468e8d013fe3d5418b29080a66dc47f43c..8ae93657e72278e5223aacce50423566f5d072ca 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 DocumentInit& initializer = DocumentInit())
{
- return adoptRef(new TextDocument(frame, url));
+ return adoptRef(new TextDocument(initializer));
}
private:
- TextDocument(Frame*, const KURL&);
+ TextDocument(const DocumentInit&);
virtual PassRefPtr<DocumentParser> createParser();
};
« no previous file with comments | « Source/core/html/PluginDocument.cpp ('k') | Source/core/html/TextDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698