Issue #438: Pixel-snap subpixel value for outer SVG and anon child.

This doesn't solve the blurriness yet, but is part of the problem.
This commit is contained in:
wolfbeast 2019-08-14 13:38:25 +02:00 committed by Roy Tam
commit bc4594b40e

View file

@ -5918,11 +5918,16 @@ nsDisplayTransform::GetResultingTransformMatrixInternal(const FrameTransformProp
bool hasTransformFromSVGParent =
hasSVGTransforms && !transformFromSVGParent.IsIdentity();
bool shouldRound = true;
// An SVG frame should not have its translation rounded.
// Note it's possible that the SVG frame doesn't have an SVG
// transform but only has a CSS transform.
bool shouldRound = !(frame && frame->IsFrameOfType(nsIFrame::eSVG));
if (frame && frame->HasAnyStateBits(NS_FRAME_SVG_LAYOUT) &&
!(frame->GetType() == nsGkAtoms::svgOuterSVGAnonChildFrame)) {
shouldRound = false;
}
/* Transformed frames always have a transform, or are preserving 3d (and might still have perspective!) */
if (aProperties.mTransformList) {
result = nsStyleTransformMatrix::ReadTransforms(aProperties.mTransformList->mHead,