Skip to content

Commit

Permalink
Merge pull request #44 from movableink/merge-upstream-2024-06-30-qt6-qa
Browse files Browse the repository at this point in the history
Fix shadow span issue
  • Loading branch information
mnutt authored Nov 20, 2024
2 parents 9a33154 + 06d2f5e commit 1682e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/ShadowBlur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void ShadowBlur::blurLayerImage(std::span<uint8_t> imageData, const IntSize& siz
sum += next.front() - prev.front();
}

for (; i < dim && ptr.size() <= stride && prev.size() >= stride; ptr = ptr.subspan(stride), prev = prev.subspan(stride), ++i) {
for (; i < dim && ptr.size() >= stride && prev.size() >= stride; ptr = ptr.subspan(stride), prev = prev.subspan(stride), ++i) {
ptr[0] = (sum * invCount) >> blurSumShift;
sum += alpha2 - prev.front();
}
Expand Down

0 comments on commit 1682e2f

Please sign in to comment.