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

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

Issue 23437003: Implement cloneNode for Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use SecurityContext::isolatedCopy instead and domain change test Created 7 years, 2 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 | « LayoutTests/svg/custom/clone-node-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index d97b4644bd2be79c2027f7a5c2c3268d000fea5e..4bc96e0e3ec1344753964b62dcee3e4c0282f63e 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1005,7 +1005,7 @@ public:
void decrementActiveParserCount();
void setContextFeatures(PassRefPtr<ContextFeatures>);
- ContextFeatures* contextFeatures() { return m_contextFeatures.get(); }
+ ContextFeatures* contextFeatures() const { return m_contextFeatures.get(); }
DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get(); }
@@ -1058,6 +1058,8 @@ protected:
virtual void dispose() OVERRIDE;
+ virtual PassRefPtr<Document> cloneDocumentWithoutChildren();
+
private:
friend class Node;
friend class IgnoreDestructiveWriteCountIncrementer;
@@ -1077,6 +1079,7 @@ private:
virtual NodeType nodeType() const;
virtual bool childTypeAllowed(NodeType) const;
virtual PassRefPtr<Node> cloneNode(bool deep = true);
+ void cloneDataFromDocument(const Document&);
virtual void refExecutionContext() { ref(); }
virtual void derefExecutionContext() { deref(); }
« no previous file with comments | « LayoutTests/svg/custom/clone-node-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698