| Index: Source/core/svg/SVGTRefElement.cpp
|
| diff --git a/Source/core/svg/SVGTRefElement.cpp b/Source/core/svg/SVGTRefElement.cpp
|
| index 4ab06bb7f063549a821a3917707c13e3dfaa351a..3e99c312f648ccf02e8802798e6b1df4183ff28e 100644
|
| --- a/Source/core/svg/SVGTRefElement.cpp
|
| +++ b/Source/core/svg/SVGTRefElement.cpp
|
| @@ -51,7 +51,7 @@ BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTRefElement)
|
| REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement)
|
| END_REGISTER_ANIMATED_PROPERTIES
|
|
|
| -PassRefPtr<SVGTRefElement> SVGTRefElement::create(const QualifiedName& tagName, Document* document)
|
| +PassRefPtr<SVGTRefElement> SVGTRefElement::create(const QualifiedName& tagName, Document& document)
|
| {
|
| RefPtr<SVGTRefElement> element = adoptRef(new SVGTRefElement(tagName, document));
|
| element->ensureUserAgentShadowRoot();
|
| @@ -131,7 +131,7 @@ void SVGTRefTargetEventListener::handleEvent(ScriptExecutionContext*, Event* eve
|
| m_trefElement->detachTarget();
|
| }
|
|
|
| -inline SVGTRefElement::SVGTRefElement(const QualifiedName& tagName, Document* document)
|
| +inline SVGTRefElement::SVGTRefElement(const QualifiedName& tagName, Document& document)
|
| : SVGTextPositioningElement(tagName, document)
|
| , m_targetListener(SVGTRefTargetEventListener::create(this))
|
| {
|
| @@ -139,7 +139,7 @@ inline SVGTRefElement::SVGTRefElement(const QualifiedName& tagName, Document* do
|
| ScriptWrappable::init(this);
|
| registerAnimatedPropertiesForSVGTRefElement();
|
|
|
| - UseCounter::count(document, UseCounter::SVGTRefElement);
|
| + UseCounter::count(&document, UseCounter::SVGTRefElement);
|
| }
|
|
|
| SVGTRefElement::~SVGTRefElement()
|
|
|