Changes between Version 130 and Version 131 of WebKitIDL


Ignore:
Timestamp:
Jul 8, 2013, 9:57:30 AM (11 years ago)
Author:
stavila@adobe.com
Comment:

Added TreatReturnedNullObjectAs attribute.

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v130 v131  
    1010 - [#TreatNullAs TreatNullAs(a,p), TreatUndefinedAs(a,p)][[br]]
    1111 - [#TreatReturnedNullStringAs TreatReturnedNullStringAs(m,a)][[br]]
     12 - [#TreatReturnedNullObjectAs TreatReturnedNullObjectAs(m)][[br]]
    1213 - [#Default Default(p)][[br]]
    1314 - [#Clamp Clamp(a,p)][[br]]
     
    273274Note that what should be specified on `[TreatReturnedNullStringAs=...]` depends on the spec of each attribute or method.
    274275
     276== `[TreatReturnedNullObjectAs]`(m) == #TreatReturnedNullObjectAs
     277
     278Summary: `[TreatReturnedNullObjectAs]` controls the behavior when a WebKit null object is returned from the WebCore implementation.
     279
     280Usage: The possible usage is `[TreatReturnedNullObjectAs=Undefined]`.
     281It can be specified on methods that return an object:
     282{{{
     283    [TreatReturnedNullObjectAs=Undefined] Object func();
     284}}}
     285
     286 * `[TreatReturnedNullObjectAs=Undefined]` indicates that if the returned object is null, the returned value is treated as a JavaScript undefined.
     287
     288Without `[TreatReturnedNullObjectAs=Undefined]`, if the returned object is null, then the returned value is treated as a JavaScript null.
     289
    275290== `[Default]`(p) == #Default
    276291