Skip to content
  • ch.dumez@sisa.samsung.com's avatar
    Add support for [NoInterfaceObject] Web IDL extended attribute · 077c4e77
    ch.dumez@sisa.samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=115714
    
    Reviewed by Kentaro Hara.
    
    .:
    
    Update GENERATE_BINDINGS macro to take an additional _window_constructors_file
    optional argument.
    
    * Source/cmake/WebKitMacros.cmake:
    
    Source/WebCore:
    
    *Constructor attributes on the global DOMWindow object are now automatically
    generated for each non-callback interface that is not declared with the
    [NoInterfaceObject] extended attribute. It is thus no longer needed for
    developers to manually add *Constructor attributes for their new interfaces
    unless they wish to register an "extra" constructor for their interface.
    
    This patch does not modify at all the behavior on JS side. To achieve this,
    [NoInterfaceObject] extended attribute is added to interfaces that should
    not have it according to specification (e.g. History, Location, ...).
    This can be improved later as the behavior should not change with this
    patch.
    
    No new tests, no behavior change.
    
    * CMakeLists.txt:
    * De...
    077c4e77