Backed out changeset 861f44128431 (bug 1919040) for causing perma android reftest failures. CLOSED TREE
This commit is contained in:
@@ -367,10 +367,10 @@ static float GetContextScale(SVGTextFrame* aFrame) {
|
|||||||
RelativeTo{aFrame}, RelativeTo{SVGUtils::GetOuterSVGFrame(aFrame)});
|
RelativeTo{aFrame}, RelativeTo{SVGUtils::GetOuterSVGFrame(aFrame)});
|
||||||
Matrix transform2D;
|
Matrix transform2D;
|
||||||
if (!matrix.CanDraw2D(&transform2D)) {
|
if (!matrix.CanDraw2D(&transform2D)) {
|
||||||
return 1.0f;
|
return {};
|
||||||
}
|
}
|
||||||
auto scales = transform2D.ScaleFactors();
|
auto scales = transform2D.ScaleFactors();
|
||||||
return std::max(0.0f, std::max(scales.xScale, scales.yScale));
|
return std::max(1.0f, std::max(scales.xScale, scales.yScale));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user