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

Unified Diff: Source/core/html/HTMLTemplateElement.cpp

Issue 24023006: Merge 157543 "Clear TemplateContentDocumentFragment::m_host when..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: 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/html/HTMLTemplateElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTemplateElement.cpp
===================================================================
--- Source/core/html/HTMLTemplateElement.cpp (revision 157860)
+++ Source/core/html/HTMLTemplateElement.cpp (working copy)
@@ -47,6 +47,8 @@
HTMLTemplateElement::~HTMLTemplateElement()
{
+ if (m_content)
+ m_content->clearHost();
}
PassRefPtr<HTMLTemplateElement> HTMLTemplateElement::create(const QualifiedName& tagName, Document* document)
« no previous file with comments | « Source/core/html/HTMLTemplateElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698