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.
Created attachment 419585 [details]
Created attachment 419611 [details]
(In reply to Said Abou-Hallawa from comment #2)
> Created attachment 419611 [details]
I added this null check in SVGImage::nativeImage()
Created attachment 419621 [details]
Committed r272549: <https://commits.webkit.org/r272549>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 419621 [details].