Bug 264777 - Use correct destination rectangle in FEComposite w/ type='in'
Summary: Use correct destination rectangle in FEComposite w/ type='in'
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-11-13 14:58 PST by Ahmad Saleem
Modified: 2023-11-20 14:59 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-11-13 14:58:13 PST
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!
Comment 2 Ahmad Saleem 2023-11-14 14:21:56 PST
Something along the lines - maybe?:

destinationRect.moveBy(-result.absoluteImageRect().location());

filterContext.drawImageBuffer(*inputImage2, destinationRect, FloatRect(source2Rect));

filterContext.drawImageBuffer(*inputImage, destinationRect, FloatRect(sourceRect), { CompositeOperator::SourceIn });
Comment 3 Radar WebKit Bug Importer 2023-11-20 14:59:12 PST
<rdar://problem/118663125>