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

Unified Diff: Source/core/svg/SVGDocument.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/svg/SVGDocument.h
diff --git a/Source/core/svg/SVGDocument.h b/Source/core/svg/SVGDocument.h
index 42c82a53353873c4abbc58eb1aef864d4437afe2..66a6e17ee6541d0d23e712e722dd23b51d40e5cf 100644
--- a/Source/core/svg/SVGDocument.h
+++ b/Source/core/svg/SVGDocument.h
@@ -32,9 +32,9 @@ class SVGSVGElement;
class SVGDocument FINAL : public Document {
public:
- static PassRefPtr<SVGDocument> create(Frame* frame, const KURL& url)
+ static PassRefPtr<SVGDocument> create(const DocumentInitializer& initializer = DocumentInitializer())
{
- return adoptRef(new SVGDocument(frame, url));
+ return adoptRef(new SVGDocument(initializer));
}
SVGSVGElement* rootElement() const;
@@ -48,7 +48,7 @@ public:
void updatePan(const FloatPoint& pos) const;
private:
- SVGDocument(Frame*, const KURL&);
+ SVGDocument(const DocumentInitializer&);
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;

Powered by Google App Engine
This is Rietveld 408576698