Changeset 106776 in webkit
- Timestamp:
- Feb 5, 2012 11:06:00 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106773 r106776 1 2012-02-05 Kentaro Hara <haraken@chromium.org> 2 3 Rename [TreatNullAs=EmptyString] to [TreatNullAs=NullString], 4 [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString] 5 https://bugs.webkit.org/show_bug.cgi?id=77611 6 7 Reviewed by Adam Barth. 8 9 While the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString], 10 the current WebKit treats them as (not an empty string but) a null string. 11 To avoid confusion, this patch renames [TreatNullAs=EmptyString] to [TreatNullAs=NullString], 12 and [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString]. 13 (Eventually we should fix WebKit so that it uses an empty string and then 14 rename them to [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString].) 15 16 No tests. No change in behavior. 17 18 * bindings/scripts/CodeGeneratorJS.pm: Added FIXME. 19 (JSValueToNative): 20 * bindings/scripts/CodeGeneratorV8.pm: Ditto. 21 (GetNativeTypeFromSignature): 22 23 * bindings/scripts/test/TestObj.idl: 24 * css/CSSCharsetRule.idl: 25 * css/CSSPageRule.idl: 26 * css/CSSRule.idl: 27 * css/CSSStyleDeclaration.idl: 28 * css/CSSStyleRule.idl: 29 * css/CSSValue.idl: 30 * css/MediaList.idl: 31 * css/WebKitCSSKeyframesRule.idl: 32 * dom/Attr.idl: 33 * dom/CharacterData.idl: 34 * dom/DOMImplementation.idl: 35 * dom/Document.idl: 36 * dom/Element.idl: 37 * dom/NamedNodeMap.idl: 38 * dom/Node.idl: 39 * dom/ProcessingInstruction.idl: 40 * dom/ShadowRoot.idl: 41 * fileapi/Blob.idl: 42 * fileapi/DirectoryEntry.idl: 43 * fileapi/DirectoryEntrySync.idl: 44 * fileapi/Entry.idl: 45 * fileapi/EntrySync.idl: 46 * fileapi/WebKitBlobBuilder.idl: 47 * html/HTMLAnchorElement.idl: 48 * html/HTMLButtonElement.idl: 49 * html/HTMLCanvasElement.idl: 50 * html/HTMLDocument.idl: 51 * html/HTMLElement.idl: 52 * html/HTMLFieldSetElement.idl: 53 * html/HTMLFormElement.idl: 54 * html/HTMLFrameElement.idl: 55 * html/HTMLInputElement.idl: 56 * html/HTMLKeygenElement.idl: 57 * html/HTMLMediaElement.idl: 58 * html/HTMLObjectElement.idl: 59 * html/HTMLOutputElement.idl: 60 * html/HTMLScriptElement.idl: 61 * html/HTMLSelectElement.idl: 62 * html/HTMLTextAreaElement.idl: 63 * html/HTMLTitleElement.idl: 64 * html/canvas/CanvasRenderingContext2D.idl: 65 * page/Console.idl: 66 * page/DOMWindow.idl: 67 * storage/StorageEvent.idl: 68 * svg/SVGAngle.idl: 69 * svg/SVGElement.idl: 70 * svg/SVGLength.idl: 71 * svg/SVGScriptElement.idl: 72 1 73 2012-02-05 Kentaro Hara <haraken@chromium.org> 2 74 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r106773 r106776 2869 2869 2870 2870 if ($type eq "DOMString") { 2871 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "EmptyString") and ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "EmptyString")) { 2871 # FIXME: This implements [TreatNullAs=NullString] and [TreatUndefinedAs=NullString], 2872 # but the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString]. 2873 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") and ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString")) { 2872 2874 return "valueToStringWithUndefinedOrNullCheck(exec, $value)" 2873 2875 } 2874 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq " EmptyString") or $signature->extendedAttributes->{"Reflect"}) {2876 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") or $signature->extendedAttributes->{"Reflect"}) { 2875 2877 return "valueToStringWithNullCheck(exec, $value)" 2876 2878 } 2877 # FIXME: Add the case for 'if ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq " EmptyString"))'.2879 # FIXME: Add the case for 'if ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString"))'. 2878 2880 return "ustringToString($value.isEmpty() ? UString() : $value.toString(exec)->value(exec))"; 2879 2881 } -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r106737 r106776 3310 3310 3311 3311 if ($parameterIndex >= 0 && $type eq "V8Parameter") { 3312 # FIXME: This implements [TreatNullAs=NullString] and [TreatUndefinedAs=NullString], 3313 # but the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString]. 3312 3314 my $mode = ""; 3313 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq " EmptyString") and ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "EmptyString")) {3315 if (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") and ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString")) { 3314 3316 $mode = "WithUndefinedOrNullCheck"; 3315 } elsif (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq " EmptyString") or $signature->extendedAttributes->{"Reflect"}) {3317 } elsif (($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") or $signature->extendedAttributes->{"Reflect"}) { 3316 3318 $mode = "WithNullCheck"; 3317 3319 } 3318 # FIXME: Add the case for 'elsif ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq " EmptyString"))'.3320 # FIXME: Add the case for 'elsif ($signature->extendedAttributes->{"TreatUndefinedAs"} and $signature->extendedAttributes->{"TreatUndefinedAs"} eq "NullString"))'. 3319 3321 $type .= "<$mode>"; 3320 3322 } -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r106666 r106776 192 192 void convert2(in [ConvertNullStringTo=Undefined] b); 193 193 void convert3(in [ConvertNullStringTo=False] c); 194 void convert4(in [TreatNullAs= EmptyString] d);195 void convert5(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] e);194 void convert4(in [TreatNullAs=NullString] d); 195 void convert5(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] e); 196 196 197 197 attribute SVGPoint mutablePoint; -
trunk/Source/WebCore/css/CSSCharsetRule.idl
r106534 r106776 26 26 readonly attribute [ConvertNullStringTo=Null] DOMString encoding; 27 27 #else 28 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString encoding28 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString encoding 29 29 setter raises(DOMException); 30 30 #endif -
trunk/Source/WebCore/css/CSSPageRule.idl
r106534 r106776 24 24 interface CSSPageRule : CSSRule { 25 25 26 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString selectorText;26 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectorText; 27 27 28 28 readonly attribute CSSStyleDeclaration style; -
trunk/Source/WebCore/css/CSSRule.idl
r106737 r106776 44 44 readonly attribute unsigned short type; 45 45 46 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString cssText46 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString cssText 47 47 setter raises (DOMException); 48 48 -
trunk/Source/WebCore/css/CSSStyleDeclaration.idl
r106773 r106776 31 31 V8DependentLifetime 32 32 ] CSSStyleDeclaration { 33 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString cssText33 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString cssText 34 34 setter raises(DOMException); 35 35 … … 40 40 [ConvertNullStringTo=Null] DOMString getPropertyPriority(in [Optional=CallWithDefaultValue] DOMString propertyName); 41 41 [ObjCLegacyUnnamedParameters] void setProperty(in [Optional=CallWithDefaultValue] DOMString propertyName, 42 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString value,42 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString value, 43 43 in [Optional=CallWithDefaultValue] DOMString priority) 44 44 raises(DOMException); -
trunk/Source/WebCore/css/CSSStyleRule.idl
r106534 r106776 24 24 interface CSSStyleRule : CSSRule { 25 25 26 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString selectorText;26 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectorText; 27 27 28 28 readonly attribute CSSStyleDeclaration style; -
trunk/Source/WebCore/css/CSSValue.idl
r106737 r106776 35 35 const unsigned short CSS_CUSTOM = 3; 36 36 37 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString cssText37 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString cssText 38 38 setter raises(DOMException); 39 39 -
trunk/Source/WebCore/css/MediaList.idl
r106737 r106776 32 32 ] MediaList { 33 33 34 attribute [TreatNullAs= EmptyString, ConvertNullStringTo=Null] DOMString mediaText34 attribute [TreatNullAs=NullString, ConvertNullStringTo=Null] DOMString mediaText 35 35 setter raises(DOMException); 36 36 readonly attribute unsigned long length; -
trunk/Source/WebCore/css/WebKitCSSKeyframesRule.idl
r106534 r106776 34 34 ] WebKitCSSKeyframesRule : CSSRule { 35 35 36 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString name;36 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString name; 37 37 readonly attribute CSSRuleList cssRules; 38 38 -
trunk/Source/WebCore/dom/Attr.idl
r106737 r106776 32 32 readonly attribute boolean specified; 33 33 34 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString value34 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString value 35 35 setter raises(DOMException); 36 36 -
trunk/Source/WebCore/dom/CharacterData.idl
r106660 r106776 22 22 interface CharacterData : Node { 23 23 24 attribute [TreatNullAs= EmptyString] DOMString data24 attribute [TreatNullAs=NullString] DOMString data 25 25 setter raises(DOMException); 26 26 -
trunk/Source/WebCore/dom/DOMImplementation.idl
r106737 r106776 29 29 30 30 [ObjCLegacyUnnamedParameters] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature, 31 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString version);31 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString version); 32 32 33 33 // DOM Level 2 34 34 35 [ObjCLegacyUnnamedParameters] DocumentType createDocumentType(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName,36 in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString publicId,37 in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString systemId)35 [ObjCLegacyUnnamedParameters] DocumentType createDocumentType(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName, 36 in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString publicId, 37 in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString systemId) 38 38 raises(DOMException); 39 [ObjCLegacyUnnamedParameters] Document createDocument(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,40 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName,41 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DocumentType doctype)39 [ObjCLegacyUnnamedParameters] Document createDocument(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 40 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName, 41 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DocumentType doctype) 42 42 raises(DOMException); 43 43 -
trunk/Source/WebCore/dom/Document.idl
r106737 r106776 32 32 readonly attribute Element documentElement; 33 33 34 [ReturnsNew] Element createElement(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString tagName)34 [ReturnsNew] Element createElement(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString tagName) 35 35 raises (DOMException); 36 36 DocumentFragment createDocumentFragment(); … … 53 53 in [Optional] boolean deep) 54 54 raises (DOMException); 55 [ObjCLegacyUnnamedParameters, ReturnsNew] Element createElementNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,56 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName)57 raises (DOMException); 58 [ObjCLegacyUnnamedParameters, ReturnsNew] Attr createAttributeNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,59 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString qualifiedName)60 raises (DOMException); 61 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,55 [ObjCLegacyUnnamedParameters, ReturnsNew] Element createElementNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 56 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName) 57 raises (DOMException); 58 [ObjCLegacyUnnamedParameters, ReturnsNew] Attr createAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 59 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName) 60 raises (DOMException); 61 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 62 62 in [Optional=CallWithDefaultValue] DOMString localName); 63 63 Element getElementById(in [Optional=CallWithDefaultValue] DOMString elementId); … … 68 68 69 69 readonly attribute [ConvertNullStringTo=Null] DOMString xmlEncoding; 70 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString xmlVersion70 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString xmlVersion 71 71 setter raises (DOMException); 72 72 attribute boolean xmlStandalone … … 76 76 raises (DOMException); 77 77 78 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString documentURI;78 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString documentURI; 79 79 80 80 // DOM Level 2 Events (DocumentEvents interface) … … 129 129 boolean execCommand(in [Optional=CallWithDefaultValue] DOMString command, 130 130 in [Optional=CallWithDefaultValue] boolean userInterface, 131 in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString value);131 in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString value); 132 132 133 133 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C … … 146 146 // Moved down from HTMLDocument 147 147 148 attribute [TreatNullAs= EmptyString] DOMString title;148 attribute [TreatNullAs=NullString] DOMString title; 149 149 readonly attribute DOMString referrer; 150 150 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT 151 attribute [TreatNullAs= EmptyString] DOMString domain151 attribute [TreatNullAs=NullString] DOMString domain 152 152 setter raises (DOMException); 153 153 #else … … 156 156 readonly attribute DOMString URL; 157 157 158 attribute [TreatNullAs= EmptyString] DOMString cookie158 attribute [TreatNullAs=NullString] DOMString cookie 159 159 setter raises (DOMException), 160 160 getter raises (DOMException); … … 176 176 177 177 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA 178 NodeList getItems(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString, Optional=CallWithDefaultValue] DOMString typeNames);178 NodeList getItems(in [TreatNullAs=NullString, TreatUndefinedAs=NullString, Optional=CallWithDefaultValue] DOMString typeNames); 179 179 #endif 180 180 … … 185 185 // IE extensions 186 186 187 attribute [ConvertNullStringTo=Undefined, TreatNullAs= EmptyString] DOMString charset;187 attribute [ConvertNullStringTo=Undefined, TreatNullAs=NullString] DOMString charset; 188 188 readonly attribute [ConvertNullStringTo=Undefined] DOMString defaultCharset; 189 189 readonly attribute [ConvertNullStringTo=Undefined] DOMString readyState; … … 203 203 204 204 readonly attribute [ConvertNullStringTo=Null] DOMString preferredStylesheetSet; 205 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString selectedStylesheetSet;205 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectedStylesheetSet; 206 206 207 207 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT -
trunk/Source/WebCore/dom/Element.idl
r106737 r106776 44 44 // DOM Level 2 Core 45 45 46 [ObjCLegacyUnnamedParameters] DOMString getAttributeNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,46 [ObjCLegacyUnnamedParameters] DOMString getAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 47 47 in [Optional=CallWithDefaultValue] DOMString localName); 48 [ObjCLegacyUnnamedParameters] void setAttributeNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,48 [ObjCLegacyUnnamedParameters] void setAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 49 49 in [Optional=CallWithDefaultValue] DOMString qualifiedName, 50 50 in [Optional=CallWithDefaultValue] DOMString value) 51 51 raises(DOMException); 52 [ObjCLegacyUnnamedParameters] void removeAttributeNS(in [TreatNullAs= EmptyString] DOMString namespaceURI,52 [ObjCLegacyUnnamedParameters] void removeAttributeNS(in [TreatNullAs=NullString] DOMString namespaceURI, 53 53 in DOMString localName); 54 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,54 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 55 55 in [Optional=CallWithDefaultValue] DOMString localName); 56 [ObjCLegacyUnnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,56 [ObjCLegacyUnnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 57 57 in [Optional=CallWithDefaultValue] DOMString localName); 58 58 Attr setAttributeNodeNS(in [Optional=CallWithDefaultValue] Attr newAttr) 59 59 raises(DOMException); 60 60 boolean hasAttribute(in DOMString name); 61 [ObjCLegacyUnnamedParameters] boolean hasAttributeNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,61 [ObjCLegacyUnnamedParameters] boolean hasAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 62 62 in [Optional=CallWithDefaultValue] DOMString localName); 63 63 -
trunk/Source/WebCore/dom/NamedNodeMap.idl
r106737 r106776 43 43 // Introduced in DOM Level 2: 44 44 45 [ObjCLegacyUnnamedParameters] Node getNamedItemNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,45 [ObjCLegacyUnnamedParameters] Node getNamedItemNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 46 46 in [Optional=CallWithDefaultValue] DOMString localName) 47 47 // FIXME: the implementation does take an exceptioncode parameter. … … 51 51 raises(DOMException); 52 52 53 [ObjCLegacyUnnamedParameters] Node removeNamedItemNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,53 [ObjCLegacyUnnamedParameters] Node removeNamedItemNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 54 54 in [Optional=CallWithDefaultValue] DOMString localName) 55 55 raises(DOMException); -
trunk/Source/WebCore/dom/Node.idl
r106737 r106776 55 55 56 56 // FIXME: the spec says this can also raise on retrieval. 57 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString nodeValue57 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString nodeValue 58 58 setter raises(DOMException); 59 59 … … 86 86 87 87 [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature, 88 in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString version);88 in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString version); 89 89 90 90 readonly attribute [ConvertNullStringTo=Null] DOMString namespaceURI; 91 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString prefix91 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString prefix 92 92 setter raises(DOMException); 93 93 readonly attribute [ConvertNullStringTo=Null] DOMString localName; … … 100 100 101 101 // FIXME: the spec says this can also raise on retrieval. 102 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString textContent102 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString textContent 103 103 setter raises(DOMException); 104 104 105 105 boolean isSameNode(in [Optional=CallWithDefaultValue] Node other); 106 106 boolean isEqualNode(in [Optional=CallWithDefaultValue] Node other); 107 [ConvertNullStringTo=Null] DOMString lookupPrefix(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI);108 boolean isDefaultNamespace(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI);109 [ConvertNullStringTo=Null] DOMString lookupNamespaceURI(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString prefix);107 [ConvertNullStringTo=Null] DOMString lookupPrefix(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI); 108 boolean isDefaultNamespace(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI); 109 [ConvertNullStringTo=Null] DOMString lookupNamespaceURI(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString prefix); 110 110 111 111 // DocumentPosition -
trunk/Source/WebCore/dom/ProcessingInstruction.idl
r106534 r106776 26 26 27 27 readonly attribute [ConvertNullStringTo=Null] DOMString target; 28 attribute [ConvertNullStringTo=Null, TreatNullAs= EmptyString] DOMString data28 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString data 29 29 setter raises(DOMException); 30 30 -
trunk/Source/WebCore/dom/ShadowRoot.idl
r106666 r106776 37 37 NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString className); 38 38 NodeList getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString tagName); 39 NodeList getElementsByTagNameNS(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString namespaceURI,39 NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 40 40 in [Optional=CallWithDefaultValue] DOMString localName); 41 41 }; -
trunk/Source/WebCore/fileapi/Blob.idl
r106737 r106776 41 41 #if !defined(LANGUAGE_OBJECTIVE_C) 42 42 #if defined(ENABLE_BLOB) && ENABLE_BLOB 43 Blob webkitSlice(in [Optional] long long start, in [Optional] long long end, in [Optional, TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString contentType);43 Blob webkitSlice(in [Optional] long long start, in [Optional] long long end, in [Optional, TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString contentType); 44 44 #endif 45 45 #endif -
trunk/Source/WebCore/fileapi/DirectoryEntry.idl
r106737 r106776 37 37 ] DirectoryEntry : Entry { 38 38 DirectoryReader createReader(); 39 [Custom] void getFile(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString path, in [Optional] WebKitFlags flags, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback);40 [Custom] void getDirectory(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString path, in [Optional] WebKitFlags flags, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback);39 [Custom] void getFile(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in [Optional] WebKitFlags flags, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 40 [Custom] void getDirectory(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in [Optional] WebKitFlags flags, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 41 41 void removeRecursively(in [Callback] VoidCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 42 42 }; -
trunk/Source/WebCore/fileapi/DirectoryEntrySync.idl
r106737 r106776 37 37 ] DirectoryEntrySync : EntrySync { 38 38 DirectoryReaderSync createReader() raises (FileException); 39 [Custom] FileEntrySync getFile(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString path, in WebKitFlags flags) raises (FileException);40 [Custom] DirectoryEntrySync getDirectory(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString path, in WebKitFlags flags) raises (FileException);39 [Custom] FileEntrySync getFile(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in WebKitFlags flags) raises (FileException); 40 [Custom] DirectoryEntrySync getDirectory(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString path, in WebKitFlags flags) raises (FileException); 41 41 void removeRecursively() raises (FileException); 42 42 }; -
trunk/Source/WebCore/fileapi/Entry.idl
r106737 r106776 42 42 43 43 void getMetadata(in [Callback] MetadataCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 44 void moveTo(in DirectoryEntry parent, in [Optional, TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString name, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback);45 void copyTo(in DirectoryEntry parent, in [Optional, TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString name, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback);44 void moveTo(in DirectoryEntry parent, in [Optional, TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 45 void copyTo(in DirectoryEntry parent, in [Optional, TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name, in [Optional, Callback] EntryCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); 46 46 DOMString toURL(); 47 47 void remove(in [Callback] VoidCallback successCallback, in [Optional, Callback] ErrorCallback errorCallback); -
trunk/Source/WebCore/fileapi/EntrySync.idl
r106737 r106776 42 42 43 43 Metadata getMetadata() raises (FileException); 44 EntrySync moveTo(in DirectoryEntrySync parent, in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString name) raises (FileException);45 EntrySync copyTo(in DirectoryEntrySync parent, in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString name) raises (FileException);44 EntrySync moveTo(in DirectoryEntrySync parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException); 45 EntrySync copyTo(in DirectoryEntrySync parent, in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString name) raises (FileException); 46 46 DOMString toURL(); 47 47 void remove() raises (FileException); -
trunk/Source/WebCore/fileapi/WebKitBlobBuilder.idl
r106737 r106776 36 36 ] WebKitBlobBuilder { 37 37 #if !defined(LANGUAGE_OBJECTIVE_C) 38 Blob getBlob(in [Optional, TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString contentType);38 Blob getBlob(in [Optional, TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString contentType); 39 39 #endif 40 40 void append(in Blob blob); … … 42 42 void append(in ArrayBuffer arrayBuffer); 43 43 #endif 44 void append(in DOMString value, in [Optional, TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString endings) raises (DOMException);44 void append(in DOMString value, in [Optional, TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString endings) raises (DOMException); 45 45 }; 46 46 -
trunk/Source/WebCore/html/HTMLAnchorElement.idl
r106645 r106776 44 44 readonly attribute DOMString search; 45 45 #else 46 attribute [TreatNullAs= EmptyString] DOMString hash;47 attribute [TreatNullAs= EmptyString] DOMString host;48 attribute [TreatNullAs= EmptyString] DOMString hostname;49 attribute [TreatNullAs= EmptyString] DOMString pathname;50 attribute [TreatNullAs= EmptyString] DOMString port;51 attribute [TreatNullAs= EmptyString] DOMString protocol;52 attribute [TreatNullAs= EmptyString] DOMString search;46 attribute [TreatNullAs=NullString] DOMString hash; 47 attribute [TreatNullAs=NullString] DOMString host; 48 attribute [TreatNullAs=NullString] DOMString hostname; 49 attribute [TreatNullAs=NullString] DOMString pathname; 50 attribute [TreatNullAs=NullString] DOMString port; 51 attribute [TreatNullAs=NullString] DOMString protocol; 52 attribute [TreatNullAs=NullString] DOMString search; 53 53 54 readonly attribute [TreatNullAs= EmptyString] DOMString origin;54 readonly attribute [TreatNullAs=NullString] DOMString origin; 55 55 #endif 56 56 -
trunk/Source/WebCore/html/HTMLButtonElement.idl
r106575 r106776 25 25 26 26 attribute [Reflect, URL] DOMString formAction; 27 attribute [TreatNullAs= EmptyString] DOMString formEnctype;28 attribute [TreatNullAs= EmptyString] DOMString formMethod;27 attribute [TreatNullAs=NullString] DOMString formEnctype; 28 attribute [TreatNullAs=NullString] DOMString formMethod; 29 29 attribute [Reflect] boolean formNoValidate; 30 30 attribute [Reflect] DOMString formTarget; … … 40 40 readonly attribute DOMString validationMessage; 41 41 boolean checkValidity(); 42 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);42 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 43 43 44 44 void click(); -
trunk/Source/WebCore/html/HTMLCanvasElement.idl
r106575 r106776 34 34 attribute long height; 35 35 36 [Custom] DOMString toDataURL(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString type)36 [Custom] DOMString toDataURL(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString type) 37 37 raises(DOMException); 38 38 -
trunk/Source/WebCore/html/HTMLDocument.idl
r106773 r106776 49 49 readonly attribute long height; 50 50 #endif 51 attribute [TreatNullAs= EmptyString] DOMString dir;52 attribute [TreatNullAs= EmptyString] DOMString designMode;51 attribute [TreatNullAs=NullString] DOMString dir; 52 attribute [TreatNullAs=NullString] DOMString designMode; 53 53 readonly attribute DOMString compatMode; 54 54 … … 57 57 58 58 // Deprecated attributes 59 attribute [TreatNullAs= EmptyString] DOMString bgColor;60 attribute [TreatNullAs= EmptyString] DOMString fgColor;61 attribute [TreatNullAs= EmptyString] DOMString alinkColor;62 attribute [TreatNullAs= EmptyString] DOMString linkColor;63 attribute [TreatNullAs= EmptyString] DOMString vlinkColor;59 attribute [TreatNullAs=NullString] DOMString bgColor; 60 attribute [TreatNullAs=NullString] DOMString fgColor; 61 attribute [TreatNullAs=NullString] DOMString alinkColor; 62 attribute [TreatNullAs=NullString] DOMString linkColor; 63 attribute [TreatNullAs=NullString] DOMString vlinkColor; 64 64 }; 65 65 -
trunk/Source/WebCore/html/HTMLElement.idl
r106534 r106776 41 41 42 42 // Extensions 43 attribute [TreatNullAs= EmptyString] DOMString innerHTML43 attribute [TreatNullAs=NullString] DOMString innerHTML 44 44 setter raises(DOMException); 45 attribute [TreatNullAs= EmptyString] DOMString innerText45 attribute [TreatNullAs=NullString] DOMString innerText 46 46 setter raises(DOMException); 47 attribute [TreatNullAs= EmptyString] DOMString outerHTML47 attribute [TreatNullAs=NullString] DOMString outerHTML 48 48 setter raises(DOMException); 49 attribute [TreatNullAs= EmptyString] DOMString outerText49 attribute [TreatNullAs=NullString] DOMString outerText 50 50 setter raises(DOMException); 51 51 … … 62 62 readonly attribute HTMLCollection children; 63 63 64 attribute [TreatNullAs= EmptyString] DOMString contentEditable64 attribute [TreatNullAs=NullString] DOMString contentEditable 65 65 setter raises(DOMException); 66 66 readonly attribute boolean isContentEditable; -
trunk/Source/WebCore/html/HTMLFieldSetElement.idl
r106575 r106776 26 26 readonly attribute DOMString validationMessage; 27 27 boolean checkValidity(); 28 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);28 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 29 29 }; 30 30 -
trunk/Source/WebCore/html/HTMLFormElement.idl
r106534 r106776 32 32 attribute [Reflect=accept_charset] DOMString acceptCharset; 33 33 attribute [Reflect, URL] DOMString action; 34 attribute [TreatNullAs= EmptyString] DOMString encoding;35 attribute [TreatNullAs= EmptyString] DOMString enctype;36 attribute [TreatNullAs= EmptyString] DOMString method;34 attribute [TreatNullAs=NullString] DOMString encoding; 35 attribute [TreatNullAs=NullString] DOMString enctype; 36 attribute [TreatNullAs=NullString] DOMString method; 37 37 attribute [Reflect] DOMString target; 38 38 attribute [Reflect] DOMString autocomplete; -
trunk/Source/WebCore/html/HTMLFrameElement.idl
r106536 r106776 45 45 #endif 46 46 47 attribute [TreatNullAs= EmptyString, CustomSetter] DOMString location;47 attribute [TreatNullAs=NullString, CustomSetter] DOMString location; 48 48 49 49 readonly attribute long width; -
trunk/Source/WebCore/html/HTMLInputElement.idl
r106666 r106776 22 22 23 23 interface HTMLInputElement : HTMLElement { 24 attribute [TreatNullAs= EmptyString] DOMString defaultValue;24 attribute [TreatNullAs=NullString] DOMString defaultValue; 25 25 attribute [Reflect=checked] boolean defaultChecked; 26 26 attribute [Reflect] DOMString dirName; 27 27 readonly attribute HTMLFormElement form; 28 28 attribute [Reflect, URL] DOMString formAction; 29 attribute [TreatNullAs= EmptyString] DOMString formEnctype;30 attribute [TreatNullAs= EmptyString] DOMString formMethod;29 attribute [TreatNullAs=NullString] DOMString formEnctype; 30 attribute [TreatNullAs=NullString] DOMString formMethod; 31 31 attribute [Reflect] boolean formNoValidate; 32 32 attribute [Reflect] DOMString formTarget; … … 58 58 attribute [Reflect, URL] DOMString src; 59 59 attribute [Reflect] DOMString step; 60 attribute [TreatNullAs= EmptyString] DOMString type; // readonly dropped as part of DOM level 260 attribute [TreatNullAs=NullString] DOMString type; // readonly dropped as part of DOM level 2 61 61 attribute [Reflect] DOMString useMap; 62 attribute [TreatNullAs= EmptyString] DOMString value;62 attribute [TreatNullAs=NullString] DOMString value; 63 63 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 64 64 attribute Date valueAsDate setter raises(DOMException); … … 74 74 readonly attribute DOMString validationMessage; 75 75 boolean checkValidity(); 76 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);76 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 77 77 void select(); 78 78 void click(); 79 79 80 80 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT 81 void setValueForUser(in [TreatNullAs= EmptyString] DOMString value);81 void setValueForUser(in [TreatNullAs=NullString] DOMString value); 82 82 #endif 83 83 -
trunk/Source/WebCore/html/HTMLKeygenElement.idl
r106575 r106776 45 45 readonly attribute DOMString validationMessage; 46 46 boolean checkValidity(); 47 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);47 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 48 48 49 49 readonly attribute NodeList labels; -
trunk/Source/WebCore/html/HTMLMediaElement.idl
r106666 r106776 118 118 #endif 119 119 120 attribute [Reflect, TreatNullAs= EmptyString, ConvertNullStringToNull] DOMString mediaGroup;120 attribute [Reflect, TreatNullAs=NullString, ConvertNullStringToNull] DOMString mediaGroup; 121 121 attribute [CustomSetter] MediaController controller; 122 122 }; -
trunk/Source/WebCore/html/HTMLObjectElement.idl
r106575 r106776 47 47 readonly attribute DOMString validationMessage; 48 48 boolean checkValidity(); 49 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);49 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 50 50 51 51 // Introduced in DOM Level 2: -
trunk/Source/WebCore/html/HTMLOutputElement.idl
r106575 r106776 30 30 31 31 readonly attribute DOMString type; 32 attribute [TreatNullAs= EmptyString] DOMString defaultValue;33 attribute [TreatNullAs= EmptyString] DOMString value;32 attribute [TreatNullAs=NullString] DOMString defaultValue; 33 attribute [TreatNullAs=NullString] DOMString value; 34 34 35 35 readonly attribute boolean willValidate; … … 37 37 readonly attribute DOMString validationMessage; 38 38 boolean checkValidity(); 39 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);39 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 40 40 41 41 readonly attribute NodeList labels; -
trunk/Source/WebCore/html/HTMLScriptElement.idl
r106534 r106776 21 21 22 22 interface HTMLScriptElement : HTMLElement { 23 attribute [TreatNullAs= EmptyString] DOMString text;23 attribute [TreatNullAs=NullString] DOMString text; 24 24 attribute [Reflect=for] DOMString htmlFor; 25 25 attribute [Reflect] DOMString event; -
trunk/Source/WebCore/html/HTMLSelectElement.idl
r106660 r106776 27 27 readonly attribute DOMString type; 28 28 attribute long selectedIndex; 29 attribute [TreatNullAs= EmptyString] DOMString value;29 attribute [TreatNullAs=NullString] DOMString value; 30 30 31 31 // Modified in DOM Level 2: … … 41 41 readonly attribute DOMString validationMessage; 42 42 boolean checkValidity(); 43 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);43 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 44 44 45 45 // Modified in DOM Level 2: … … 49 49 attribute [Reflect] boolean autofocus; 50 50 attribute boolean multiple; 51 attribute [TreatNullAs= EmptyString] DOMString name;51 attribute [TreatNullAs=NullString] DOMString name; 52 52 attribute [Reflect] boolean required; 53 53 attribute long size; -
trunk/Source/WebCore/html/HTMLTextAreaElement.idl
r106575 r106776 23 23 24 24 interface HTMLTextAreaElement : HTMLElement { 25 attribute [TreatNullAs= EmptyString] DOMString defaultValue;25 attribute [TreatNullAs=NullString] DOMString defaultValue; 26 26 readonly attribute HTMLFormElement form; 27 27 readonly attribute ValidityState validity; … … 31 31 attribute [Reflect] boolean autofocus; 32 32 attribute long maxLength setter raises(DOMException); 33 attribute [TreatNullAs= EmptyString] DOMString name;33 attribute [TreatNullAs=NullString] DOMString name; 34 34 attribute [Reflect] DOMString placeholder; 35 35 attribute [Reflect] boolean readOnly; … … 38 38 attribute [Reflect] DOMString wrap; 39 39 readonly attribute DOMString type; 40 attribute [TreatNullAs= EmptyString] DOMString value;40 attribute [TreatNullAs=NullString] DOMString value; 41 41 readonly attribute unsigned long textLength; 42 42 … … 46 46 readonly attribute DOMString validationMessage; 47 47 boolean checkValidity(); 48 void setCustomValidity(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString error);48 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 49 49 50 50 // WinIE & FireFox extension: -
trunk/Source/WebCore/html/HTMLTitleElement.idl
r106534 r106776 21 21 22 22 interface HTMLTitleElement : HTMLElement { 23 attribute [TreatNullAs= EmptyString] DOMString text;23 attribute [TreatNullAs=NullString] DOMString text; 24 24 }; 25 25 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl
r106534 r106776 50 50 51 51 attribute float globalAlpha; 52 attribute [TreatNullAs= EmptyString] DOMString globalCompositeOperation;52 attribute [TreatNullAs=NullString] DOMString globalCompositeOperation; 53 53 54 54 CanvasGradient createLinearGradient(in [Optional=CallWithDefaultValue] float x0, … … 66 66 67 67 attribute float lineWidth; 68 attribute [TreatNullAs= EmptyString] DOMString lineCap;69 attribute [TreatNullAs= EmptyString] DOMString lineJoin;68 attribute [TreatNullAs=NullString] DOMString lineCap; 69 attribute [TreatNullAs=NullString] DOMString lineJoin; 70 70 attribute float miterLimit; 71 71 … … 73 73 attribute float shadowOffsetY; 74 74 attribute float shadowBlur; 75 attribute [TreatNullAs= EmptyString] DOMString shadowColor;75 attribute [TreatNullAs=NullString] DOMString shadowColor; 76 76 77 77 // FIXME: These attributes should also be implemented for V8. … … 205 205 raises(DOMException); 206 206 207 CanvasPattern createPattern(in HTMLCanvasElement canvas, in [TreatNullAs= EmptyString] DOMString repetitionType)208 raises (DOMException); 209 CanvasPattern createPattern(in HTMLImageElement image, in [TreatNullAs= EmptyString] DOMString repetitionType)207 CanvasPattern createPattern(in HTMLCanvasElement canvas, in [TreatNullAs=NullString] DOMString repetitionType) 208 raises (DOMException); 209 CanvasPattern createPattern(in HTMLImageElement image, in [TreatNullAs=NullString] DOMString repetitionType) 210 210 raises (DOMException); 211 211 ImageData createImageData(in ImageData imagedata) -
trunk/Source/WebCore/page/Console.idl
r106737 r106776 52 52 #endif 53 53 54 void time(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString title);55 [CustomArgumentHandling] void timeEnd(in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString] DOMString title);54 void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString title); 55 [CustomArgumentHandling] void timeEnd(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString title); 56 56 [CustomArgumentHandling] void timeStamp(); 57 57 [CustomArgumentHandling] void group(); -
trunk/Source/WebCore/page/DOMWindow.idl
r106773 r106776 82 82 boolean confirm(in [Optional=CallWithDefaultValue] DOMString message); 83 83 [ConvertNullStringTo=Null] DOMString prompt(in [Optional=CallWithDefaultValue] DOMString message, 84 in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString defaultValue);84 in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString defaultValue); 85 85 86 86 boolean find(in [Optional=CallWithDefaultValue] DOMString string, … … 148 148 // DOM Level 2 Style Interface 149 149 CSSStyleDeclaration getComputedStyle(in [Optional=CallWithDefaultValue] Element element, 150 in [TreatNullAs= EmptyString, TreatUndefinedAs=EmptyString,Optional=CallWithDefaultValue] DOMString pseudoElement);150 in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString pseudoElement); 151 151 152 152 // WebKit extensions … … 229 229 230 230 // Base64 231 DOMString atob(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString string)231 DOMString atob(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString string) 232 232 raises(DOMException); 233 DOMString btoa(in [TreatNullAs= EmptyString,Optional=CallWithDefaultValue] DOMString string)233 DOMString btoa(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString string) 234 234 raises(DOMException); 235 235 -
trunk/Source/WebCore/storage/StorageEvent.idl
r106644 r106776 39 39 in [Optional=CallWithDefaultValue] boolean cancelableArg, 40 40 in [Optional=CallWithDefaultValue] DOMString keyArg, 41 in [Optional=CallWithDefaultValue,TreatNullAs= EmptyString] DOMString oldValueArg,42 in [Optional=CallWithDefaultValue,TreatNullAs= EmptyString] DOMString newValueArg,41 in [Optional=CallWithDefaultValue,TreatNullAs=NullString] DOMString oldValueArg, 42 in [Optional=CallWithDefaultValue,TreatNullAs=NullString] DOMString newValueArg, 43 43 in [Optional=CallWithDefaultValue] DOMString urlArg, 44 44 in [Optional=CallWithDefaultValue] Storage storageAreaArg); -
trunk/Source/WebCore/svg/SVGAngle.idl
r106534 r106776 37 37 attribute [StrictTypeChecking] float valueInSpecifiedUnits; 38 38 39 attribute [TreatNullAs= EmptyString] DOMString valueAsString39 attribute [TreatNullAs=NullString] DOMString valueAsString 40 40 setter raises(DOMException); 41 41 -
trunk/Source/WebCore/svg/SVGElement.idl
r106534 r106776 28 28 ] SVGElement : Element { 29 29 attribute [Reflect] DOMString id; 30 attribute [TreatNullAs= EmptyString] DOMString xmlbase setter raises(DOMException);30 attribute [TreatNullAs=NullString] DOMString xmlbase setter raises(DOMException); 31 31 readonly attribute SVGSVGElement ownerSVGElement; 32 32 readonly attribute SVGElement viewportElement; -
trunk/Source/WebCore/svg/SVGLength.idl
r106534 r106776 45 45 46 46 attribute [StrictTypeChecking] float valueInSpecifiedUnits; 47 attribute [TreatNullAs= EmptyString, StrictTypeChecking] DOMString valueAsString47 attribute [TreatNullAs=NullString, StrictTypeChecking] DOMString valueAsString 48 48 setter raises(DOMException); 49 49 -
trunk/Source/WebCore/svg/SVGScriptElement.idl
r106534 r106776 31 31 SVGURIReference, 32 32 SVGExternalResourcesRequired { 33 attribute [TreatNullAs= EmptyString] DOMString type33 attribute [TreatNullAs=NullString] DOMString type 34 34 /*setter raises(DOMException)*/; 35 35 };
Note: See TracChangeset
for help on using the changeset viewer.