Chromium Code Reviews

Unified Diff: Source/core/svg/SVGFontFaceFormatElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/svg/SVGFontFaceFormatElement.h ('k') | Source/core/svg/SVGFontFaceNameElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceFormatElement.cpp
diff --git a/Source/core/svg/SVGFontFaceFormatElement.cpp b/Source/core/svg/SVGFontFaceFormatElement.cpp
index ed8347236ec6cb87b4ad1c1a26f4cebafbb14bb0..94970ccf26b9201781a59dff1323d13aa82a0d35 100644
--- a/Source/core/svg/SVGFontFaceFormatElement.cpp
+++ b/Source/core/svg/SVGFontFaceFormatElement.cpp
@@ -29,14 +29,14 @@ namespace WebCore {
using namespace SVGNames;
-inline SVGFontFaceFormatElement::SVGFontFaceFormatElement(const QualifiedName& tagName, Document* document)
+inline SVGFontFaceFormatElement::SVGFontFaceFormatElement(const QualifiedName& tagName, Document& document)
: SVGElement(tagName, document)
{
ASSERT(hasTagName(font_face_formatTag));
ScriptWrappable::init(this);
}
-PassRefPtr<SVGFontFaceFormatElement> SVGFontFaceFormatElement::create(const QualifiedName& tagName, Document* document)
+PassRefPtr<SVGFontFaceFormatElement> SVGFontFaceFormatElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(new SVGFontFaceFormatElement(tagName, document));
}
« no previous file with comments | « Source/core/svg/SVGFontFaceFormatElement.h ('k') | Source/core/svg/SVGFontFaceNameElement.h » ('j') | no next file with comments »

Powered by Google App Engine