Source/WebCore/ChangeLog

 12011-08-04 Mark Pilgrim <pilgrim@chromium.org>
 2
 3 Remove LegacyDefaultOptionalArguments flag from DOM-related files except Document.idl
 4 https://bugs.webkit.org/show_bug.cgi?id=65715
 5
 6 Reviewed by Adam Barth.
 7
 8 No new tests, all existing tests pass.
 9
 10 * dom/CharacterData.idl:
 11 * dom/ClientRectList.idl:
 12 * dom/Clipboard.idl:
 13 * dom/DOMImplementation.idl:
 14 * dom/DOMStringList.idl:
 15 * dom/DataTransferItem.idl:
 16 * dom/DataTransferItems.idl:
 17 * dom/DocumentFragment.idl:
 18 * dom/Element.idl:
 19 * dom/EventListener.idl:
 20 * dom/EventTarget.idl:
 21 * dom/MediaStream.idl:
 22 * dom/MediaStreamList.idl:
 23 * dom/MediaStreamTrackList.idl:
 24 * dom/MessagePort.idl:
 25 * dom/NamedNodeMap.idl:
 26 * dom/Node.idl:
 27 * dom/NodeFilter.idl:
 28 * dom/NodeList.idl:
 29 * dom/Range.idl:
 30 * dom/RequestAnimationFrameCallback.idl:
 31 * dom/StringCallback.idl:
 32 * dom/Text.idl:
 33 * dom/TouchList.idl:
 34
1352011-08-04 Mark Rowe <mrowe@apple.com>
236
337 Future-proof Xcode configuration settings.

Source/WebCore/dom/CharacterData.idl

1919
2020module core {
2121
22  interface [
23  LegacyDefaultOptionalArguments,
24  ] CharacterData : Node {
 22 interface CharacterData : Node {
2523
2624 attribute [ConvertNullToNullString] DOMString data
2725 setter raises(DOMException);
2826
2927 readonly attribute unsigned long length;
3028
31  [ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex] unsigned long offset,
32  in [IsIndex] unsigned long length)
 29 [ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
 30 in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
3331 raises(DOMException);
3432
35  void appendData(in DOMString data)
 33 void appendData(in [Optional=CallWithDefaultValue] DOMString data)
3634 raises(DOMException);
3735
38  [OldStyleObjC] void insertData(in [IsIndex] unsigned long offset,
39  in DOMString data)
 36 [OldStyleObjC] void insertData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
 37 in [Optional=CallWithDefaultValue] DOMString data)
4038 raises(DOMException);
4139
42  [OldStyleObjC] void deleteData(in [IsIndex] unsigned long offset,
43  in [IsIndex] unsigned long length)
 40 [OldStyleObjC] void deleteData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
 41 in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
4442 raises(DOMException);
4543
46  [OldStyleObjC] void replaceData(in [IsIndex] unsigned long offset,
47  in [IsIndex] unsigned long length,
48  in DOMString data)
 44 [OldStyleObjC] void replaceData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
 45 in [IsIndex,Optional=CallWithDefaultValue] unsigned long length,
 46 in [Optional=CallWithDefaultValue] DOMString data)
4947 raises(DOMException);
5048
5149 };

Source/WebCore/dom/ClientRectList.idl

