Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 259548.8@safari-7615-branch (5a0f792). https://bugs.webki…
…t.org/show_bug.cgi?id=251158 Check color opacity after lossy conversion when blending https://bugs.webkit.org/show_bug.cgi?id=251158 rdar://104553839 Reviewed by Dean Jackson. We check opacity to determine if we should forgo blending, however after performing a lossy conversion we can end up with alpha values that result in a division by zero. Add an additional check after conversion to prevent this case. * LayoutTests/fast/backgrounds/background-color-lch-crash-expected.txt: Added. * LayoutTests/fast/backgrounds/background-color-lch-crash.html: Added. * Source/WebCore/platform/graphics/ColorBlending.cpp: (WebCore::blendSourceOver): Canonical link: https://commits.webkit.org/259548.8@safari-7615-branch
- Loading branch information