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 @@ + + + + + + Bugs with -moz-transform: rotate() and -moz-box-shadow + + + + + + +

+

+

+

+

+

+ + +
+
+
+
+ + + + diff --git a/layout/reftests/bugs/536061.html b/layout/reftests/bugs/536061.html new file mode 100644 index 00000000000..ba207a94405 --- /dev/null +++ b/layout/reftests/bugs/536061.html @@ -0,0 +1,54 @@ + + + + + + Bugs with -moz-transform: rotate() and -moz-box-shadow + + + + + + +

+

+

+

+

+

+ + +
+
+
+
+ + + + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 77e4c2de924..99c35127bcc 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -1413,6 +1413,7 @@ asserts(5) == 528038-2.html 528038-2-ref.html # bug 512749 == 534808-1.html 534808-1-ref.html == 534808-2.html 534808-2-ref.html == 534919-1.html 534919-1-ref.html +== 536061.html 536061-ref.html == 537507-1.xul 537507-1-ref.xul == 537507-2.html 537507-2-ref.html == 537471-1.html 537471-1-ref.html