[Webkit-unassigned] [Bug 221550] New: A Pattern with an SVG image is not rendered correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 06:45:54 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221550

            Bug ID: 221550
           Summary: A Pattern with an SVG image is not rendered correctly
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

Before r269614, the pattern with SVG image was not rendered at all. After this revision the pattern is drawn as a black rectangle. The reason is with r269614 Pattern::createPlatformPattern() returns a null CGPatternRef if the NativeImage of the SVG is null. Before this change we were returning a non-null CGPatternRef but with an invalid image.

The test imported/blink/svg/canvas/canvas-draw-pattern-size.html did not catch this case before this change or after it, because the expected result page draws a pattern but with a different size. 

The fix of this bug is implement the method SVGImage::nativeImage(). Also we need to change the expected result imported/blink/svg/canvas/canvas-draw-pattern-size-expected.html to not use the pattern in its drawing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210208/6a74be26/attachment-0001.htm>


More information about the webkit-unassigned mailing list