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

Unified Diff: Source/core/html/HTMLTemplateElement.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
« no previous file with comments | « Source/core/dom/TemplateContentDocumentFragment.h ('k') | Source/core/html/HTMLTemplateElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTemplateElement.h
diff --git a/Source/core/html/HTMLTemplateElement.h b/Source/core/html/HTMLTemplateElement.h
index cff122734fe2a55be359d63adf4d6d133b5e66ea..82a48468b7e57c9ad325c5852541a8f6a866b0b7 100644
--- a/Source/core/html/HTMLTemplateElement.h
+++ b/Source/core/html/HTMLTemplateElement.h
@@ -31,11 +31,13 @@
#ifndef HTMLTemplateElement_h
#define HTMLTemplateElement_h
-#include "core/dom/DocumentFragment.h"
#include "core/html/HTMLElement.h"
namespace WebCore {
+class DocumentFragment;
+class TemplateContentDocumentFragment;
+
class HTMLTemplateElement FINAL : public HTMLElement {
public:
static PassRefPtr<HTMLTemplateElement> create(const QualifiedName&, Document&);
@@ -49,7 +51,7 @@ private:
HTMLTemplateElement(const QualifiedName&, Document&);
- mutable RefPtr<DocumentFragment> m_content;
+ mutable RefPtr<TemplateContentDocumentFragment> m_content;
};
inline HTMLTemplateElement* toHTMLTemplateElement(Node* node)
« no previous file with comments | « Source/core/dom/TemplateContentDocumentFragment.h ('k') | Source/core/html/HTMLTemplateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698