mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Forget the scrolling frame on menus. I don't need it to make this work.
This commit is contained in:
parent
c100c5b819
commit
9a563d8a9f
@ -3054,34 +3054,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||
processChildren = PR_TRUE;
|
||||
isReplaced = PR_TRUE;
|
||||
rv = NS_NewMenuPopupFrame(&newFrame);
|
||||
|
||||
const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// Menus scroll.
|
||||
// See if it's absolute positioned or fixed positioned
|
||||
if (NS_STYLE_POSITION_ABSOLUTE == position->mPosition) {
|
||||
isAbsolutelyPositioned = PR_TRUE;
|
||||
} else if (NS_STYLE_POSITION_FIXED == position->mPosition) {
|
||||
isFixedPositioned = PR_TRUE;
|
||||
}
|
||||
|
||||
// Create a scroll frame
|
||||
nsIFrame* scrollFrame;
|
||||
NS_NewScrollFrame(&scrollFrame);
|
||||
|
||||
// Initialize it (note we don't honor absolute or fixed, since this is
|
||||
// going to behave a lot like the GFX combo box).
|
||||
// Resolve psuedo element style for the dropdown menu
|
||||
nsCOMPtr<nsIStyleContext> menuStyle;
|
||||
rv = aPresContext->ResolvePseudoStyleContextFor(aContent,
|
||||
nsXULAtoms::dropDownMenuPseudo,
|
||||
aStyleContext,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(menuStyle));
|
||||
InitializeScrollFrame(aPresContext, aState, scrollFrame, aContent, aParentFrame,
|
||||
menuStyle, newFrame, PR_FALSE, PR_FALSE, PR_TRUE);
|
||||
frameHasBeenInitialized = PR_TRUE;
|
||||
}
|
||||
|
||||
// BOX CONSTRUCTION
|
||||
|
@ -3054,34 +3054,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
||||
processChildren = PR_TRUE;
|
||||
isReplaced = PR_TRUE;
|
||||
rv = NS_NewMenuPopupFrame(&newFrame);
|
||||
|
||||
const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// Menus scroll.
|
||||
// See if it's absolute positioned or fixed positioned
|
||||
if (NS_STYLE_POSITION_ABSOLUTE == position->mPosition) {
|
||||
isAbsolutelyPositioned = PR_TRUE;
|
||||
} else if (NS_STYLE_POSITION_FIXED == position->mPosition) {
|
||||
isFixedPositioned = PR_TRUE;
|
||||
}
|
||||
|
||||
// Create a scroll frame
|
||||
nsIFrame* scrollFrame;
|
||||
NS_NewScrollFrame(&scrollFrame);
|
||||
|
||||
// Initialize it (note we don't honor absolute or fixed, since this is
|
||||
// going to behave a lot like the GFX combo box).
|
||||
// Resolve psuedo element style for the dropdown menu
|
||||
nsCOMPtr<nsIStyleContext> menuStyle;
|
||||
rv = aPresContext->ResolvePseudoStyleContextFor(aContent,
|
||||
nsXULAtoms::dropDownMenuPseudo,
|
||||
aStyleContext,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(menuStyle));
|
||||
InitializeScrollFrame(aPresContext, aState, scrollFrame, aContent, aParentFrame,
|
||||
menuStyle, newFrame, PR_FALSE, PR_FALSE, PR_TRUE);
|
||||
frameHasBeenInitialized = PR_TRUE;
|
||||
}
|
||||
|
||||
// BOX CONSTRUCTION
|
||||
|
Loading…
Reference in New Issue
Block a user