-
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.
Crash in SVGGeometryElement::isPointInFill
https://bugs.webkit.org/show_bug.cgi?id=265802 rdar://119142303 Reviewed by Ryosuke Niwa. Check for empty objects. * LayoutTests/fast/svg/isPointInFill-without-path-expected.txt: Added. * LayoutTests/fast/svg/isPointInFill-without-path.html: Added. * Source/WebCore/rendering/svg/legacy/LegacyRenderSVGShape.cpp: (WebCore::LegacyRenderSVGShape::shapeDependentFillContains const): Canonical link: https://commits.webkit.org/273494@main
- Loading branch information
1 parent
268bc37
commit 89b5637
Showing
4 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONSOLE MESSAGE: Error: Invalid value for <rect> attribute y="1 -1 62" | ||
CONSOLE MESSAGE: Error: Invalid negative value for <rect> attribute width="-1cm" | ||
ALERT: This test passes if it does not crash | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script> | ||
if (window.testRunner) { testRunner.dumpAsText() } | ||
function checkPointInFill() { | ||
var result = rectElement.isPointInFill(); | ||
alert("This test passes if it does not crash"); | ||
} | ||
</script> | ||
<body onload=checkPointInFill()> | ||
<svg id="svgElement" transform="skewY(0)" style="font-variant-caps: titling-case; rotation: 0deg; text-decoration-upright: all none; box-ordinal-group: 1; grid-template: none/-1px" xml:space="default" baseProfile="full" xml:space="preserve" preserveAlpha="true" points="1,1 12,0" x="1em" role="button" role="button"> | ||
<rect id="rectElement" x="20em" y="1 -1 62" width="-1cm" height="1cm" font-size="4px" transform="skewX(-1) skewX(6)" fill="url(#doesnotexist) currentColor" clip-path="url(#svgElement)" repeatDur="4s" vert-origin-y="10" onclick="eventhandler4()" refX="56" fx="1" /> |
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
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