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

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

Issue 340763003: Change [ConstructorCallWith={Document => ExecutionContext}] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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.cpp
diff --git a/Source/core/dom/DocumentFragment.cpp b/Source/core/dom/DocumentFragment.cpp
index a88cbf8a5de5be697ae830a8efaa61d4d35b0ba2..56e637d3673aedbb441ac9a79e01614e28b0c81f 100644
--- a/Source/core/dom/DocumentFragment.cpp
+++ b/Source/core/dom/DocumentFragment.cpp
@@ -35,9 +35,9 @@ DocumentFragment::DocumentFragment(Document* document, ConstructionType construc
ScriptWrappable::init(this);
}
-PassRefPtrWillBeRawPtr<DocumentFragment> DocumentFragment::create(Document& document)
+PassRefPtrWillBeRawPtr<DocumentFragment> DocumentFragment::create(ExecutionContext* executionContext)
{
- return adoptRefWillBeNoop(new DocumentFragment(&document, Node::CreateDocumentFragment));
+ return adoptRefWillBeNoop(new DocumentFragment(toDocument(executionContext), Node::CreateDocumentFragment));
}
String DocumentFragment::nodeName() const

Powered by Google App Engine
This is Rietveld 408576698