mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
moved overflow from position to display struct
This commit is contained in:
parent
ffff5d5941
commit
45e4d76785
@ -226,10 +226,10 @@ void nsContainerFrame::PaintChildren(nsIPresContext& aPresContext,
|
||||
const nsRect& aDirtyRect)
|
||||
{
|
||||
// Set clip rect so that children don't leak out of us
|
||||
nsStylePosition* pos =
|
||||
(nsStylePosition*)mStyleContext->GetData(eStyleStruct_Position);
|
||||
nsStyleDisplay* disp =
|
||||
(nsStyleDisplay*)mStyleContext->GetData(eStyleStruct_Display);
|
||||
PRBool hidden = PR_FALSE;
|
||||
if (NS_STYLE_OVERFLOW_HIDDEN == pos->mOverflow) {
|
||||
if (NS_STYLE_OVERFLOW_HIDDEN == disp->mOverflow) {
|
||||
aRenderingContext.PushState();
|
||||
aRenderingContext.SetClipRect(nsRect(0, 0, mRect.width, mRect.height),
|
||||
PR_TRUE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user