diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index 31147b70cdf..77f1a8bbf69 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -1030,7 +1030,7 @@ nsDisplayBackground::GetBounds(nsDisplayListBuilder* aBuilder) { nsRect nsDisplayOutline::GetBounds(nsDisplayListBuilder* aBuilder) { - return mFrame->GetVisualOverflowRect() + ToReferenceFrame(); + return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame(); } void @@ -1172,7 +1172,7 @@ nsDisplayBoxShadowOuter::Paint(nsDisplayListBuilder* aBuilder, nsRect nsDisplayBoxShadowOuter::GetBounds(nsDisplayListBuilder* aBuilder) { - return mFrame->GetVisualOverflowRect() + ToReferenceFrame(); + return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame(); } PRBool diff --git a/layout/reftests/bugs/536061-ref.html b/layout/reftests/bugs/536061-ref.html new file mode 100644 index 00000000000..78f44693e0c --- /dev/null +++ b/layout/reftests/bugs/536061-ref.html @@ -0,0 +1,53 @@ + + + +
+ +