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

Side by Side Diff: Source/core/dom/Document.idl

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years 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 | « LayoutTests/svg/dom/vkern-element-crash.html ('k') | no next file » | 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
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 11 matching lines...) Expand all
22 22
23 [ 23 [
24 SpecialWrapFor=HTMLDocument|SVGDocument 24 SpecialWrapFor=HTMLDocument|SVGDocument
25 ] interface Document : Node { 25 ] interface Document : Node {
26 26
27 // DOM Level 1 Core 27 // DOM Level 1 Core
28 readonly attribute DocumentType doctype; 28 readonly attribute DocumentType doctype;
29 readonly attribute DOMImplementation implementation; 29 readonly attribute DOMImplementation implementation;
30 readonly attribute Element documentElement; 30 readonly attribute Element documentElement;
31 31
32 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElement([TreatNullAs=NullString,Default=Undefin ed] optional DOMString tagName); 32 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElement(DOMString tagName);
33 DocumentFragment createDocumentFragment(); 33 DocumentFragment createDocumentFragment();
34 [PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMStrin g data); 34 [PerWorldBindings] Text createTextNode(DOMString data);
35 Comment createComment([Default=Undefined] optional DOMString data); 35 Comment createComment(DOMString data);
36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. 36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4.
37 [RaisesException] ProcessingInstruction createProcessingInstruction([Default =Undefined] optional DOMString target, 37 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin g target, DOMString data);
38 [Default=Undefined] optional DOMString data);
39 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4. 38 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4.
40 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine d] optional DOMString tagname); 39 [PerWorldBindings] NodeList getElementsByTagName(DOMString localName);
41 40
42 // Introduced in DOM Level 2: 41 // Introduced in DOM Level 2:
43 42
44 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Node importNode([Default=Undefined] optional Node importedNod e, 43 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Node importNode(Node node, optional boolean deep);
45 optional boolean deep); 44 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString na mespaceURI, DOMString qualifiedName);
46 [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds , RaisesException] Element createElementNS([TreatNullAs=NullString,Default=Undef ined] optional DOMString namespaceURI,
47 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
48 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 45 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
49 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. 46 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4.
50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 47 NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespace URI, DOMString localName);
51 [Default=Undefined] optional DOMString localName); 48 [PerWorldBindings] Element getElementById(DOMString elementId);
52 [PerWorldBindings] Element getElementById([Default=Undefined] opt ional DOMString elementId);
53 49
54 // DOM Level 3 Core 50 // DOM Level 3 Core
55 51
56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4. 52 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4.
57 53
58 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4.
59 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4. 55 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4.
60 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. 56 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4.
61 57
62 [RaisesException, CustomElementCallbacks] Node adoptNode([Defa ult=Undefined] optional Node source); 58 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node);
63 59
64 [TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI; 60 [TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI;
65 61
66 // DOM Level 2 Events (DocumentEvents interface) 62 // DOM Level 2 Events (DocumentEvents interface)
67 63
68 [RaisesException] Event createEvent([Default=Undefined] optiona l DOMString eventType); 64 [RaisesException] Event createEvent(DOMString eventType);
69 65
70 // DOM Level 2 Traversal and Range (DocumentRange interface) 66 // DOM Level 2 Traversal and Range (DocumentRange interface)
71 67
72 Range createRange(); 68 Range createRange();
73 69
74 // DOM Level 2 Traversal and Range (DocumentTraversal interface) 70 // DOM Level 2 Traversal and Range (DocumentTraversal interface)
75 71
76 [RaisesException] NodeIterator createNodeIterator(Node root, 72 [RaisesException] NodeIterator createNodeIterator(Node root,
77 optional unsigned long wha tToShow, 73 optional unsigned long wha tToShow,
78 optional NodeFilter filter ); 74 optional NodeFilter filter );
79 [RaisesException] TreeWalker createTreeWalker(Node root, 75 [RaisesException] TreeWalker createTreeWalker(Node root,
80 optional unsigned long whatToS how, 76 optional unsigned long whatToS how,
81 optional NodeFilter filter); 77 optional NodeFilter filter);
82 78
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet; 139 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet;
144 140
145 // WebKit extensions 141 // WebKit extensions
146 142
147 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet; 143 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet;
148 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; 144 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet;
149 145
150 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString na me, long width, long height); 146 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString na me, long width, long height);
151 147
152 // HTML 5 148 // HTML 5
153 NodeList getElementsByClassName([Default=Undefined] optional DOMString tagna me); 149 NodeList getElementsByClassName(DOMString classNames);
154 150
155 readonly attribute DOMString compatMode; 151 readonly attribute DOMString compatMode;
156 152
157 // NodeSelector - Selector API 153 // NodeSelector - Selector API
158 [RaisesException] Element querySelector(DOMString selectors); 154 [RaisesException] Element querySelector(DOMString selectors);
159 [RaisesException] NodeList querySelectorAll(DOMString selectors); 155 [RaisesException] NodeList querySelectorAll(DOMString selectors);
160 156
161 void webkitExitPointerLock(); 157 void webkitExitPointerLock();
162 readonly attribute Element webkitPointerLockElement; 158 readonly attribute Element webkitPointerLockElement;
163 159
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
216 212
217 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces 213 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces
218 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] readonly attribut e SecurityPolicy securityPolicy; 214 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] readonly attribut e SecurityPolicy securityPolicy;
219 215
220 readonly attribute HTMLScriptElement currentScript; 216 readonly attribute HTMLScriptElement currentScript;
221 }; 217 };
222 218
223 Document implements GlobalEventHandlers; 219 Document implements GlobalEventHandlers;
224 Document implements ParentNode; 220 Document implements ParentNode;
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/vkern-element-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698