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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.idl

Issue 2464163005: Drop support for [TreatUndefinedAs=NullString] (Closed)
Patch Set: Created 4 years, 1 month 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 [ImplementedAs=hasChildren] boolean hasChildNodes(); 48 [ImplementedAs=hasChildren] boolean hasChildNodes();
49 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes; 49 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes;
50 [PerWorldBindings] readonly attribute Node? firstChild; 50 [PerWorldBindings] readonly attribute Node? firstChild;
51 [PerWorldBindings] readonly attribute Node? lastChild; 51 [PerWorldBindings] readonly attribute Node? lastChild;
52 [PerWorldBindings] readonly attribute Node? previousSibling; 52 [PerWorldBindings] readonly attribute Node? previousSibling;
53 [PerWorldBindings] readonly attribute Node? nextSibling; 53 [PerWorldBindings] readonly attribute Node? nextSibling;
54 [MeasureAs=NodeGetRootNode] Node getRootNode(optional GetRootNodeOptions opt ions); 54 [MeasureAs=NodeGetRootNode] Node getRootNode(optional GetRootNodeOptions opt ions);
55 55
56 [CEReactions, CustomElementCallbacks] attribute DOMString? nodeValue; 56 [CEReactions, CustomElementCallbacks] attribute DOMString? nodeValue;
57 57
58 // FIXME: textContent should not have [TreatUndefinedAs=NullString]. 58 [CEReactions, CustomElementCallbacks] attribute DOMString? textContent;
59 [TreatUndefinedAs=NullString, CEReactions, CustomElementCallbacks] attribute DOMString? textContent;
60 [CEReactions, CustomElementCallbacks] void normalize(); 59 [CEReactions, CustomElementCallbacks] void normalize();
61 60
62 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks] Node cl oneNode(optional boolean deep = false); 61 [NewObject, DoNotTestNewObject, CEReactions, CustomElementCallbacks] Node cl oneNode(optional boolean deep = false);
63 boolean isEqualNode(Node? otherNode); 62 boolean isEqualNode(Node? otherNode);
64 boolean isSameNode(Node? otherNode); // historical alias of === 63 boolean isSameNode(Node? otherNode); // historical alias of ===
65 64
66 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 65 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
67 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 66 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
68 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; 67 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
69 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; 68 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
70 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 69 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
71 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 70 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
72 unsigned short compareDocumentPosition(Node other); 71 unsigned short compareDocumentPosition(Node other);
73 boolean contains(Node? other); 72 boolean contains(Node? other);
74 73
75 DOMString? lookupPrefix(DOMString? namespaceURI); 74 DOMString? lookupPrefix(DOMString? namespaceURI);
76 DOMString? lookupNamespaceURI(DOMString? prefix); 75 DOMString? lookupNamespaceURI(DOMString? prefix);
77 boolean isDefaultNamespace(DOMString? namespaceURI); 76 boolean isDefaultNamespace(DOMString? namespaceURI);
78 77
79 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e insertBefore(Node node, Node? child); 78 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e insertBefore(Node node, Node? child);
80 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e appendChild(Node node); 79 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e appendChild(Node node);
81 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e replaceChild(Node node, Node child); 80 [CEReactions, CustomElementCallbacks, PerWorldBindings, RaisesException] Nod e replaceChild(Node node, Node child);
82 [CEReactions, CustomElementCallbacks, RaisesException] Node removeChild(Node child); 81 [CEReactions, CustomElementCallbacks, RaisesException] Node removeChild(Node child);
83 }; 82 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698