Bug 1361639 - Part 3. Remove unused EffectOffsets::offsetToBoundingBoxInDevPx.
MozReview-Commit-ID: DRdA5FAeu4Q
--- a/layout/svg/nsSVGIntegrationUtils.cpp
+++ b/layout/svg/nsSVGIntegrationUtils.cpp
@@ -640,19 +640,16 @@ ValidateSVGFrame(nsIFrame* aFrame)
return true;
}
struct EffectOffsets {
// The offset between the reference frame and the bounding box of the
// target frame in app unit.
nsPoint offsetToBoundingBox;
// The offset between the reference frame and the bounding box of the
- // target frame in device unit.
- gfxPoint offsetToBoundingBoxInDevPx;
- // The offset between the reference frame and the bounding box of the
// target frame in app unit.
nsPoint offsetToUserSpace;
// The offset between the reference frame and the bounding box of the
// target frame in device unit.
gfxPoint offsetToUserSpaceInDevPx;
};
EffectOffsets
@@ -695,19 +692,16 @@ ComputeEffectOffset(nsIFrame* aFrame, co
NS_ASSERTION(hasSVGLayout ||
result.offsetToBoundingBox == result.offsetToUserSpace,
"For non-SVG frames there shouldn't be any additional offset");
#endif
result.offsetToUserSpaceInDevPx =
nsLayoutUtils::PointToGfxPoint(result.offsetToUserSpace,
aFrame->PresContext()->AppUnitsPerDevPixel());
- result.offsetToBoundingBoxInDevPx =
- nsLayoutUtils::PointToGfxPoint(result.offsetToBoundingBox,
- aFrame->PresContext()->AppUnitsPerDevPixel());
return result;
}
/**
* Setup transform matrix of a gfx context by a specific frame. Move the
* origin of aParams.ctx to the user space of aFrame.
*/