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

Unified Diff: Source/core/dom/Range.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 | « Source/core/dom/NodeIterator.idl ('k') | Source/core/dom/Text.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Range.idl
diff --git a/Source/core/dom/Range.idl b/Source/core/dom/Range.idl
index 15f1fd74d2d9fc9c11737e566dfc08d2c9c4308f..9acc9c023e08bc6f3299ea6bc0c54789b5ecf1e3 100644
--- a/Source/core/dom/Range.idl
+++ b/Source/core/dom/Range.idl
@@ -51,12 +51,12 @@
[RaisesException] short compareBoundaryPoints(unsigned short how, Range sourceRange);
[RaisesException, CustomElementCallbacks] void deleteContents();
- [RaisesException, CustomElementCallbacks] DocumentFragment extractContents();
- [RaisesException, CustomElementCallbacks] DocumentFragment cloneContents();
+ [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment extractContents();
+ [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment cloneContents();
[RaisesException, CustomElementCallbacks] void insertNode(Node node);
[RaisesException, CustomElementCallbacks] void surroundContents(Node newParent);
- Range cloneRange();
+ [NewObject] Range cloneRange();
[DeprecateAs=RangeDetach] void detach();
[RaisesException] boolean isPointInRange(Node node, long offset);
@@ -75,7 +75,7 @@
// DOM Parsing and Serialization
// https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-the-range-interface
- [RaisesException, CustomElementCallbacks] DocumentFragment createContextualFragment(DOMString fragment);
+ [NewObject, RaisesException, CustomElementCallbacks] DocumentFragment createContextualFragment(DOMString fragment);
// Non-standard APIs
const unsigned short NODE_BEFORE = 0;
« no previous file with comments | « Source/core/dom/NodeIterator.idl ('k') | Source/core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698