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/HTMLDocument.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/HTMLDocument.h
diff --git a/Source/core/html/HTMLDocument.h b/Source/core/html/HTMLDocument.h
index 82f46a3566a0dd5911abb337255bc8a4b3facbaa..7a2bf9007dc20ae3367fdd7489eb78736914b075 100644
--- a/Source/core/html/HTMLDocument.h
+++ b/Source/core/html/HTMLDocument.h
@@ -35,9 +35,9 @@ class HTMLElement;
class HTMLDocument : public Document, public CachedResourceClient {
public:
- static PassRefPtr<HTMLDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<HTMLDocument> create(const DocumentInitializer& initializer = DocumentInitializer())
{
- return adoptRef(new HTMLDocument(frame, url));
+ return adoptRef(new HTMLDocument(initializer));
}
virtual ~HTMLDocument();
@@ -74,7 +74,7 @@ public:
static bool isCaseSensitiveAttribute(const QualifiedName&);
protected:
- HTMLDocument(Frame*, const KURL&, DocumentClassFlags extendedDocumentClasses = DefaultDocumentClass);
+ HTMLDocument(const DocumentInitializer&, DocumentClassFlags extendedDocumentClasses = DefaultDocumentClass);
private:
HTMLBodyElement* bodyAsHTMLBodyElement() const;

Powered by Google App Engine
This is Rietveld 408576698