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

Unified Diff: Source/core/dom/TemplateContentDocumentFragment.h

Issue 23708025: Clear TemplateContentDocumentFragment::m_host when HTMLTemplateElement is destroyed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix double-gc 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
Index: Source/core/dom/TemplateContentDocumentFragment.h
diff --git a/Source/core/dom/TemplateContentDocumentFragment.h b/Source/core/dom/TemplateContentDocumentFragment.h
index b2023d0d1255e71fb814856ac4a283f11b02fbdc..6c44e6075eea706843dffeacce91ecec4a06951d 100644
--- a/Source/core/dom/TemplateContentDocumentFragment.h
+++ b/Source/core/dom/TemplateContentDocumentFragment.h
@@ -39,6 +39,7 @@ public:
}
const Element* host() const { return m_host; }
+ void clearHost() { m_host = 0; }
private:
TemplateContentDocumentFragment(Document& document, const Element* host)

Powered by Google App Engine
This is Rietveld 408576698