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

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

Issue 98543009: Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix failing tests 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/fast/speech/bubble-position.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, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 [ 21 [
22 SpecialWrapFor=HTMLElement|SVGElement 22 SpecialWrapFor=HTMLElement|SVGElement
23 ] interface Element : Node { 23 ] interface Element : Node {
24 24
25 // DOM Level 1 Core 25 // DOM Level 1 Core
26 26
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName; 27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName;
28 28
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined] optional DOMString name); 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name);
30 [RaisesException, CustomElementCallbacks] void setAttribute([Default=Undefin ed] optional DOMString name, [Default=Undefined] optional DOMString value); 30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
31 [CustomElementCallbacks] void removeAttribute([Default=Undefined] optional D OMString name); 31 [CustomElementCallbacks] void removeAttribute(DOMString name);
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4. 32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4.
33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4. 33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4.
34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4. 34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4.
35 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona l DOMString name); 35 [PerWorldBindings] NodeList getElementsByTagName(DOMString name);
36 36
37 [PerWorldBindings] readonly attribute NamedNodeMap attributes; 37 [PerWorldBindings] readonly attribute NamedNodeMap attributes;
38 [MeasureAs=HasAttributes] boolean hasAttributes(); 38 [MeasureAs=HasAttributes] boolean hasAttributes();
39 39
40 // DOM Level 2 Core 40 // DOM Level 2 Core
41 41
42 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 42 DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DO MString localName);
43 [Default=Undefined] optional DOMString localName); 43 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value);
44 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
45 [Default=Undef ined] optional DOMString qualifiedName,
46 [Default=Undef ined] optional DOMString value);
47 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName); 44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName);
48 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] o ptional DOMString namespaceURI, 45 NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespace URI, DOMString localName);
49 [Default=Undefined] optional DOMString local Name);
50 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI, 46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
51 [Default=Undef ined] optional DOMString localName); // Removed from DOM4. 47 [Default=Undef ined] optional DOMString localName); // Removed from DOM4.
52 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4. 48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4.
53 boolean hasAttribute(DOMString name); 49 boolean hasAttribute(DOMString name);
54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D OMString namespaceURI, 50 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS tring localName);
55 [Default=Undefined] optional DOMString localName);
56 51
57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
58 53
59 // DOM4 54 // DOM4
60 [Reflect] attribute DOMString id; 55 [Reflect] attribute DOMString id;
61 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI; 56 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI;
62 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix; 57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix;
63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName; 58 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName;
64 59
65 // Common extensions 60 // Common extensions
(...skipping 16 matching lines...) Expand all
82 void blur(); 77 void blur();
83 void scrollIntoView(optional boolean alignWithTop); 78 void scrollIntoView(optional boolean alignWithTop);
84 79
85 // WebKit extensions 80 // WebKit extensions
86 81
87 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); 82 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
88 void scrollByLines([Default=Undefined] optional long lines); 83 void scrollByLines([Default=Undefined] optional long lines);
89 void scrollByPages([Default=Undefined] optional long pages); 84 void scrollByPages([Default=Undefined] optional long pages);
90 85
91 // HTML 5 86 // HTML 5
92 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ; 87 NodeList getElementsByClassName(DOMString classNames);
93 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML; 88 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML;
94 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 89 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML;
95 90
96 [Reflect=class, PerWorldBindings] attribute DOMString className; 91 [Reflect=class, PerWorldBindings] attribute DOMString className;
97 [PerWorldBindings] readonly attribute DOMTokenList classList; 92 [PerWorldBindings] readonly attribute DOMTokenList classList;
98 93
99 [PerWorldBindings] readonly attribute DOMStringMap dataset; 94 [PerWorldBindings] readonly attribute DOMStringMap dataset;
100 95
101 // NodeSelector - Selector API 96 // NodeSelector - Selector API
102 [RaisesException] Element querySelector(DOMString selectors); 97 [RaisesException] Element querySelector(DOMString selectors);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 141 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
147 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 142 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
148 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 143 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
149 attribute EventHandler onwebkitfullscreenchange; 144 attribute EventHandler onwebkitfullscreenchange;
150 attribute EventHandler onwebkitfullscreenerror; 145 attribute EventHandler onwebkitfullscreenerror;
151 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel; 146 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel;
152 }; 147 };
153 148
154 Element implements ParentNode; 149 Element implements ParentNode;
155 Element implements ChildNode; 150 Element implements ChildNode;
OLDNEW
« no previous file with comments | « LayoutTests/fast/speech/bubble-position.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698