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

Side by Side Diff: Source/core/html/HTMLDocument.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void addNamedItem(const AtomicString& name); 69 void addNamedItem(const AtomicString& name);
70 void removeNamedItem(const AtomicString& name); 70 void removeNamedItem(const AtomicString& name);
71 bool hasNamedItem(StringImpl* name); 71 bool hasNamedItem(StringImpl* name);
72 72
73 void addExtraNamedItem(const AtomicString& name); 73 void addExtraNamedItem(const AtomicString& name);
74 void removeExtraNamedItem(const AtomicString& name); 74 void removeExtraNamedItem(const AtomicString& name);
75 bool hasExtraNamedItem(StringImpl* name); 75 bool hasExtraNamedItem(StringImpl* name);
76 76
77 static bool isCaseSensitiveAttribute(const QualifiedName&); 77 static bool isCaseSensitiveAttribute(const QualifiedName&);
78 78
79 virtual PassRefPtr<Document> cloneDocumentWithoutChildren() OVERRIDE FINAL;
80
79 protected: 81 protected:
80 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses = DefaultDocumentClass); 82 HTMLDocument(const DocumentInit&, DocumentClassFlags extendedDocumentClasses = DefaultDocumentClass);
81 83
82 private: 84 private:
83 HTMLBodyElement* htmlBodyElement() const; 85 HTMLBodyElement* htmlBodyElement() const;
84 86
85 const AtomicString& bodyAttributeValue(const QualifiedName&) const; 87 const AtomicString& bodyAttributeValue(const QualifiedName&) const;
86 void setBodyAttribute(const QualifiedName&, const AtomicString&); 88 void setBodyAttribute(const QualifiedName&, const AtomicString&);
87 89
88 void addItemToMap(HashCountedSet<StringImpl*>&, const AtomicString&); 90 void addItemToMap(HashCountedSet<StringImpl*>&, const AtomicString&);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 ASSERT_WITH_SECURITY_IMPLICATION(document.isHTMLDocument()); 129 ASSERT_WITH_SECURITY_IMPLICATION(document.isHTMLDocument());
128 return static_cast<const HTMLDocument&>(document); 130 return static_cast<const HTMLDocument&>(document);
129 } 131 }
130 132
131 // This will catch anyone doing an unnecessary cast. 133 // This will catch anyone doing an unnecessary cast.
132 void toHTMLDocument(const HTMLDocument*); 134 void toHTMLDocument(const HTMLDocument*);
133 135
134 } // namespace WebCore 136 } // namespace WebCore
135 137
136 #endif // HTMLDocument_h 138 #endif // HTMLDocument_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698