Backed out changeset 306959be9a2a (bug 1930125) for causing reftests failures. CLOSED TREE

This commit is contained in:
Stanca Serban 2024-11-12 08:51:13 +02:00
parent 0f475125f8
commit d1db30f5f4
4 changed files with 3 additions and 21 deletions

View File

@ -248,14 +248,14 @@ gfx::Matrix SVGGeometryElement::LocalTransform() const {
return result;
}
nsStyleTransformMatrix::TransformReferenceBox refBox(f);
const float a2css = AppUnitsPerCSSPixel();
nsDisplayTransform::FrameTransformProperties props(f, refBox, a2css);
const float a2d = f->PresContext()->AppUnitsPerDevPixel();
nsDisplayTransform::FrameTransformProperties props(f, refBox, a2d);
if (!props.HasTransform()) {
return result;
}
auto matrix = nsStyleTransformMatrix::ReadTransforms(
props.mTranslate, props.mRotate, props.mScale,
props.mMotion.ptrOr(nullptr), props.mTransform, refBox, a2css);
props.mMotion.ptrOr(nullptr), props.mTransform, refBox, a2d);
if (!matrix.IsIdentity()) {
std::ignore = matrix.CanDraw2D(&result);
}

View File

@ -124,7 +124,6 @@ fuzzy(0-1,0-15) == textpath.svg textpath-ref.svg
== textpath-after-anchor-end.svg textpath-after-anchor-end-ref.svg
== textpath-reset-position.svg textpath-reset-position-ref.svg
== textpath-inherit-position.svg textpath-inherit-position-ref.svg
== textpath-transform-zoom.html textpath-transform-zoom-ref.html
== textLength.svg textLength-ref.svg
fuzzy(0-1,0-200) == textLength-2.svg textLength-2-ref.svg

View File

@ -1,8 +0,0 @@
<!doctype html>
<style>body { margin: 0 }</style>
<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="guide" d="M 20 200 H 400" stroke="black" stroke-width="4" />
<text x="0" y="0">
<textPath xlink:href="#guide" font-size="40">XXXX</textPath>
</text>
</svg>

View File

@ -1,9 +0,0 @@
<!doctype html>
<html reftest-zoom="2">
<style>body { margin: 0 }</style>
<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="guide" d="M 0 100 H 200" stroke="black" stroke-width="2" transform="translate(10, 0)" />
<text x="0" y="0">
<textPath xlink:href="#guide" font-size="20">XXXX</textPath>
</text>
</svg>