-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CreatePattern for zero height image should return null
https://bugs.webkit.org/show_bug.cgi?id=250662 rdar://104285727 Reviewed by Tim Nguyen. Use the same logic we use for createPattern when passed an SVGImageElement for HTMLImageElement. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zeroheight-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zerowidth-expected.txt: * LayoutTests/svg/as-image/resources/svg-with-feimage-with-link.svg: * Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::CanvasRenderingContext2DBase::createPattern): Canonical link: https://commits.webkit.org/267334@main
- Loading branch information
Showing
4 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...tests/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zeroheight-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
2d.pattern.image.zeroheight | ||
Actual output: | ||
|
||
FAIL Canvas test: 2d.pattern.image.zeroheight assert_equals: ctx.createPattern(img, 'repeat') === null (got [object CanvasPattern][object], expected [object]) expected null but got object "[object CanvasPattern]" | ||
PASS Canvas test: 2d.pattern.image.zeroheight | ||
|
2 changes: 1 addition & 1 deletion
2
...-tests/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zerowidth-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
2d.pattern.image.zerowidth | ||
Actual output: | ||
|
||
FAIL Canvas test: 2d.pattern.image.zerowidth assert_equals: ctx.createPattern(img, 'repeat') === null (got [object CanvasPattern][object], expected [object]) expected null but got object "[object CanvasPattern]" | ||
PASS Canvas test: 2d.pattern.image.zerowidth | ||
|
2 changes: 1 addition & 1 deletion
2
LayoutTests/svg/as-image/resources/svg-with-feimage-with-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters