| Summary: | SVG rect with rx or ry set to zero is drawn incorrectly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | kari.pihkala | ||||
| Component: | SVG | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer, zimmermann | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
kari.pihkala
2023-08-03 03:17:14 PDT
One easy fix is to replace the following condition in LegacyRenderSVGRect::updateShapeFromElement() and RenderSVGRect::updateShapeFromElement()
if (rectElement().rx().value(lengthContext) > 0 || rectElement().ry().value(lengthContext) > 0 || hasNonScalingStroke()) {
// Fall back to LegacyRenderSVGShape
LegacyRenderSVGShape::updateShapeFromElement();
return;
}
by
if ((rectElement().rx().value(lengthContext) > 0 && rectElement().ry().value(lengthContext) > 0) || hasNonScalingStroke()) {
// Fall back to LegacyRenderSVGShape
LegacyRenderSVGShape::updateShapeFromElement();
return;
}
Pull request: https://github.com/WebKit/WebKit/pull/16414 Committed 266641@main (3dc74d79ceb7): <https://commits.webkit.org/266641@main> Reviewed commits have been landed. Closing PR #16414 and removing active labels. |