Bug 883568 - Call UpdateOverflow() in the scroll frame base class to actually update the overflow areas. r=roc

This commit is contained in:
Mats Palmgren 2013-08-10 16:55:29 +00:00
parent 9a898e566b
commit 441566e641
3 changed files with 44 additions and 4 deletions

View File

@ -3715,11 +3715,9 @@ nsGfxScrollFrameInner::UpdateOverflow()
// needing reflow.
mOuter->PresContext()->PresShell()->FrameNeedsReflow(
mOuter, nsIPresShell::eResize, NS_FRAME_IS_DIRTY);
return false; // reflowing will update overflow
}
// Scroll frames never have overflow area because they always clip their
// children, so return false.
return false;
return mOuter->nsContainerFrame::UpdateOverflow();
}
void

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<style>
#testDiv1 {
width: 500px;
height: 100px;
}
</style>
</head>
<body>
<div id="testDiv1" style="background:yellow;"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
#wrapper {
overflow: hidden;
}
#testDiv1 {
width: 500px;
height: 100px;
position: relative;
overflow: hidden;
}
</style>
<script>
window.addEventListener("MozReftestInvalidate", function() {
testDiv1.style.left = "-500px";
testDiv1.style.transform = "translateX(500px)";
document.documentElement.removeAttribute("class");
}, false);
</script>
</head>
<body>
<div id="wrapper">
<div id="testDiv1" style="background:yellow;"></div>
</div>
</body>
</html>