Fix warning by using cleaner construct.
Yet an other WBGradient API change.
No longer let the user specify layer size. Take only the relevant value (width or height) in user space coords.
Using this unique value, the WBGradientBuilder class can create a layer with the best pixel size for the target context (scaling if needed, and forcing non relevant size to 1px).