Bug 122443 - Conditional support in bindings code generator for overloaded functions
Summary: Conditional support in bindings code generator for overloaded functions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 79203 122301
  Show dependency treegraph
 
Reported: 2013-10-07 03:17 PDT by Philippe Normand
Modified: 2013-10-07 10:44 PDT (History)
10 users (show)

See Also:


Attachments
patch (4.23 KB, patch)
2013-10-07 03:42 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff
Patch (4.10 KB, patch)
2013-10-07 09:24 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2013-10-07 03:17:53 PDT
Use-case: the DOMURL interface has overloaded functions in URLMediaSource.idl and URLMediaStream.idl but the code for these needs to be generated only when MEDIA_SOURCE and MEDIA_STREAM are respectively enabled.

This is just a matter of generating #if ENABLE(Conditional) for the overloaded functions.
Comment 1 Philippe Normand 2013-10-07 03:42:43 PDT
Created attachment 213575 [details]
patch
Comment 2 Philippe Normand 2013-10-07 03:44:25 PDT
perhaps Christophe can have a look at this one? :)
Comment 3 Jer Noble 2013-10-07 08:16:45 PDT
We should add a bindings test for this case.  I'm more than willing to do the URLMediaSource and URLMediaStream work in bug 122301, which will simplify this patch.
Comment 4 Philippe Normand 2013-10-07 08:25:16 PDT
(In reply to comment #3)
> We should add a bindings test for this case.  I'm more than willing to do the URLMediaSource and URLMediaStream work in bug 122301, which will simplify this patch.

Ok, I'll write a test and let you handle bug 122301 then!
Comment 5 Philippe Normand 2013-10-07 08:25:49 PDT
Comment on attachment 213575 [details]
patch

I'll add a test and remove the URL* changes.
Comment 6 Philippe Normand 2013-10-07 08:54:24 PDT
Oh actually the patch is covered by tests already, I'll rebaseline the results.
Comment 7 Philippe Normand 2013-10-07 09:24:41 PDT
Created attachment 213597 [details]
Patch
Comment 8 WebKit Commit Bot 2013-10-07 10:44:16 PDT
Comment on attachment 213597 [details]
Patch

Clearing flags on attachment: 213597

Committed r157048: <http://trac.webkit.org/changeset/157048>
Comment 9 WebKit Commit Bot 2013-10-07 10:44:18 PDT
All reviewed patches have been landed.  Closing bug.