2727module view {
2828
2929 interface [
30  LegacyDefaultOptionalArguments,
3130 HasIndexGetter
3231 ] ClientRectList {
3332 readonly attribute unsigned long length;
34  ClientRect item(in [IsIndex] unsigned long index);
 33 ClientRect item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
3534 // FIXME: Fix list behavior to allow custom exceptions to be thrown.
3635 };
3736

Source/WebCore/dom/Clipboard.idl

2828
2929module core {
3030
31  interface [
32  LegacyDefaultOptionalArguments,
33  ] Clipboard {
 31 interface Clipboard {
3432 attribute [ConvertNullStringTo=Undefined] DOMString dropEffect;
3533 attribute [ConvertNullStringTo=Undefined] DOMString effectAllowed;
3634 readonly attribute [CustomGetter] Array types;

Source/WebCore/dom/DOMImplementation.idl

2121module core {
2222
2323 interface [
24  LegacyDefaultOptionalArguments,
2524 GenerateIsReachable=ImplDocument,
2625 V8DependentLifetime
2726 ] DOMImplementation {
2827
2928 // DOM Level 1
3029
31  [OldStyleObjC] boolean hasFeature(in DOMString feature,
32  in [ConvertNullToNullString] DOMString version);
 30 [OldStyleObjC] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature,
 31 in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString version);
3332
3433 // DOM Level 2
3534
36  [OldStyleObjC] DocumentType createDocumentType(in [ConvertUndefinedOrNullToNullString] DOMString qualifiedName,
37  in [ConvertUndefinedOrNullToNullString] DOMString publicId,
38  in [ConvertUndefinedOrNullToNullString] DOMString systemId)
 35 [OldStyleObjC] DocumentType createDocumentType(in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString qualifiedName,
 36 in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString publicId,
 37 in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString systemId)
3938 raises(DOMException);
40  [OldStyleObjC] Document createDocument(in [ConvertNullToNullString] DOMString namespaceURI,
41  in [ConvertNullToNullString] DOMString qualifiedName,
42  in [ConvertNullToNullString] DocumentType doctype)
 39 [OldStyleObjC] Document createDocument(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 40 in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString qualifiedName,
 41 in [ConvertNullToNullString,Optional=CallWithDefaultValue] DocumentType doctype)
4342 raises(DOMException);
4443
4544 // DOMImplementationCSS interface from DOM Level 2 CSS
4645
47  [OldStyleObjC] CSSStyleSheet createCSSStyleSheet(in DOMString title,
48  in DOMString media)
 46 [OldStyleObjC] CSSStyleSheet createCSSStyleSheet(in [Optional=CallWithDefaultValue] DOMString title,
 47 in [Optional=CallWithDefaultValue] DOMString media)
4948 raises(DOMException);
5049
5150 // HTMLDOMImplementation interface from DOM Level 2 HTML
5251
53  HTMLDocument createHTMLDocument(in DOMString title);
 52 HTMLDocument createHTMLDocument(in [Optional=CallWithDefaultValue] DOMString title);
5453 };
5554
5655}

Source/WebCore/dom/DOMStringList.idl

2626module core {
2727
2828 interface [
29  LegacyDefaultOptionalArguments,
3029 GenerateConstructor,
3130 HasIndexGetter
3231 ] DOMStringList {
3332 readonly attribute unsigned long length;
34  [ConvertNullStringTo=Null] DOMString item(in [IsIndex] unsigned long index);
35  boolean contains(in DOMString string);
 33 [ConvertNullStringTo=Null] DOMString item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
 34 boolean contains(in [Optional=CallWithDefaultValue] DOMString string);
3635 };
3736
3837}

Source/WebCore/dom/DataTransferItem.idl

@@module core {
3232
3333 interface [
3434 Conditional=DATA_TRANSFER_ITEMS,
35  LegacyDefaultOptionalArguments,
3635 ] DataTransferItem {
3736 readonly attribute DOMString kind;
3837 readonly attribute DOMString type;
3938
40  void getAsString(in [Callback] StringCallback callback);
 39 void getAsString(in [Callback,Optional=CallWithDefaultValue] StringCallback callback);
4140 Blob getAsFile();
4241 };
4342

Source/WebCore/dom/DataTransferItems.idl

@@module core {
3232
3333 interface [
3434 Conditional=DATA_TRANSFER_ITEMS,
35  LegacyDefaultOptionalArguments,
3635 HasIndexGetter,
3736#if defined(V8_BINDING) && V8_BINDING
3837 CustomDeleteProperty,
3938#endif
4039 ] DataTransferItems {
4140 readonly attribute long length;
42  DataTransferItem item(in unsigned long index) getter;
 41 DataTransferItem item(in [Optional=CallWithDefaultValue] unsigned long index) getter;
4342
4443 void clear();
45  void add(in DOMString data, in DOMString type) raises(DOMException);
 44 void add(in [Optional=CallWithDefaultValue] DOMString data,
 45 in [Optional=CallWithDefaultValue] DOMString type) raises(DOMException);
4646 };
4747
4848}

Source/WebCore/dom/DocumentFragment.idl

1919
2020module core {
2121
22  interface [
23  LegacyDefaultOptionalArguments,
24  ] DocumentFragment : Node {
 22 interface DocumentFragment : Node {
2523 // NodeSelector - Selector API
26  [RequiresAllArguments=Raise] Element querySelector(in DOMString selectors)
 24 Element querySelector(in DOMString selectors)
2725 raises(DOMException);
28  [RequiresAllArguments=Raise] NodeList querySelectorAll(in DOMString selectors)
 26 NodeList querySelectorAll(in DOMString selectors)
2927 raises(DOMException);
3028 };
3129

Source/WebCore/dom/Element.idl

2121module core {
2222
2323 interface [
24  LegacyDefaultOptionalArguments,
2524 GenerateNativeConverter,
2625 InlineGetOwnPropertySlot
2726 ] Element : Node {

@@module core {
3029
3130 readonly attribute [ConvertNullStringTo=Null] DOMString tagName;
3231
33  [ConvertNullStringTo=Null] DOMString getAttribute(in DOMString name);
34  [OldStyleObjC] void setAttribute(in DOMString name,
35  in DOMString value)
 32 [ConvertNullStringTo=Null] DOMString getAttribute(in [Optional=CallWithDefaultValue] DOMString name);
 33 [OldStyleObjC] void setAttribute(in [Optional=CallWithDefaultValue] DOMString name,
 34 in [Optional=CallWithDefaultValue] DOMString value)
3635 raises(DOMException);
37  void removeAttribute(in DOMString name)
 36 void removeAttribute(in [Optional=CallWithDefaultValue] DOMString name)
3837 raises(DOMException);
39  Attr getAttributeNode(in DOMString name);
40  Attr setAttributeNode(in Attr newAttr)
 38 Attr getAttributeNode(in [Optional=CallWithDefaultValue] DOMString name);
 39 Attr setAttributeNode(in [Optional=CallWithDefaultValue] Attr newAttr)
4140 raises(DOMException);
42  Attr removeAttributeNode(in Attr oldAttr)
 41 Attr removeAttributeNode(in [Optional=CallWithDefaultValue] Attr oldAttr)
4342 raises(DOMException);
44  NodeList getElementsByTagName(in DOMString name);
 43 NodeList getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString name);
4544
4645 // DOM Level 2 Core
4746
48  [OldStyleObjC] DOMString getAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
49  in DOMString localName);
50  [OldStyleObjC] void setAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
51  in DOMString qualifiedName,
52  in DOMString value)
 47 [OldStyleObjC] DOMString getAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 48 in [Optional=CallWithDefaultValue] DOMString localName);
 49 [OldStyleObjC] void setAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 50 in [Optional=CallWithDefaultValue] DOMString qualifiedName,
 51 in [Optional=CallWithDefaultValue] DOMString value)
5352 raises(DOMException);
5453 [OldStyleObjC] void removeAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
5554 in DOMString localName)
5655 raises(DOMException);
57  [OldStyleObjC] NodeList getElementsByTagNameNS(in [ConvertNullToNullString] DOMString namespaceURI,
58  in DOMString localName);
59  [OldStyleObjC] Attr getAttributeNodeNS(in [ConvertNullToNullString] DOMString namespaceURI,
60  in DOMString localName);
61  Attr setAttributeNodeNS(in Attr newAttr)
 56 [OldStyleObjC] NodeList getElementsByTagNameNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 57 in [Optional=CallWithDefaultValue] DOMString localName);
 58 [OldStyleObjC] Attr getAttributeNodeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 59 in [Optional=CallWithDefaultValue] DOMString localName);
 60 Attr setAttributeNodeNS(in [Optional=CallWithDefaultValue] Attr newAttr)
6261 raises(DOMException);
6362 boolean hasAttribute(in DOMString name);
64  [OldStyleObjC] boolean hasAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
65  in DOMString localName);
 63 [OldStyleObjC] boolean hasAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 64 in [Optional=CallWithDefaultValue] DOMString localName);
