Bug 121633

Summary: [GTK] Clean up the Skip* functions in the GObject DOM bindings code generator
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Martin Robinson <mrobinson>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cgarcia, commit-queue, gustavo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch gustavo: review+

Martin Robinson
Reported 2013-09-19 14:00:32 PDT
These functions are used for skipping attributes and functions that we do not support. There is a lot of code that call these functions and then tacks on other criteria for skipping. That extra code should go into the SkipFoo function itself.
Attachments
Patch (7.34 KB, patch)
2013-09-19 15:06 PDT, Martin Robinson
gustavo: review+
Martin Robinson
Comment 1 2013-09-19 15:06:09 PDT
Gustavo Noronha (kov)
Comment 2 2013-09-20 09:38:51 PDT
Comment on attachment 212104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212104&action=review > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:-247 > - nit: does this improve readability in your opinion? > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:-907 > - if ($paramIDLType eq "EventListener" || $paramIDLType eq "MediaQueryListListener") { > - # EventListeners are handled elsewhere. > - return; > - } Where are these skipped in this for loop? Or do they not even get here in the function->parameters?
Martin Robinson
Comment 3 2013-09-20 09:58:54 PDT
Comment on attachment 212104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212104&action=review >> Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:-247 >> - > > nit: does this improve readability in your opinion? I clumped these because they are all used in the following block. I'm happy to restore the newline though. :) >> Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:-907 >> - } > > Where are these skipped in this for loop? Or do they not even get here in the function->parameters? These are skipped at line 880/890.
Martin Robinson
Comment 4 2013-09-20 11:11:20 PDT
Note You need to log in before you can comment on or make changes to this bug.