1) Pass ImagePaintingOptions to all the image drawing functions. Currently the top level drawing functions pass only some member of ImagePaintingOptions to lower level functions. 2) ImagePaintingOptions should be initialized with any number of the options and the order options should not matter. Currently it is hard to get the right set of constructors of ImagePaintingOptions because some callers prefers to pass few options and have the rest of options fall back to the default values.
Created attachment 377083 [details] Patch
Created attachment 377087 [details] Patch
Created attachment 377089 [details] Patch
Created attachment 377090 [details] Patch
Created attachment 377107 [details] Patch
Created attachment 377108 [details] Patch
Created attachment 377112 [details] Patch
Created attachment 377115 [details] Patch
Created attachment 377116 [details] Patch
Created attachment 377131 [details] Patch
Created attachment 377153 [details] Patch
<rdar://problem/54728479>
Created attachment 377357 [details] Patch
Created attachment 377466 [details] Patch
Comment on attachment 377466 [details] Patch Clearing flags on attachment: 377466 Committed r249217: <https://trac.webkit.org/changeset/249217>
All reviewed patches have been landed. Closing bug.