6665
6766 readonly attribute CSSStyleDeclaration style;
6867

@@module core {
8887
8988 // IE extensions
9089
91  boolean contains(in Element element);
 90 boolean contains(in [Optional=CallWithDefaultValue] Element element);
9291
9392 // WebKit extensions
9493
9594 void scrollIntoViewIfNeeded(in [Optional] boolean centerIfNeeded);
96  void scrollByLines(in long lines);
97  void scrollByPages(in long pages);
 95 void scrollByLines(in [Optional=CallWithDefaultValue] long lines);
 96 void scrollByPages(in [Optional=CallWithDefaultValue] long pages);
9897
9998#if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
10099 WebKitAnimationList webkitGetAnimations();
101100#endif
102101
103102 // HTML 5
104  NodeList getElementsByClassName(in DOMString name);
 103 NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString name);
105104
106105#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
107106 readonly attribute DOMStringMap dataset;
108107#endif
109108
110109 // NodeSelector - Selector API
111  [RequiresAllArguments=Raise] Element querySelector(in DOMString selectors)
 110 Element querySelector(in DOMString selectors)
112111 raises(DOMException);
113  [RequiresAllArguments=Raise] NodeList querySelectorAll(in DOMString selectors)
 112 NodeList querySelectorAll(in DOMString selectors)
