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

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: 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/loader/cache/CachedFont.cpp ('k') | Source/core/svg/SVGDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGDocument.h
diff --git a/Source/core/svg/SVGDocument.h b/Source/core/svg/SVGDocument.h
index 42c82a53353873c4abbc58eb1aef864d4437afe2..273db02360555199b732103126dc38956354c356 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 DocumentInit& initializer = DocumentInit())
{
- 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 DocumentInit&);
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
« no previous file with comments | « Source/core/loader/cache/CachedFont.cpp ('k') | Source/core/svg/SVGDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698