[Webkit-unassigned] [Bug 70215] Generate WebKitCSSMatrix constructor for JSC by [Constructor] IDL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 27 19:59:19 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70215





--- Comment #14 from Kentaro Hara <haraken at chromium.org>  2011-10-27 19:59:18 PST ---
(In reply to comment #12)
> How is Optional=CallWithNullValue different from Optional,ConvertNullToNullString?

ConvertNullToNullString defines the behavior when null is passed to a parameter. On the other hand, Optional=CallWithNullValue defines the behavior when the parameter is missing.

Please assume func(in [XXXX] DOMString str).

If XXXX is "Optional, ConvertNullToNullString":
func(null) -> (not a string "null" but) a null string is passed to a WebCore method.
func() -> a string "undefined" is passed to a WebCore method.

If XXXX is "Optional=CallWithNullValue":
func(null) -> a string "null" is passed to a WebCore method.
func() -> a null string is passed to a WebCore method.

If XXXX is "Optional=CallWithDefaultValue":
func(null) -> a string "null" is passed to a WebCore method.
func() -> a string "undefined" is passed to a WebCore method.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list