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

Unified Diff: Source/core/dom/DOMImplementation.idl

Issue 998673002: Add [NewObject] and [SameObject] to various interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « no previous file | Source/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMImplementation.idl
diff --git a/Source/core/dom/DOMImplementation.idl b/Source/core/dom/DOMImplementation.idl
index 778896c116cb5540761ef551cfabdbab879aa557..98764298beb26375612ccee6f7a654e39370df52 100644
--- a/Source/core/dom/DOMImplementation.idl
+++ b/Source/core/dom/DOMImplementation.idl
@@ -25,11 +25,11 @@
TypeChecking=Interface,
WillBeGarbageCollected,
] interface DOMImplementation {
- [RaisesException] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
- [RaisesException] XMLDocument createDocument(DOMString? namespaceURI, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
+ [NewObject, RaisesException] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
+ [NewObject, RaisesException] XMLDocument createDocument(DOMString? namespaceURI, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
// FIXME: createHTMLDocument should return a Document. crbug.com/238368
// FIXME: The title argument should not have a default value. crbug.com/335871
- HTMLDocument createHTMLDocument(optional DOMString title = null);
+ [NewObject] HTMLDocument createHTMLDocument(optional DOMString title = null);
// FIXME: hasFeature should take no arguments and always return true. crbug.com/429536
[ImplementedAs=hasFeatureForBindings, MeasureAs=DOMImplementationHasFeature]
« no previous file with comments | « no previous file | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698