Changes between Version 136 and Version 137 of WebKitIDL


Ignore:
Timestamp:
Sep 16, 2015 4:07:26 PM (6 years ago)
Author:
Chris Dumez
Comment:

ReturnedNewObject -> NewObject

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v136 v137  
    1616 - [#CallWith CallWith(m,a)][[br]]
    1717 - [#StrictTypeChecking StrictTypeChecking(m,a,p)][[br]]
    18  - [#ReturnNewObject ReturnNewObject(m,a)][[br]]
     18 - [#NewObject NewObject(m,a)][[br]]
    1919 - [#ImplementedAs ImplementedAs(m,a)][[br]]
    2020 - [#Reflect Reflect(a)][[br]]
     
    500500}}}
    501501
    502 == `[ReturnNewObject]`(m,a) == #ReturnNewObject
    503 
    504 Summary: `[ReturnNewObject]` controls whether WebCore can return a cached wrapped object or WebCore needs to return a newly created wrapped object every time.
    505 
    506 Usage: `[ReturnNewObject]` can be specified on methods or attributes:
    507 {{{
    508     [ReturnNewObject] attribute Node node;
    509     [ReturnNewObject] Node createTextNode();
    510 }}}
    511 
    512 Without `[ReturnNewObject]`, JavaScriptCore cache a wrapped object for performance.
     502== `[NewObject]`(m,a) == #NewObject
     503
     504 * [https://heycam.github.io/webidl/#NewObject The spec of NewObject]
     505
     506Summary: `[NewObject]` controls whether WebCore can return a cached wrapped object or WebCore needs to return a newly created wrapped object every time.
     507
     508Usage: `[NewObject]` can be specified on methods or attributes:
     509{{{
     510    [NewObject] attribute Node node;
     511    [NewObject] Node createTextNode();
     512}}}
     513
     514Without `[NewObject]`, JavaScriptCore cache a wrapped object for performance.
    513515For example, consider the case where `node.firstChild` is accessed:
    514516
     
    522524
    523525On the other hand, if you do not want to cache the wrapped object and want to create the wrapped object every time,
    524 you can specify `[ReturnNewObject]`.
     526you can specify `[NewObject]`.
    525527
    526528== `[ImplementedAs]`(m,a) == #ImplementedAs