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

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

Issue 860063002: Initialize GC mixin bases only when leftmost vtable has been initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comments explaining purpose Created 5 years, 11 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/SVGURIReference.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGURIReference.cpp
diff --git a/Source/core/svg/SVGURIReference.cpp b/Source/core/svg/SVGURIReference.cpp
index e5b48a318aa16533f2c66a2ea4bec3269690f5b6..9dec200fe3c83e960dad54ac870ee4472c6de697 100644
--- a/Source/core/svg/SVGURIReference.cpp
+++ b/Source/core/svg/SVGURIReference.cpp
@@ -27,10 +27,16 @@
namespace blink {
-SVGURIReference::SVGURIReference(SVGElement* element)
- : m_href(SVGAnimatedString::create(element, XLinkNames::hrefAttr, SVGString::create()))
+SVGURIReference::SVGURIReference()
{
+}
+
+void SVGURIReference::initialize(SVGElement* element)
+{
+ ASSERT(!m_href);
ASSERT(element);
+
+ m_href = SVGAnimatedString::create(element, XLinkNames::hrefAttr, SVGString::create());
element->addToPropertyMap(m_href);
}
« no previous file with comments | « Source/core/svg/SVGURIReference.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698