mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
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
@ -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…
x
Reference in New Issue
Block a user