Bug 935994: Adjust strokestyle creation code. r=jrmuizel