diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index 3a0a6a1ffe4..b2ca198db29 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -3829,9 +3829,8 @@ nsDisplayTransform::GetFrameBoundsForTransform(const nsIFrame* aFrame) NS_PRECONDITION(aFrame, "Can't get the bounds of a nonexistent frame!"); if (aFrame->GetStateBits() & NS_FRAME_SVG_LAYOUT) { - gfxRect bbox = nsSVGUtils::GetBBox(const_cast(aFrame)); - return nsLayoutUtils::RoundGfxRectToAppRect(bbox, - aFrame->PresContext()->AppUnitsPerCSSPixel()) - aFrame->GetPosition(); + // TODO: SVG needs to define what percentage translations resolve against. + return nsRect(); } return nsRect(nsPoint(0, 0), aFrame->GetSize()); @@ -3847,9 +3846,8 @@ nsDisplayTransform::GetFrameBoundsForTransform(const nsIFrame* aFrame) nsRect result; if (aFrame->GetStateBits() & NS_FRAME_SVG_LAYOUT) { - gfxRect bbox = nsSVGUtils::GetBBox(const_cast(aFrame)); - return nsLayoutUtils::RoundGfxRectToAppRect(bbox, - aFrame->PresContext()->AppUnitsPerCSSPixel()) - aFrame->GetPosition(); + // TODO: SVG needs to define what percentage translations resolve against. + return result; } /* Iterate through the continuation list, unioning together all the diff --git a/layout/reftests/transform/reftest.list b/layout/reftests/transform/reftest.list index 6926689701b..468aa2b2b5a 100644 --- a/layout/reftests/transform/reftest.list +++ b/layout/reftests/transform/reftest.list @@ -124,5 +124,3 @@ skip-if(B2G) fails-if(Android) fuzzy-if(cocoaWidget,1,2) == stresstest-1.html st == table-2b.html table-2-ref.html # Bug 722463 == inline-1a.html inline-1-ref.html -== transform-origin-svg-1a.svg transform-origin-svg-1-ref.svg -== transform-origin-svg-1b.svg transform-origin-svg-1-ref.svg diff --git a/layout/reftests/transform/transform-origin-svg-1-ref.svg b/layout/reftests/transform/transform-origin-svg-1-ref.svg deleted file mode 100644 index 191ca90410c..00000000000 --- a/layout/reftests/transform/transform-origin-svg-1-ref.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/layout/reftests/transform/transform-origin-svg-1a.svg b/layout/reftests/transform/transform-origin-svg-1a.svg deleted file mode 100644 index da94ad39291..00000000000 --- a/layout/reftests/transform/transform-origin-svg-1a.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - diff --git a/layout/reftests/transform/transform-origin-svg-1b.svg b/layout/reftests/transform/transform-origin-svg-1b.svg deleted file mode 100644 index 4478318600e..00000000000 --- a/layout/reftests/transform/transform-origin-svg-1b.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - -