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

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

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/StyledElement.cpp ('k') | Source/core/dom/Text.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TemplateContentDocumentFragment.h
diff --git a/Source/core/dom/TemplateContentDocumentFragment.h b/Source/core/dom/TemplateContentDocumentFragment.h
index 8f43963620e2308ae43689f177c9d34c2175da5d..695d26dbc51e178df1fe64bef0656a3972bd53cf 100644
--- a/Source/core/dom/TemplateContentDocumentFragment.h
+++ b/Source/core/dom/TemplateContentDocumentFragment.h
@@ -38,7 +38,13 @@ public:
return adoptRef(new TemplateContentDocumentFragment(document, host));
}
- const Element* host() const { return m_host; }
+ const Element* host() const { return Handle<const Element>(m_host).raw(); }
+
+ virtual void acceptHeapVisitor(Visitor* visitor) const OVERRIDE
+ {
+ visitor->visit(m_host);
+ DocumentFragment::acceptHeapVisitor(visitor);
+ }
private:
TemplateContentDocumentFragment(Handle<Document> document, const Element* host)
@@ -49,7 +55,7 @@ private:
virtual bool isTemplateContent() const OVERRIDE { return true; }
- const Element* m_host;
+ Member<const Element> m_host;
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/StyledElement.cpp ('k') | Source/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698