| Summary: | Fix animation of stop-color on <stop> | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | SVG | Assignee: | Rob Buis <rbuis> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | karlcow, sabouhallawa, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-05-18 02:35:06 PDT
Similar looking function (SVGStopElement::stopColorIncludingOpacity()): https://searchfox.org/wubkat/source/Source/WebCore/svg/SVGStopElement.cpp#87 if (!renderer()) return Color::transparentBlack; auto& style = renderer()->style(); auto& svgStyle = style.svgStyle(); auto stopColor = style.colorResolvingCurrentColor(svgStyle.stopColor()); return stopColor.colorWithAlphaMultipliedBy(svgStyle.stopOpacity()); Pull request: https://github.com/WebKit/WebKit/pull/19112 |