114113 raises(DOMException);
115114
116115 // WebKit extension, pending specification.
117  boolean webkitMatchesSelector(in DOMString selectors)
 116 boolean webkitMatchesSelector(in [Optional=CallWithDefaultValue] DOMString selectors)
118117 raises(DOMException);
119118
120119 // ElementTraversal API

@@module core {
137136
138137#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
139138 const unsigned short ALLOW_KEYBOARD_INPUT = 1;
140  void webkitRequestFullScreen(in unsigned short flags);
 139 void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
141140#endif
142141
143142#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C

Source/WebCore/dom/EventListener.idl

@@module events {
2222
2323 // Introduced in DOM Level 2:
2424 interface [
25  LegacyDefaultOptionalArguments,
2625 NoStaticTables,
2726 ObjCProtocol,
2827 PureInterface,

Source/WebCore/dom/EventTarget.idl

@@module events {
2222
2323 // Introduced in DOM Level 2:
2424 interface [
25  LegacyDefaultOptionalArguments,
2625 ObjCProtocol,
2726 PureInterface,
2827 OmitConstructor

Source/WebCore/dom/MediaStream.idl

2525module core {
2626
2727 interface [
28  LegacyDefaultOptionalArguments,
2928 Conditional=MEDIA_STREAM,
3029 EventTarget
3130 ] MediaStream {

Source/WebCore/dom/MediaStreamList.idl

2525module core {
2626
2727 interface [
28  LegacyDefaultOptionalArguments,
2928 Conditional=MEDIA_STREAM,
3029 HasIndexGetter
3130 ] MediaStreamList {

Source/WebCore/dom/MediaStreamTrackList.idl

2525module core {
2626
2727 interface [
28  LegacyDefaultOptionalArguments,
2928 Conditional=MEDIA_STREAM,
3029 HasIndexGetter
3130 ] MediaStreamTrackList {

Source/WebCore/dom/MessagePort.idl

2727module events {
2828
2929 interface [
30  LegacyDefaultOptionalArguments,
3130 CustomMarkFunction,
3231 GenerateIsReachable=Impl,
3332 ActiveDOMObject,

Source/WebCore/dom/NamedNodeMap.idl

2121module core {
2222
2323 interface [
24  LegacyDefaultOptionalArguments,
2524 GenerateIsReachable=ImplElementRoot,
2625 CustomMarkFunction,
2726 HasIndexGetter,
2827 HasNameGetter
2928 ] NamedNodeMap {
3029
31  Node getNamedItem(in DOMString name);
 30 Node getNamedItem(in [Optional=CallWithDefaultValue] DOMString name);
3231
33  Node setNamedItem(in Node node)
 32 Node setNamedItem(in [Optional=CallWithDefaultValue] Node node)
3433 raises(DOMException);
3534
36  Node removeNamedItem(in DOMString name)
 35 Node removeNamedItem(in [Optional=CallWithDefaultValue] DOMString name)
3736 raises(DOMException);
3837
39  Node item(in unsigned long index);
 38 Node item(in [Optional=CallWithDefaultValue] unsigned long index);
4039
4140 readonly attribute unsigned long length;
4241
4342
4443 // Introduced in DOM Level 2:
4544
46  [OldStyleObjC] Node getNamedItemNS(in [ConvertNullToNullString] DOMString namespaceURI,
47  in DOMString localName)
 45 [OldStyleObjC] Node getNamedItemNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 46 in [Optional=CallWithDefaultValue] DOMString localName)
4847 // FIXME: the implementation does take an exceptioncode parameter.
4948 /*raises(DOMException)*/;
5049
51  Node setNamedItemNS(in Node node)
 50 Node setNamedItemNS(in [Optional=CallWithDefaultValue] Node node)
5251 raises(DOMException);
5352
54  [OldStyleObjC] Node removeNamedItemNS(in [ConvertNullToNullString] DOMString namespaceURI,
55  in DOMString localName)
 53 [OldStyleObjC] Node removeNamedItemNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
 54 in [Optional=CallWithDefaultValue] DOMString localName)
5655 raises(DOMException);
5756
5857 };

Source/WebCore/dom/Node.idl

2121module core {
2222
2323 interface [
24  LegacyDefaultOptionalArguments,
2524 CustomHeader,
2625 CustomMarkFunction,
2726 CustomPushEventHandlerScope,

@@module core {
8079 raises(DOMException);
8180
8281 boolean hasChildNodes();
83  Node cloneNode(in boolean deep);
 82 Node cloneNode(in [Optional=CallWithDefaultValue] boolean deep);
8483 void normalize();
8584
8685 // Introduced in DOM Level 2:
8786
88  [OldStyleObjC] boolean isSupported(in DOMString feature,
89  in [ConvertNullToNullString] DOMString version);
 87 [OldStyleObjC] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature,
 88 in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString version);
9089
9190 readonly attribute [ConvertNullStringTo=Null] DOMString namespaceURI;
9291 attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString prefix

@@module core {
103102 attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString textContent
104103 setter raises(DOMException);
105104
106  boolean isSameNode(in Node other);
107  boolean isEqualNode(in Node other);
108  [ConvertNullStringTo=Null] DOMString lookupPrefix(in [ConvertNullToNullString] DOMString namespaceURI);
109  boolean isDefaultNamespace(in [ConvertNullToNullString] DOMString namespaceURI);
110  [ConvertNullStringTo=Null] DOMString lookupNamespaceURI(in [ConvertNullToNullString] DOMString prefix);
 105 boolean isSameNode(in [Optional=CallWithDefaultValue] Node other);
 106 boolean isEqualNode(in [Optional=CallWithDefaultValue] Node other);
 107 [ConvertNullStringTo=Null] DOMString lookupPrefix(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
 108 boolean isDefaultNamespace(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
 109 [ConvertNullStringTo=Null] DOMString lookupNamespaceURI(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString prefix);
111110
112111 // DocumentPosition
113112 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;

@@module core {
117116 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
118117 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
119118
120  unsigned short compareDocumentPosition(in Node other);
 119 unsigned short compareDocumentPosition(in [Optional=CallWithDefaultValue] Node other);
121120
122121#if 0
123122 DOMObject getFeature(in DOMString feature,

Source/WebCore/dom/NodeFilter.idl

@@module traversal {
2222
2323 // Introduced in DOM Level 2:
2424 interface [
25  LegacyDefaultOptionalArguments,
2625 CustomMarkFunction,
2726 CustomNativeConverter,
2827 ObjCProtocol,

@@module traversal {
4847 const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x00000400;
4948 const unsigned long SHOW_NOTATION = 0x00000800;
5049
51  [CallWith=ScriptState] short acceptNode(in Node n);
 50 [CallWith=ScriptState] short acceptNode(in [Optional=CallWithDefaultValue] Node n);
5251
5352 };
5453

Source/WebCore/dom/NodeList.idl

2121module core {
2222
2323 interface [
24  LegacyDefaultOptionalArguments,
2524 CustomIsReachable,
2625 HasIndexGetter,
2726 HasNameGetter,
2827 CustomCall
2928 ] NodeList {
3029
31  Node item(in [IsIndex] unsigned long index);
 30 Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
3231
3332 readonly attribute unsigned long length;
3433

Source/WebCore/dom/Range.idl

2121module ranges {
2222
2323 // Introduced in DOM Level 2:
24  interface [
25  LegacyDefaultOptionalArguments,
26  ] Range {
 24 interface Range {
2725
2826 readonly attribute Node startContainer
2927 getter raises(DOMException);

@@module ranges {
3836 readonly attribute Node commonAncestorContainer
3937 getter raises(DOMException);
4038
41  [OldStyleObjC] void setStart(in Node refNode,
42  in long offset)
 39 [OldStyleObjC] void setStart(in [Optional=CallWithDefaultValue] Node refNode,
 40 in [Optional=CallWithDefaultValue] long offset)
4341 raises(RangeException, DOMException);
44  [OldStyleObjC] void setEnd(in Node refNode,
45  in long offset)
 42 [OldStyleObjC] void setEnd(in [Optional=CallWithDefaultValue] Node refNode,
 43 in [Optional=CallWithDefaultValue] long offset)
4644 raises(RangeException, DOMException);
47  void setStartBefore(in Node refNode)
 45 void setStartBefore(in [Optional=CallWithDefaultValue] Node refNode)
4846 raises(RangeException, DOMException);
49  void setStartAfter(in Node refNode)
 47 void setStartAfter(in [Optional=CallWithDefaultValue] Node refNode)
5048 raises(RangeException, DOMException);
51  void setEndBefore(in Node refNode)
 49 void setEndBefore(in [Optional=CallWithDefaultValue] Node refNode)
5250 raises(RangeException, DOMException);
53  void setEndAfter(in Node refNode)
 51 void setEndAfter(in [Optional=CallWithDefaultValue] Node refNode)
5452 raises(RangeException, DOMException);
55  void collapse(in boolean toStart)
 53 void collapse(in [Optional=CallWithDefaultValue] boolean toStart)
5654 raises(DOMException);
57  void selectNode(in Node refNode)
 55 void selectNode(in [Optional=CallWithDefaultValue] Node refNode)
5856 raises(RangeException, DOMException);
59  void selectNodeContents(in Node refNode)
 57 void selectNodeContents(in [Optional=CallWithDefaultValue] Node refNode)
6058 raises(RangeException, DOMException);
6159
6260 // CompareHow

@@module ranges {
6563 const unsigned short END_TO_END = 2;
6664 const unsigned short END_TO_START = 3;
6765
68  [OldStyleObjC] short compareBoundaryPoints(in CompareHow how,
69  in Range sourceRange)
 66 [OldStyleObjC] short compareBoundaryPoints(in [Optional=CallWithDefaultValue] CompareHow how,
 67 in [Optional=CallWithDefaultValue] Range sourceRange)
7068 raises(DOMException);
7169
7270 void deleteContents()

@@module ranges {
7573 raises(DOMException);
7674 DocumentFragment cloneContents()
7775 raises(DOMException);
78  void insertNode(in Node newNode)
 76 void insertNode(in [Optional=CallWithDefaultValue] Node newNode)
7977 raises(DOMException, RangeException);
80  void surroundContents(in Node newParent)
 78 void surroundContents(in [Optional=CallWithDefaultValue] Node newParent)
8179 raises(DOMException, RangeException);
8280 Range cloneRange()
8381 raises(DOMException);

@@module ranges {
9694
9795 // extensions
9896
99  DocumentFragment createContextualFragment(in DOMString html)
 97 DocumentFragment createContextualFragment(in [Optional=CallWithDefaultValue] DOMString html)
10098 raises(DOMException);
10199
102100 // WebKit extensions
103101
104  boolean intersectsNode(in Node refNode)
 102 boolean intersectsNode(in [Optional=CallWithDefaultValue] Node refNode)
105103 raises(RangeException, DOMException);
106104
107  short compareNode(in Node refNode)
 105 short compareNode(in [Optional=CallWithDefaultValue] Node refNode)
108106 raises(RangeException, DOMException);
109107
110108 // CompareResults

@@module ranges {
113111 const unsigned short NODE_BEFORE_AND_AFTER = 2;
114112 const unsigned short NODE_INSIDE = 3;
115113
116  short comparePoint(in Node refNode,
117  in long offset)
 114 short comparePoint(in [Optional=CallWithDefaultValue] Node refNode,
 115 in [Optional=CallWithDefaultValue] long offset)
118116 raises(RangeException, DOMException);
119117
120  boolean isPointInRange(in Node refNode,
121  in long offset)
 118 boolean isPointInRange(in [Optional=CallWithDefaultValue] Node refNode,
 119 in [Optional=CallWithDefaultValue] long offset)
122120 raises(RangeException, DOMException);
123121
124  void expand(in DOMString unit)
 122 void expand(in [Optional=CallWithDefaultValue] DOMString unit)
125123 raises(RangeException, DOMException);
126124
127125#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT

Source/WebCore/dom/RequestAnimationFrameCallback.idl

@@module core {
3232 interface [
3333 Callback=FunctionOnly,
3434 Conditional=REQUEST_ANIMATION_FRAME,
35  LegacyDefaultOptionalArguments,
3635 ] RequestAnimationFrameCallback{
3736 boolean handleEvent(in DOMTimeStamp time);
3837 };

Source/WebCore/dom/StringCallback.idl

3030
3131module core {
3232 interface [
33  LegacyDefaultOptionalArguments,
3433 Callback
3534 ] StringCallback {
3635 boolean handleEvent(in DOMString data);

Source/WebCore/dom/Text.idl

1919
2020module core {
2121
22  interface [
23  LegacyDefaultOptionalArguments,
24  ] Text : CharacterData {
 22 interface Text : CharacterData {
2523
2624 // DOM Level 1
2725
28  Text splitText(in [IsIndex] unsigned long offset)
 26 Text splitText(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset)
2927 raises (DOMException);
3028
3129 // Introduced in DOM Level 3:
3230 readonly attribute DOMString wholeText;
33  Text replaceWholeText(in DOMString content)
 31 Text replaceWholeText(in [Optional=CallWithDefaultValue] DOMString content)
3432 raises(DOMException);
3533 };
3634

Source/WebCore/dom/TouchList.idl

2626module events {
2727
2828 interface [
29  LegacyDefaultOptionalArguments,
3029 Conditional=TOUCH_EVENTS,
3130 HasIndexGetter
3231 ] TouchList {