Changes between Version 70 and Version 71 of WebKitIDL


Ignore:
Timestamp:
Jun 29, 2012 3:45:40 PM (12 years ago)
Author:
arv@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v70 v71  
    4949 - [#CustomCall CustomCall(i)][[br]]
    5050 - [#JSCustomToNativeObject JSCustomToNativeObject(i), JSCustomFinalize(i), JSCustomIsReachable(i), JSCustomMarkFunction(i), JSCustomNamedGetterOnPrototype(i), JSCustomPushEventHandlerScope(i), JSCustomDefineOwnProperty(i), JSCustomDefineOwnPropertyOnPrototype(i), JSCustomGetOwnPropertySlotAndDescriptor(i)][[br]]
    51  - [#JSGenerateToJSObject JSGenerateToJSObject(i), JSGenerateIsReachable(i), JSGenerateToNativeObject(i)][[br]]
     51 - [#JSGenerateToJSObject JSGenerateToJSObject(i), JSGenerateToNativeObject(i)][[br]]
     52 - [#JSGenerateIsReachable JSGenerateIsReachable(i)]
     53 - [#V8GenerateIsReachable V8GenerateIsReachable(i)]
     54 - [#GenerateIsReachable GenerateIsReachable(i)]
    5255 - [#JSCustomHeader JSCustomHeader(i)][[br]]
    5356 - [#JSLegacyParent JSLegacyParent(i)][[br]]
     
    16021605}}}
    16031606
    1604 == [JSGenerateToJSObject](i), [JSGenerateIsReachable](i), [JSGenerateToNativeObject](i) == #JSGenerateToJSObject
     1607== [JSGenerateToJSObject](i), [JSGenerateToNativeObject](i) == #JSGenerateToJSObject
    16051608
    16061609Summary: They force JavaScriptCore bindings to generate JavaScriptCore-specific methods, even if a given interface has a parent interface.
     
    16101613    interface [
    16111614        JSGenerateToJSObject,
    1612         JSGenerateIsReachable,
    16131615        JSGenerateToNativeObject
    16141616    ] XXX {
     
    16181620toJS(...), isReachableFromOpaqueRoots(...) or toXXX() is not generated if XXX has a parent interface.
    16191621If you want to generate it even if XXX does not have a parent interface, you can specify
    1620 [JSGenerateToJSObject], [JSGenerateIsReachable] or [JSGenerateToNativeObject], respectively.
     1622[JSGenerateToJSObject] or [JSGenerateToNativeObject], respectively.
     1623
     1624== [JSGenerateIsReachable](i) == #JSGenerateIsReachable
     1625
     1626Summary: This generates code that determines if a wrapper is reachable.
     1627
     1628Usage: The JSGenerateIsReachable can be specified on the interface. This attribute is ignored if CustomIsReachable is present.
     1629
     1630{{{
     1631    interface [
     1632        JSGenerateIsReachable=ImplBaseRoot
     1633    ] XXX {
     1634    };
     1635}}}
     1636
     1637The code generates a function called XXX::isReachableFromOpaqueRoots which returns a boolean if the wrapper is reachable.
     1638
     1639The currently valid values are:
     1640
     1641 - (no value)
     1642 - Impl
     1643 - ImplContext
     1644 - ImplFrame
     1645 - ImplDocument
     1646 - ImplElementRoot
     1647 - ImplBaseRoot
     1648
     1649The value of these represents the functions to call to get the object that determines whether the object is reachable or not. See CodeGeneratorJS.pm for more details. The values that end with Root calls WebCore::root to get the root. If the value is left out then WebCore::root is called on impl().
     1650
     1651== [V8GenerateIsReachable](i) == #V8GenerateIsReachable
     1652
     1653Summary: This generates code that determines if a wrapper is reachable.
     1654
     1655Usage: The V8GenerateIsReachable can be specified on the interface. This attribute is ignored if CustomIsReachable is present.
     1656
     1657{{{
     1658    interface [
     1659        V8GenerateIsReachable=ImplBaseRoot
     1660    ] XXX {
     1661    };
     1662}}}
     1663
     1664The code generates a function called XXX::visitDOMWrapper which is called by V8GCController before GC. The function adds implicit references to the wrapper which keeps it alive.
     1665
     1666The currently valid values are:
     1667
     1668|ImplElementRoot|ImplOwnerRoot|ImplOwnerNodeRoot|ImplBaseRoot
     1669
     1670 - ImplOwnerRoot
     1671 - ImplOwnerNodeRoot
     1672 - ImplElementRoot
     1673 - ImplBaseRoot
     1674
     1675The value of these represents the functions to call to get the object that determines whether the object is reachable or not. See CodeGeneratorV8.pm for more details.
     1676
     1677== [GenerateIsReachable](i) == #GenerateIsReachable
     1678
     1679Summary: This is the shared version of [JSGenerateIsReachable] and V8GenerateIsReachable. The accepted values are the intersection of those two.
     1680
     1681 - ImplElementRoot
     1682 - ImplBaseRoot
    16211683
    16221684== [JSCustomHeader](i) == #JSCustomHeader