Changeset 92327 in webkit
- Timestamp:
- Aug 3, 2011 4:20:58 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r92315 r92327 1 2011-08-03 Mark Pilgrim <pilgrim@chromium.org> 2 3 Remove LegacyDefaultOptionalArguments flag from HTML DOM IDL files 4 https://bugs.webkit.org/show_bug.cgi?id=65338 5 6 Reviewed by Adam Barth. 7 8 * fast/files/create-blob-url-crash-expected.txt: 9 * fast/files/create-blob-url-crash.html: 10 * fast/files/revoke-blob-url-expected.txt: 11 * fast/files/revoke-blob-url.html: 12 * fast/forms/ValidityState-customError-expected.txt: 13 * fast/forms/ValidityState-customError.html: 14 1 15 2011-08-03 Mark Pilgrim <pilgrim@chromium.org> 2 16 -
trunk/LayoutTests/fast/files/create-blob-url-crash-expected.txt
r70102 r92327 1 Test that createObjectURL with no argument should not cause crash.2 PASS 1 Test that createObjectURL with no argument should throw an exception. 2 PASS: Not enough arguments 3 3 DONE 4 4 -
trunk/LayoutTests/fast/files/create-blob-url-crash.html
r75739 r92327 10 10 function test() 11 11 { 12 log("Test that createObjectURL with no argument should not cause crash."); 13 var url = webkitURL.createObjectURL(); 14 log(url == undefined ? "PASS" : "FAIL"); 12 log("Test that createObjectURL with no argument should throw an exception."); 13 try { 14 var url = webkitURL.createObjectURL(); 15 log("FAIL"); 16 } catch(err) { 17 log("PASS: " + err.message); 18 } 15 19 16 20 log("DONE"); -
trunk/LayoutTests/fast/files/revoke-blob-url-expected.txt
r70102 r92327 1 1 Test calling revokeObjectURL with no argument. 2 PASS 2 PASS: Not enough arguments 3 3 Test calling revokeObjectURL with empty URL. 4 4 PASS -
trunk/LayoutTests/fast/files/revoke-blob-url.html
r75739 r92327 11 11 { 12 12 log("Test calling revokeObjectURL with no argument."); 13 var url = webkitURL.revokeObjectURL(); 14 log(url == undefined ? "PASS" : "FAIL"); 13 try { 14 var url = webkitURL.revokeObjectURL(); 15 log("FAIL"); 16 } catch(err) { 17 log("PASS: " + err.message); 18 } 15 19 16 20 log("Test calling revokeObjectURL with empty URL."); -
trunk/LayoutTests/fast/forms/ValidityState-customError-expected.txt
r73999 r92327 36 36 Many changes for customError: 37 37 Set some value, and set with no arguments. 38 PASS setCustomValidity() threw Not enough arguments 39 PASS setCustomValidity() threw Not enough arguments 40 PASS setCustomValidity() threw Not enough arguments 41 PASS setCustomValidity() threw Not enough arguments 42 PASS setCustomValidity() threw Not enough arguments 43 PASS setCustomValidity() threw Not enough arguments 44 PASS setCustomValidity() threw Not enough arguments 45 PASS setCustomValidity() threw Not enough arguments 38 46 PASS customErrorFor("fieldset-many-changes") is false 39 47 PASS customErrorFor("button-many-changes") is false -
trunk/LayoutTests/fast/forms/ValidityState-customError.html
r73999 r92327 98 98 for (i = 0; i < v.length; i++) { 99 99 v[i].setCustomValidity("Custom string"); 100 v[i].setCustomValidity(); 100 try { 101 v[i].setCustomValidity(); 102 testFailed("setCustomValidity() did not throw"); 103 } catch(err) { 104 testPassed("setCustomValidity() threw " + err.message); 105 } 106 v[i].setCustomValidity(undefined); 101 107 } 102 108 shouldBeFalse('customErrorFor("fieldset-many-changes")'); -
trunk/Source/WebCore/ChangeLog
r92325 r92327 1 2011-08-03 Mark Pilgrim <pilgrim@chromium.org> 2 3 Remove LegacyDefaultOptionalArguments flag from HTML DOM IDL files 4 https://bugs.webkit.org/show_bug.cgi?id=65338 5 6 Reviewed by Adam Barth. 7 8 * html/DOMFormData.idl: 9 * html/DOMTokenList.idl: 10 * html/DOMURL.idl: 11 * html/HTMLAllCollection.idl: 12 * html/HTMLAnchorElement.idl: 13 * html/HTMLAudioElement.idl: 14 * html/HTMLButtonElement.idl: 15 * html/HTMLCanvasElement.idl: 16 * html/HTMLCollection.idl: 17 * html/HTMLDivElement.idl: 18 * html/HTMLDocument.idl: 19 * html/HTMLElement.idl: 20 * html/HTMLFieldSetElement.idl: 21 * html/HTMLInputElement.idl: 22 * html/HTMLKeygenElement.idl: 23 * html/HTMLMediaElement.idl: 24 * html/HTMLObjectElement.idl: 25 * html/HTMLOptionsCollection.idl: 26 * html/HTMLOutputElement.idl: 27 * html/HTMLSelectElement.idl: 28 * html/HTMLTableElement.idl: 29 * html/HTMLTableRowElement.idl: 30 * html/HTMLTableSectionElement.idl: 31 * html/HTMLTextAreaElement.idl: 32 * html/HTMLVideoElement.idl: 33 * html/TimeRanges.idl: 34 1 35 2011-08-03 Jeffrey Pfau <jpfau@apple.com> 2 36 -
trunk/Source/WebCore/html/DOMFormData.idl
r89148 r92327 32 32 33 33 interface [ 34 LegacyDefaultOptionalArguments,35 34 CanBeConstructed, 36 35 CustomConstructFunction, … … 40 39 ] DOMFormData { 41 40 // void append(DOMString name, Blob value); 42 [Custom] void append(in DOMString name, in DOMString value); 41 [Custom] void append(in [Optional=CallWithDefaultValue] DOMString name, 42 in [Optional=CallWithDefaultValue] DOMString value); 43 43 }; 44 44 -
trunk/Source/WebCore/html/DOMTokenList.idl
r89148 r92327 26 26 27 27 interface [ 28 LegacyDefaultOptionalArguments,29 28 GenerateIsReachable=ImplElementRoot, 30 29 GenerateConstructor, -
trunk/Source/WebCore/html/DOMURL.idl
r89148 r92327 26 26 module html { 27 27 interface [ 28 LegacyDefaultOptionalArguments,29 28 Conditional=BLOB, 30 29 OmitConstructor, -
trunk/Source/WebCore/html/HTMLAllCollection.idl
r89148 r92327 27 27 28 28 interface [ 29 LegacyDefaultOptionalArguments,30 29 HasIndexGetter, 31 30 HasNameGetter, … … 34 33 ] HTMLAllCollection { 35 34 readonly attribute unsigned long length; 36 [Custom] Node item(in unsigned long index);35 [Custom] Node item(in [Optional=CallWithDefaultValue] unsigned long index); 37 36 [Custom] Node namedItem(in DOMString name); 38 37 -
trunk/Source/WebCore/html/HTMLAnchorElement.idl
r91797 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLAnchorElement : HTMLElement { 23 interface HTMLAnchorElement : HTMLElement { 26 24 attribute [Reflect] DOMString accessKey; 27 25 attribute [Reflect] DOMString charset; -
trunk/Source/WebCore/html/HTMLAudioElement.idl
r89148 r92327 26 26 module html { 27 27 interface [ 28 LegacyDefaultOptionalArguments,29 28 Conditional=VIDEO 30 29 ] HTMLAudioElement : HTMLMediaElement { -
trunk/Source/WebCore/html/HTMLButtonElement.idl
r89148 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLButtonElement : HTMLElement { 23 interface HTMLButtonElement : HTMLElement { 26 24 readonly attribute HTMLFormElement form; 27 25 -
trunk/Source/WebCore/html/HTMLCanvasElement.idl
r89148 r92327 28 28 29 29 interface [ 30 LegacyDefaultOptionalArguments,31 30 GenerateNativeConverter 32 31 ] HTMLCanvasElement : HTMLElement { … … 35 34 attribute long height; 36 35 37 [Custom] DOMString toDataURL(in [ConvertUndefinedOrNullToNullString ] DOMString type)36 [Custom] DOMString toDataURL(in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString type) 38 37 raises(DOMException); 39 38 … … 41 40 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C 42 41 // The custom binding is needed to handle context creation attributes. 43 [Custom] DOMObject getContext(in DOMString contextId);42 [Custom] DOMObject getContext(in [Optional=CallWithDefaultValue] DOMString contextId); 44 43 #endif 45 44 #endif -
trunk/Source/WebCore/html/HTMLCollection.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 HasIndexGetter, 26 25 HasNameGetter, … … 31 30 ] HTMLCollection { 32 31 readonly attribute unsigned long length; 33 [Custom] Node item(in unsigned long index);34 [Custom] Node namedItem(in DOMString name);32 [Custom] Node item(in [Optional=CallWithDefaultValue] unsigned long index); 33 [Custom] Node namedItem(in [Optional=CallWithDefaultValue] DOMString name); 35 34 36 35 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 37 NodeList tags(in DOMString name);36 NodeList tags(in [Optional=CallWithDefaultValue] DOMString name); 38 37 #endif 39 38 }; -
trunk/Source/WebCore/html/HTMLDivElement.idl
r89452 r92327 20 20 module html { 21 21 22 interface [ 23 LegacyDefaultOptionalArguments, 24 ] HTMLDivElement : HTMLElement { 22 interface HTMLDivElement : HTMLElement { 25 23 attribute [Reflect] DOMString align; 26 24 }; -
trunk/Source/WebCore/html/HTMLDocument.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 HasOverridingNameGetter 26 25 ] HTMLDocument : Document { 27 26 [Custom, NoCPPCustom] void open(); 28 27 void close(); 29 [Custom] void write(in DOMString text);30 [Custom] void writeln(in DOMString text);28 [Custom] void write(in [Optional=CallWithDefaultValue] DOMString text); 29 [Custom] void writeln(in [Optional=CallWithDefaultValue] DOMString text); 31 30 32 31 readonly attribute HTMLCollection embeds; -
trunk/Source/WebCore/html/HTMLElement.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 GenerateNativeConverter, 26 25 CustomPushEventHandlerScope … … 50 49 setter raises(DOMException); 51 50 52 Element insertAdjacentElement(in DOMString where,53 in Element element)51 Element insertAdjacentElement(in [Optional=CallWithDefaultValue] DOMString where, 52 in [Optional=CallWithDefaultValue] Element element) 54 53 raises(DOMException); 55 void insertAdjacentHTML(in DOMString where,56 in DOMString html)54 void insertAdjacentHTML(in [Optional=CallWithDefaultValue] DOMString where, 55 in [Optional=CallWithDefaultValue] DOMString html) 57 56 raises(DOMException); 58 void insertAdjacentText(in DOMString where,59 in DOMString text)57 void insertAdjacentText(in [Optional=CallWithDefaultValue] DOMString where, 58 in [Optional=CallWithDefaultValue] DOMString text) 60 59 raises(DOMException); 61 60 -
trunk/Source/WebCore/html/HTMLFieldSetElement.idl
r89148 r92327 20 20 module html { 21 21 22 interface [ 23 LegacyDefaultOptionalArguments, 24 ] HTMLFieldSetElement : HTMLElement { 22 interface HTMLFieldSetElement : HTMLElement { 25 23 readonly attribute HTMLFormElement form; 26 24 readonly attribute ValidityState validity; -
trunk/Source/WebCore/html/HTMLInputElement.idl
r92088 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLInputElement : HTMLElement { 23 interface HTMLInputElement : HTMLElement { 26 24 attribute [ConvertNullToNullString] DOMString defaultValue; 27 25 attribute [Reflect=checked] boolean defaultChecked; … … 94 92 [Custom] void setSelectionRange(in long start, in long end); 95 93 #else 96 [Custom] void setSelectionRange(in long start, in long end, in [Optional] DOMString direction); 94 [Custom] void setSelectionRange(in [Optional=CallWithDefaultValue] long start, 95 in [Optional=CallWithDefaultValue] long end, 96 in [Optional] DOMString direction); 97 97 #endif 98 98 -
trunk/Source/WebCore/html/HTMLKeygenElement.idl
r89148 r92327 31 31 module html { 32 32 33 interface [ 34 LegacyDefaultOptionalArguments, 35 ] HTMLKeygenElement : HTMLElement { 33 interface HTMLKeygenElement : HTMLElement { 36 34 attribute [Reflect] boolean autofocus; 37 35 attribute [Reflect] DOMString challenge; -
trunk/Source/WebCore/html/HTMLMediaElement.idl
r91570 r92327 27 27 interface [ 28 28 Conditional=VIDEO, 29 LegacyDefaultOptionalArguments,30 29 ] HTMLMediaElement : HTMLElement { 31 30 -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 DelegatingPutFunction, 26 25 DelegatingGetOwnPropertySlot, -
trunk/Source/WebCore/html/HTMLOptionsCollection.idl
r89148 r92327 23 23 // FIXME: The W3C spec says that HTMLOptionsCollection should not have a parent class. 24 24 interface [ 25 LegacyDefaultOptionalArguments,26 25 GenerateNativeConverter, 27 26 HasCustomIndexSetter … … 31 30 setter raises (DOMException); 32 31 33 [Custom] void add(in HTMLOptionElement option, in [Optional] unsigned long index) 32 [Custom] void add(in [Optional=CallWithDefaultValue] HTMLOptionElement option, 33 in [Optional] unsigned long index) 34 34 raises (DOMException); 35 [Custom] void remove(in unsigned long index);35 [Custom] void remove(in [Optional=CallWithDefaultValue] unsigned long index); 36 36 37 37 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C -
trunk/Source/WebCore/html/HTMLOutputElement.idl
r89148 r92327 24 24 25 25 module html { 26 interface [ 27 LegacyDefaultOptionalArguments, 28 ] HTMLOutputElement : HTMLElement { 26 interface HTMLOutputElement : HTMLElement { 29 27 attribute [Custom] DOMSettableTokenList htmlFor; 30 28 readonly attribute HTMLFormElement form; -
trunk/Source/WebCore/html/HTMLSelectElement.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 HasIndexGetter, 26 25 HasCustomIndexSetter … … 54 53 attribute long size; 55 54 56 [OldStyleObjC] void add(in HTMLElement element, in HTMLElement before) raises(DOMException); 55 [OldStyleObjC] void add(in [Optional=CallWithDefaultValue] HTMLElement element, 56 in [Optional=CallWithDefaultValue] HTMLElement before) raises(DOMException); 57 57 58 58 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT … … 66 66 // These methods are not in DOM Level 2 IDL, but are mentioned in the standard: 67 67 // "The contained options can be directly accessed through the select element as a collection." 68 Node item(in [IsIndex ] unsigned long index);69 Node namedItem(in DOMString name);68 Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index); 69 Node namedItem(in [Optional=CallWithDefaultValue] DOMString name); 70 70 readonly attribute NodeList labels; 71 71 }; -
trunk/Source/WebCore/html/HTMLTableElement.idl
r89148 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLTableElement : HTMLElement { 23 interface HTMLTableElement : HTMLElement { 26 24 attribute HTMLTableCaptionElement caption setter raises(DOMException); 27 25 attribute HTMLTableSectionElement tHead setter raises(DOMException); … … 49 47 void deleteCaption(); 50 48 51 HTMLElement insertRow(in long index) raises(DOMException);52 void deleteRow(in long index) raises(DOMException);49 HTMLElement insertRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 50 void deleteRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 53 51 }; 54 52 -
trunk/Source/WebCore/html/HTMLTableRowElement.idl
r89148 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLTableRowElement : HTMLElement { 23 interface HTMLTableRowElement : HTMLElement { 26 24 readonly attribute long rowIndex; 27 25 readonly attribute long sectionRowIndex; … … 32 30 attribute [Reflect=charoff] DOMString chOff; 33 31 attribute [Reflect] DOMString vAlign; 34 HTMLElement insertCell(in long index) raises(DOMException);35 void deleteCell(in long index) raises(DOMException);32 HTMLElement insertCell(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 33 void deleteCell(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 36 34 }; 37 35 -
trunk/Source/WebCore/html/HTMLTableSectionElement.idl
r89148 r92327 22 22 23 23 interface [ 24 LegacyDefaultOptionalArguments,25 24 GenerateNativeConverter 26 25 ] HTMLTableSectionElement : HTMLElement { … … 30 29 attribute [Reflect] DOMString vAlign; 31 30 readonly attribute HTMLCollection rows; 32 HTMLElement insertRow(in long index) raises(DOMException);33 void deleteRow(in long index) raises(DOMException);31 HTMLElement insertRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 32 void deleteRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException); 34 33 }; 35 34 -
trunk/Source/WebCore/html/HTMLTextAreaElement.idl
r92088 r92327 21 21 module html { 22 22 23 interface [ 24 LegacyDefaultOptionalArguments, 25 ] HTMLTextAreaElement : HTMLElement { 23 interface HTMLTextAreaElement : HTMLElement { 26 24 attribute [ConvertNullToNullString] DOMString defaultValue; 27 25 readonly attribute HTMLFormElement form; … … 55 53 void setSelectionRange(in long start, in long end); 56 54 #else 57 void setSelectionRange(in long start, in long end, in [Optional] DOMString direction); 55 void setSelectionRange(in [Optional=CallWithDefaultValue] long start, 56 in [Optional=CallWithDefaultValue] long end, 57 in [Optional] DOMString direction); 58 58 #endif 59 59 readonly attribute NodeList labels; -
trunk/Source/WebCore/html/HTMLVideoElement.idl
r91570 r92327 27 27 interface [ 28 28 Conditional=VIDEO, 29 LegacyDefaultOptionalArguments,30 29 GenerateNativeConverter 31 30 ] HTMLVideoElement : HTMLMediaElement { -
trunk/Source/WebCore/html/TimeRanges.idl
r89148 r92327 27 27 28 28 interface [ 29 LegacyDefaultOptionalArguments,30 29 Conditional=VIDEO 31 30 ] TimeRanges {
Note: See TracChangeset
for help on using the changeset viewer.