Changes between Version 145 and Version 146 of WebKitIDL


Ignore:
Timestamp:
Feb 25, 2016 3:14:56 PM (5 years ago)
Author:
Chris Dumez
Comment:

[TreatReturnedNullStringAs=X] was dropped

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v145 v146  
    99[#IDLAttributes IDL attributes]
    1010 - [#TreatNullAs TreatNullAs(a,p), TreatUndefinedAs(a,p)][[br]]
    11  - [#TreatReturnedNullStringAs TreatReturnedNullStringAs(m,a)][[br]]
    1211 - [#Default Default(p)][[br]]
    1312 - [#Clamp Clamp(a,p)][[br]]
     
    257256`[TreatUndefinedAs=NullString]` must be used with `[TreatNullAs=NullString]`, i.e. `[TreatNullAs=NullString, TreatUndefinedAs=NullString]`.
    258257
    259 == `[TreatReturnedNullStringAs]`(m,a) == #TreatReturnedNullStringAs
    260 
    261 Summary: `[TreatReturnedNullStringAs]` controls the behavior when a WebKit null string is returned from the WebCore implementation.
    262 
    263 Usage: The possible usage is `[TreatReturnedNullStringAs=Undefined]`.
    264 They can be specified on DOMString attributes or methods that return a DOMString value:
    265 {{{
    266     [TreatReturnedNullStringAs= Undefined] attribute DOMString str;
    267     [TreatReturnedNullStringAs=Undefined] DOMString func();
    268 }}}
    269 
    270  * `[TreatReturnedNullStringAs=Undefined]` indicates that if the returned DOMString is a WebKit null string, the returned value is treated as a JavaScript undefined.
    271 
    272 Without `[TreatReturnedNullStringAs=...]`, if the returned DOMString is a WebKit null string, then the returned value is treated as a JavaScript empty string ''.
    273 
    274258== `[Default]`(p) == #Default
    275259