WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148441
Construct default winding string arguments in CanvasRenderingContext2D from ASCIILiteral objects
https://bugs.webkit.org/show_bug.cgi?id=148441
Summary
Construct default winding string arguments in CanvasRenderingContext2D from A...
Zan Dobersek
Reported
2015-08-25 12:17:29 PDT
Construct default winding string arguments in CanvasRenderingContext2D from ASCIILiteral objects
Attachments
Patch
(2.41 KB, patch)
2015-08-25 12:21 PDT
,
Zan Dobersek
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2015-08-25 12:21:16 PDT
Created
attachment 259870
[details]
Patch
Darin Adler
Comment 2
2015-08-25 13:25:47 PDT
Comment on
attachment 259870
[details]
Patch This is a slight optimization. Could optimize even more by overloading instead so we wouldn’t even have to allocate/destroy a StringImpl each time.
Zan Dobersek
Comment 3
2015-09-02 07:15:08 PDT
At least this case could be improved by generating better bindings code. There the string value is already tested to throw a type error if it doesn't equal either 'nonzero' or 'evenodd', so it would then just be a matter of passing an enum value to the implementation function.
Zan Dobersek
Comment 4
2015-09-02 09:49:37 PDT
Committed
r189248
: <
http://trac.webkit.org/changeset/189248
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug