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

Side by Side Diff: Source/core/dom/Node.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/MutationRecord.idl ('k') | Source/core/dom/NodeIterator.idl » ('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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 29 matching lines...) Expand all
40 const unsigned short NOTATION_NODE = 12; // historical 40 const unsigned short NOTATION_NODE = 12; // historical
41 readonly attribute unsigned short nodeType; 41 readonly attribute unsigned short nodeType;
42 readonly attribute DOMString nodeName; 42 readonly attribute DOMString nodeName;
43 43
44 [ExposeJSAccessors] readonly attribute DOMString? baseURI; 44 [ExposeJSAccessors] readonly attribute DOMString? baseURI;
45 45
46 [PerWorldBindings, ExposeJSAccessors] readonly attribute Document? ownerDocu ment; 46 [PerWorldBindings, ExposeJSAccessors] readonly attribute Document? ownerDocu ment;
47 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? parentNode; 47 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? parentNode;
48 [PerWorldBindings] readonly attribute Element? parentElement; 48 [PerWorldBindings] readonly attribute Element? parentElement;
49 [ImplementedAs=hasChildren] boolean hasChildNodes(); 49 [ImplementedAs=hasChildren] boolean hasChildNodes();
50 [PerWorldBindings, ExposeJSAccessors] readonly attribute NodeList childNodes ; 50 [SameObject, PerWorldBindings, ExposeJSAccessors] readonly attribute NodeLis t childNodes;
51 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? firstChild; 51 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? firstChild;
52 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? lastChild; 52 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? lastChild;
53 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? previousSibli ng; 53 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? previousSibli ng;
54 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? nextSibling; 54 [PerWorldBindings, ExposeJSAccessors] readonly attribute Node? nextSibling;
55 55
56 [CustomElementCallbacks] attribute DOMString? nodeValue; 56 [CustomElementCallbacks] attribute DOMString? nodeValue;
57 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. 57 // FIXME: textContent should not have [TreatUndefinedAs=NullString].
58 [TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? t extContent; 58 [TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? t extContent;
59 [CustomElementCallbacks] void normalize(); 59 [CustomElementCallbacks] void normalize();
60 60
61 // FIXME: The deep argument should have a default value false. 61 // FIXME: The deep argument should have a default value false.
62 [CustomElementCallbacks] Node cloneNode(optional boolean deep); 62 [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep);
63 boolean isEqualNode(Node? node); 63 boolean isEqualNode(Node? node);
64 64
65 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 65 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
66 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 66 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
67 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; 67 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
68 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; 68 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
69 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 69 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
70 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 70 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
71 unsigned short compareDocumentPosition(Node other); 71 unsigned short compareDocumentPosition(Node other);
72 boolean contains(Node? other); 72 boolean contains(Node? other);
73 73
74 DOMString? lookupPrefix(DOMString? namespaceURI); 74 DOMString? lookupPrefix(DOMString? namespaceURI);
75 DOMString? lookupNamespaceURI(DOMString? prefix); 75 DOMString? lookupNamespaceURI(DOMString? prefix);
76 boolean isDefaultNamespace(DOMString? namespaceURI); 76 boolean isDefaultNamespace(DOMString? namespaceURI);
77 77
78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor e(Node node, Node? child); 78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor e(Node node, Node? child);
79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild (Node node); 79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild (Node node);
80 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil d(Node node, Node child); 80 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil d(Node node, Node child);
81 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); 81 [CustomElementCallbacks, RaisesException] Node removeChild(Node child);
82 82
83 // FIXME: namespaceURI and localName have been moved to Element and Attr. 83 // FIXME: namespaceURI and localName have been moved to Element and Attr.
84 [MeasureAs=NodeNamespaceURI] readonly attribute DOMString? namespaceURI; 84 [MeasureAs=NodeNamespaceURI] readonly attribute DOMString? namespaceURI;
85 [MeasureAs=NodeLocalName] readonly attribute DOMString? localName; 85 [MeasureAs=NodeLocalName] readonly attribute DOMString? localName;
86 86
87 // FIXME: isSameNode has been removed from the spec: 87 // FIXME: isSameNode has been removed from the spec:
88 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424 88 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424
89 [MeasureAs=NodeIsSameNode] boolean isSameNode(Node? other); 89 [MeasureAs=NodeIsSameNode] boolean isSameNode(Node? other);
90 }; 90 };
OLDNEW
« no previous file with comments | « Source/core/dom/MutationRecord.idl ('k') | Source/core/dom/NodeIterator.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698