forked from mirrors/gecko-dev
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:
parent
c8e4dbde8c
commit
fe3175568a
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue