Backed out changeset 75ee2a0bc5d3 (bug 929021)

This commit is contained in:
Ed Morley 2013-10-24 10:28:12 +01:00
parent 2e6dc96357
commit ec1af6575e

View File

@ -3917,15 +3917,8 @@ nsDisplayTransform::GetDeltaToMozTransformOrigin(const nsIFrame* aFrame,
* a distance, it's already computed for us! * a distance, it's already computed for us!
*/ */
const nsStyleDisplay* display = aFrame->StyleDisplay(); const nsStyleDisplay* display = aFrame->StyleDisplay();
nsRect boundingRect; nsRect boundingRect = (aBoundsOverride ? *aBoundsOverride :
if (aBoundsOverride) { nsDisplayTransform::GetFrameBoundsForTransform(aFrame));
boundingRect = *aBoundsOverride;
} else if (display->mTransformOrigin[0].GetUnit() != eStyleUnit_Coord ||
display->mTransformOrigin[1].GetUnit() != eStyleUnit_Coord) {
// GetFrameBoundsForTransform is expensive for SVG frames and we don't need
// it if the origin is coords (which it is by default for SVG).
boundingRect = nsDisplayTransform::GetFrameBoundsForTransform(aFrame);
}
/* Allows us to access named variables by index. */ /* Allows us to access named variables by index. */
float coords[2]; float coords[2];