Bug 65569 - Remove LegacyDefaultOptionalArguments flag from Console.idl
Summary: Remove LegacyDefaultOptionalArguments flag from Console.idl
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 14:10 PDT by Mark Pilgrim (Google)
Modified: 2011-08-03 16:32 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.52 KB, patch)
2011-08-02 14:10 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
Patch (1.47 KB, patch)
2011-08-03 14:32 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-08-02 14:10:00 PDT
As discussed in IRC, we are migrating our IDL files away from the interface-level "LegacyDefaultOptionalArguments" flag and onto argument-level [Optional] or [Optional=CallWithDefaultValue] flags. This patch migrates Console.idl. It does not change any behavior, i.e. it does not make any arguments required that were previously optional, nor vice-versa.
Comment 1 Mark Pilgrim (Google) 2011-08-02 14:10:38 PDT
Created attachment 102697 [details]
Patch
Comment 2 Adam Barth 2011-08-02 15:34:20 PDT
Comment on attachment 102697 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=102697&action=review

> Source/WebCore/page/Console.idl:44
> -        [V8Custom, CustomArgumentHandling, ImplementationFunction=assertCondition] void assert(in boolean condition);
> +        [V8Custom, CustomArgumentHandling, ImplementationFunction=assertCondition] void assert(in [Optional=CallWithDefaultValue] boolean condition);

I suspect this attribute doesn't do anything here either because this function has CustomArgumentHandling.

> Source/WebCore/page/Console.idl:51
> +        [Custom] void profile(in [Optional=CallWithDefaultValue] DOMString title);
> +        [Custom] void profileEnd(in [Optional=CallWithDefaultValue] DOMString title);

This attribute doesn't do anything for [Custom] bindings.  We can omit it.

> Source/WebCore/page/Console.idl:55
> +        void time(in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString title);
> +        [CustomArgumentHandling] void timeEnd(in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString title);

This one might need to stay though.  I'm not sure how CustomArgumentHandling works on V8.
Comment 3 Mark Pilgrim (Google) 2011-08-03 14:32:55 PDT
Created attachment 102826 [details]
Patch
Comment 4 WebKit Review Bot 2011-08-03 16:32:03 PDT
Comment on attachment 102826 [details]
Patch

Clearing flags on attachment: 102826

Committed r92328: <http://trac.webkit.org/changeset/92328>
Comment 5 WebKit Review Bot 2011-08-03 16:32:08 PDT
All reviewed patches have been landed.  Closing bug.