| Summary: | Adjust error-handling for invalid filter primitive references | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, simon.fraser, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | InRadar, LayerBasedSVGEngine |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-01-07 10:09:56 PST
WebKit ToT (263769@main) get full bar but half is 'red' while STP169 still shows only two rectangles. Just wanted to highlight small-progression. This commit removed 'SVGFilterBuilder.cpp' in WebKit - https://commits.webkit.org/251522@main (In reply to Ahmad Saleem from comment #2) > WebKit ToT (263769@main) get full bar but half is 'red' while STP169 still > shows only two rectangles. > > Just wanted to highlight small-progression. This is with LBSE turned on. LBSE off is still same. Something to do here ?: https://searchfox.org/wubkat/source/Source/WebCore/svg/graphics/filters/SVGFilterGraph.h#64 This compiles and fixes this test case:
RefPtr<NodeType> getNamedNode(const AtomString& id) const
{
if (!id.isEmpty()) {
if (m_sourceNodes.contains(id))
return m_sourceNodes.get(id);
if (m_namedNodes.contains(id))
return m_namedNodes.get(id);
}
if (m_lastNode)
return m_lastNode;
return sourceGraphic();
}
in https://searchfox.org/wubkat/rev/7bf250e4832adfb28c2bf2bc518ad59958f2ae1b/Source/WebCore/svg/graphics/filters/SVGFilterGraph.h#78
For LBSE - there isn't any improvement or regression.
Committed 279421@main (8e028375b9c5): <https://commits.webkit.org/279421@main> Reviewed commits have been landed. Closing PR #28314 and removing active labels. |