[Webkit-unassigned] [Bug 43718] Canvas: Fast-path for setting the already set color with setStrokeColor() and setFillColor()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 9 09:03:55 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43718
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |darin at apple.com
--- Comment #6 from Darin Adler <darin at apple.com> 2010-08-09 09:03:55 PST ---
A side comment:
I think it's dangerous to overload and treat floating point values as RGBA or CMYKA just based on the number of arguments. Thus, these functions should have RGBA and CMYKA in their names. Similarly, the create functions for CanvasStyle should have RGBA and CMYKA and such in their names too.
The reason the functions in CanvasStyle used overloading historically is that they were constructors. Tis is one advantage of the create functions over direct calls to the constructors. We can leave the overloading trick to the constructors only.
CanvasRenderingContext2D has to do this overloading because that's in the specification, but internally we should not repeat that mistake.
--
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