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

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

Issue 23453033: Have DOMPatchSupport and DocumentFragment deal with Document references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/dom/Range.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('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 6ede6f3975245bc29515d696757df4fb482f0e0c..b2023d0d1255e71fb814856ac4a283f11b02fbdc 100644
--- a/Source/core/dom/TemplateContentDocumentFragment.h
+++ b/Source/core/dom/TemplateContentDocumentFragment.h
@@ -33,7 +33,7 @@ namespace WebCore {
class TemplateContentDocumentFragment FINAL : public DocumentFragment {
public:
- static PassRefPtr<TemplateContentDocumentFragment> create(Document* document, const Element* host)
+ static PassRefPtr<TemplateContentDocumentFragment> create(Document& document, const Element* host)
{
return adoptRef(new TemplateContentDocumentFragment(document, host));
}
@@ -41,8 +41,8 @@ public:
const Element* host() const { return m_host; }
private:
- TemplateContentDocumentFragment(Document* document, const Element* host)
- : DocumentFragment(document, CreateDocumentFragment)
+ TemplateContentDocumentFragment(Document& document, const Element* host)
+ : DocumentFragment(&document, CreateDocumentFragment)
, m_host(host)
{
}
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698