mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 828146. Ensure nsDisplayBackgroundImage::ComputeInvalidationRegion invalidates something for nsDisplayBackgroundImages which are themed. r=mattwoodrow
--HG-- extra : rebase_source : 1050ffe991aed624958b9cb63f142a76a34fc67d
This commit is contained in:
parent
7880070173
commit
5e332dc349
@ -2065,6 +2065,9 @@ nsDisplayBackgroundImage::IsVaryingRelativeToMovingFrame(nsDisplayListBuilder* a
|
||||
nsRect
|
||||
nsDisplayBackgroundImage::GetPositioningArea()
|
||||
{
|
||||
if (mIsThemed) {
|
||||
return nsRect(ToReferenceFrame(), mFrame->GetSize());
|
||||
}
|
||||
if (!mBackgroundStyle) {
|
||||
return nsRect();
|
||||
}
|
||||
@ -2138,7 +2141,7 @@ void nsDisplayBackgroundImage::ComputeInvalidationRegion(nsDisplayListBuilder* a
|
||||
const nsDisplayItemGeometry* aGeometry,
|
||||
nsRegion* aInvalidRegion)
|
||||
{
|
||||
if (!mBackgroundStyle) {
|
||||
if (!mIsThemed && !mBackgroundStyle) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
6
layout/reftests/bugs/828146-1-ref.html
Normal file
6
layout/reftests/bugs/828146-1-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body>
|
||||
<div style="width:100px; height:100px; position:relative; top:60px; -moz-appearance:button"></div>
|
||||
</body>
|
||||
</html>
|
14
layout/reftests/bugs/828146-1.html
Normal file
14
layout/reftests/bugs/828146-1.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="reftest-wait">
|
||||
<body>
|
||||
<div id="b" style="width:100px; height:100px; position:relative; top:50px; -moz-appearance:button"></div>
|
||||
<script>
|
||||
var b = document.getElementById("b");
|
||||
function doTest() {
|
||||
b.style.top = "60px";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user