Bug 264777
| Summary: | Use correct destination rectangle in FEComposite w/ type='in' | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ahmad Saleem
Hi Team,
While going through Blink's commit, I came across another failing test case:
Test Case (from Chrome bug): https://jsfiddle.net/jhmsh/
^ Fails in Safari / WebKit ToT only. While Chrome Canary 121 and Firefox Nightly 121 are same.
Blink Commit: https://chromium.googlesource.com/chromium/blink/+/436fb328f44f79caa4c8a8f5804ca305467f026b
Just raising so we can fix it.
Thanks!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
WebKit Source: https://github.com/WebKit/WebKit/blob/7d27cdd3e980f1d2de99a9525eee9efba8929a07/Source/WebCore/platform/graphics/filters/software/FECompositeSoftwareApplier.cpp#L183
Ahmad Saleem
Something along the lines - maybe?:
destinationRect.moveBy(-result.absoluteImageRect().location());
filterContext.drawImageBuffer(*inputImage2, destinationRect, FloatRect(source2Rect));
filterContext.drawImageBuffer(*inputImage, destinationRect, FloatRect(sourceRect), { CompositeOperator::SourceIn });
Radar WebKit Bug Importer
<rdar://problem/118663125>
Ahmad Saleem
It seems to be fixed on Safari 26 Release while Safari 18.6 is still broken.
Said Abou-Hallawa
This is a progression of 295771@main. See bug 293962.
*** This bug has been marked as a duplicate of bug 293962 ***