[webkit-dev] Remove webkitDashArray attribute from CanvasRenderingContext2d

Adam Barth abarth at webkit.org
Tue Jan 29 17:56:09 PST 2013


Our general approach to deprecating features is outlined on this wiki page:

http://trac.webkit.org/wiki/DeprecatingFeatures

It sounds like you're advocating the "cold turkey" approach here with
a "clear path forward" for developers.

Adam


On Tue, Jan 29, 2013 at 5:46 PM, Dirk Schulze <dschulze at adobe.com> wrote:
> Hi WebKit folks,
>
> I would like to know if we can remove the following API's in the CanvasRenderingContext2d interface:
>
>         webkitDashArray
>         webkitLineDashOffset
>
> Both were implemented 16 months ago and replaced by the following standardized, unprefixed operations and attributes 5 months ago:
>
>     setLineDash
>     getLineDash
>     lineDashOffset
>
> Note that the webkit prefixed attributes were just implemented in JavaScriptCore, no support for V8. Some of the main reason for supporting these attributes 16 months ago were:
>
> - Firefox  supported them
> - PDF.js needed them for draw PDFs.
>
> PDF.js checks for the existence of the standardized operations and attributes now and uses them if supported.
>
> Would it be possible to clean up the code a bit more and remove the prefixed attributes?
>
> Greetings,
> Dirk
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev


More information about the webkit-dev mailing list