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

Unified Diff: Source/core/svg/SVGTRefElement.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. 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/svg/SVGTRefElement.h ('k') | Source/core/svg/SVGTSpanElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/svg/SVGTRefElement.h ('k') | Source/core/svg/SVGTSpanElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698