Takes SMask's preblending in account

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=888437