[Webkit-unassigned] [Bug 67666] New: Binding CodeGenerators don't support Conditional= on constants & functions.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 13:12:41 PDT 2011


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

           Summary: Binding CodeGenerators don't support Conditional= on
                    constants & functions.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: acolwell at chromium.org


It appears that at least CodeGeneratorV8.pm does not honor the Conditional= directive on constants and functions specified in the IDL. I encountered this while trying to convert my MediaSource API methods from using an "#if defined(ENABLE_MEDIA_SOURCE)..." block to [Conditional=MEDIA_SOURCE] on each of the items in the block. I've attached a patch for the changes. 

When I apply this patch I get a bunch of compiler errors (see attached) that appear to indicate that the code generator completely ignored the Condition annotation on the functions and constants.

I'd expect the code generator to not emit code for functions and constants if the Conditional value is 0 or not set like it does for attributes.

-- 
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