[Webkit-unassigned] [Bug 84540] JS binding code generator doesn't handle "attribute unsigned long[]" well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 23 02:00:20 PDT 2012


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


Kentaro Hara <haraken at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #138305|review?                     |review+
               Flag|                            |




--- Comment #10 from Kentaro Hara <haraken at chromium.org>  2012-04-23 02:00:17 PST ---
(From update of attachment 138305)
View in context: https://bugs.webkit.org/attachment.cgi?id=138305&action=review

>>> Source/WebCore/bindings/scripts/CodeGenerator.pm:350
>>> +    return 1 if $type eq "String";
>> 
>> AvoidInclusionOfType() is already used in CodeGenerator*.pm. I am a bit worrying that this would change the existing behaviors. No worry?
> 
> Umm I think the places where AvoidInclusionOfType is used to check whether to include header of type or not.
> Looking at the current implementation of AvoidInclusionOfType it is avoiding inclusion only because it doesn't have headers like SVGPoint/SVGNumber adding above code won't change existing behaviour because it doesn't have headers for these type either.
> IMO worry is if $arrayType is "SVGPoint/SVGNumber" it will skip headers.
> 
> So should I use IsPrimitiveType subroutine adding "String" to it or Write a new subroutine?

Thanks for the clarification. Currently there are no use cases for an SVGPoint/SVGNumber array. Let's keep it as-is.

BTW, shall we rename AvoidInclusionOfType() to SkipHeaderInclude() (or something clearer)?

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