gecko-dev/layout/style/crashtests/1594949.html
Boris Chiou 746b9cb867 Bug 1594949 - Fix assertion of gfx::Path when changing offset-path on some svg frames. r=heycam
1. Use Nothing() for motion path in IncrementScaleResytleCountIfNeeded.
   Since motion path only produces 2d translate and 2d rotate, so it
   shouldn't have any impact on BaseMatrix::ScaleFactors(). We use
   Nothing() to avoid any redundant calculation.
2. Drop SVGTextFrame::DidSetComputedStyle() because
   nsFrame::DidSetComputedStyle() should have handled
   ScheduleReflowSVGNonDisplayText well.
3. Let nsSVGForeignObjectFrame::DidSetComputedStyle() call
   their parents' DidSetComputedStyle. This makes sure we update the frame
   properly.

Differential Revision: https://phabricator.services.mozilla.com/D52290

--HG--
extra : moz-landing-system : lando
2019-11-11 23:31:23 +00:00

14 lines
279 B
HTML

<script>
window.onload = () => {
a.style.setProperty("scale", "3")
a.clientTop
a.style.setProperty("offset", "path('M1 6')0deg")
b.style.setProperty("offset", "path('M100 6')0deg")
}
</script>
<svg>
<text id="a"></text>
<foreignObject id="b"></foreignObject>
</svg>