mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 883568 - Call UpdateOverflow() in the scroll frame base class to actually update the overflow areas. r=roc
This commit is contained in:
parent
9a898e566b
commit
441566e641
@ -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
|
||||
|
14
layout/reftests/bugs/883568-1-ref.html
Normal file
14
layout/reftests/bugs/883568-1-ref.html
Normal 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>
|
28
layout/reftests/bugs/883568-1.html
Normal file
28
layout/reftests/bugs/883568-1.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user