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

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

Issue 23467007: Have Range constructor take a Document reference in argument (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
Index: Source/core/dom/DocumentFragment.h
diff --git a/Source/core/dom/DocumentFragment.h b/Source/core/dom/DocumentFragment.h
index 82e7f6ea8f2dded2cad0bb73d45cd18aba5642b0..c6578ef86b7278de159d2fbf81821af8eba79227 100644
--- a/Source/core/dom/DocumentFragment.h
+++ b/Source/core/dom/DocumentFragment.h
@@ -33,6 +33,11 @@ class ScriptExecutionContext;
class DocumentFragment : public ContainerNode {
public:
+ static PassRefPtr<DocumentFragment> create(Document& document)
+ {
+ return create(&document);
+ }
+
static PassRefPtr<DocumentFragment> create(Document*);
void parseHTML(const String&, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Node.cpp » ('j') | Source/core/dom/Range.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698