Bug 1757396 - Prevent SVG geometry with markers from being active. r=gfx-reviewers,lsalzman

We don't currently check whether the geometry has markers, nor do we try to render them properly with WebRender display items.

This is caught by the reftest paint-order-001.svg when active SVG images and rects are enabled.

Differential Revision: https://phabricator.services.mozilla.com/D140808
This commit is contained in:
Nicolas Silva 2022-03-11 13:00:54 +00:00
Родитель c8e4dbde8c
Коммит fe3175568a
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -819,6 +819,13 @@ bool SVGGeometryFrame::CreateWebRenderCommands(
return false;
}
SVGMarkerFrame* markerFrames[SVGMark::eTypeCount];
if (element->IsMarkable() &&
SVGObserverUtils::GetAndObserveMarkers(this, &markerFrames)) {
// Markers aren't suppported yet.
return false;
}
if (!aDryRun) {
auto rect = simplePath.AsRect();