mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
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:
parent
8a29ec9a3f
commit
bc4594b40e
1 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue