Changes between Version 79 and Version 80 of WebKitIDL


Ignore:
Timestamp:
Oct 12, 2012 3:31:56 PM (9 years ago)
Author:
jsbell@chromium.org
Comment:

Add StrictTypeChecking on DOMString parameter details

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v79 v80  
    1515 - [#Custom Custom(m,a), JSCustom(m,a), V8Custom(m,a), CustomGetter(a), JSCustomGetter(a), V8CustomGetter(a), CustomSetter(a), JSCustomSetter(a), V8CustomSetter(a)][[br]]
    1616 - [#CallWith CallWith(i,m,a)][[br]]
    17  - [#StrictTypeChecking StrictTypeChecking(m,a)][[br]]
     17 - [#StrictTypeChecking StrictTypeChecking(m,a,p)][[br]]
    1818 - [#ReturnNewObject ReturnNewObject(m,a)][[br]]
    1919 - [#ImplementedAs ImplementedAs(m,a)][[br]]
     
    536536For example, in case of func4(...), HTMLFoo::func3(ScriptArguments* arguments, ScriptCallStack* callstack, int a, int b) is called in WebCore.
    537537
    538 == [StrictTypeChecking](m,a) FIXME == #StrictTypeChecking
     538== [StrictTypeChecking](m,a,p) FIXME == #StrictTypeChecking
    539539
    540540Summary: ADD SUMMARY
     
    547547
    548548ADD EXPLANATIONS
     549
     550V8 and JSC: [StrictTypeChecking] can also be applied to a DOMString parameter in an overloaded method to make the
     551overload resolution only match for ECMAScript types null, undefined, string or object - and not number or boolean.
     552This is to permit overloads which are not "distinguishable" in WebIDL, for example:
     553
     554{{{
     555    interface CanvasFoo {
     556        void setColor(in [StrictTypeChecking] DOMString color);
     557        void setColor(in float grayLevel);
     558    };
     559}}}
    549560
    550561== [ReturnNewObject](m,a) == #ReturnNewObject