Index: Source/core/dom/TemplateContentDocumentFragment.h |
diff --git a/Source/core/dom/TemplateContentDocumentFragment.h b/Source/core/dom/TemplateContentDocumentFragment.h |
index 380e8fa48b25250083dfe50185627aaeba1a4b20..3d2cffdd2ad6e0144f853018b83cc6af0b55004b 100644 |
--- a/Source/core/dom/TemplateContentDocumentFragment.h |
+++ b/Source/core/dom/TemplateContentDocumentFragment.h |
@@ -33,24 +33,26 @@ namespace WebCore { |
class TemplateContentDocumentFragment FINAL : public DocumentFragment { |
public: |
- static PassRefPtr<TemplateContentDocumentFragment> create(Document& document, Element* host) |
+ static PassRefPtrWillBeRawPtr<TemplateContentDocumentFragment> create(Document& document, Element& host) |
Mads Ager (chromium)
2014/05/13 15:52:26
Why was this changed to a reference; it is used as
haraken
2014/05/13 15:54:54
Because the pointer is guaranteed to be non 0. If
keishi
2014/05/13 16:16:21
Yeah, it looked like this is always non null.
Mads Ager (chromium)
2014/05/15 08:04:04
I think this would make more sense if m_host was a
|
{ |
- return adoptRef(new TemplateContentDocumentFragment(document, host)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new TemplateContentDocumentFragment(document, host)); |
} |
Element* host() const { return m_host; } |
- void clearHost() { m_host = 0; } |
+ void clearHost() { m_host = nullptr; } |
haraken
2014/05/13 15:53:30
You can add #if !ENABLE(OILPAN) to this method.
keishi
2014/05/13 16:16:21
Done.
|
+ |
+ virtual void trace(Visitor*) OVERRIDE; |
private: |
- TemplateContentDocumentFragment(Document& document, Element* host) |
+ TemplateContentDocumentFragment(Document& document, Element& host) |
: DocumentFragment(&document, CreateDocumentFragment) |
- , m_host(host) |
+ , m_host(&host) |
{ |
} |
virtual bool isTemplateContent() const OVERRIDE { return true; } |
- Element* m_host; |
+ RawPtrWillBeMember<Element> m_host; |
}; |
} // namespace WebCore |