mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 75ee2a0bc5d3 (bug 929021)
This commit is contained in:
parent
2e6dc96357
commit
ec1af6575e
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user