mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Removing commented out code.
This commit is contained in:
parent
3280667d72
commit
b46db12741
@ -5961,51 +5961,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell* aPresShell,
|
||||
}
|
||||
// End of TREE CONSTRUCTION code here (there's more later on in the function)
|
||||
|
||||
// // TOOLBAR CONSTRUCTION
|
||||
// else if (aTag == nsXULAtoms::toolbox) {
|
||||
// processChildren = PR_TRUE;
|
||||
// rv = NS_NewToolboxFrame(aPresShell, &newFrame);
|
||||
|
||||
// const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
// aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// if (IsScrollable(aPresContext, display)) {
|
||||
|
||||
// // build the scrollframe
|
||||
// // set the top to be the newly created scrollframe
|
||||
// BuildScrollFrame(aPresShell, aPresContext, aState, aContent, aStyleContext, newFrame, aParentFrame,
|
||||
// topFrame, aStyleContext);
|
||||
|
||||
// // we have a scrollframe so the parent becomes the scroll frame.
|
||||
// newFrame->GetParent(&aParentFrame);
|
||||
// primaryFrameSet = PR_TRUE;
|
||||
|
||||
// frameHasBeenInitialized = PR_TRUE;
|
||||
|
||||
// }
|
||||
// }
|
||||
// else if (aTag == nsXULAtoms::toolbar) {
|
||||
|
||||
// processChildren = PR_TRUE;
|
||||
// rv = NS_NewToolbarFrame(aPresShell, &newFrame);
|
||||
|
||||
// const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
// aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// if (IsScrollable(aPresContext, display)) {
|
||||
|
||||
// // set the top to be the newly created scrollframe
|
||||
// BuildScrollFrame(aPresShell, aPresContext, aState, aContent, aStyleContext, newFrame, aParentFrame,
|
||||
// topFrame, aStyleContext);
|
||||
|
||||
// // we have a scrollframe so the parent becomes the scroll frame.
|
||||
// newFrame->GetParent(&aParentFrame);
|
||||
// primaryFrameSet = PR_TRUE;
|
||||
|
||||
// frameHasBeenInitialized = PR_TRUE;
|
||||
|
||||
// }
|
||||
// }
|
||||
else if (aTag == nsXULAtoms::toolbaritem) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolbarItemFrame(aPresShell, &newFrame);
|
||||
|
@ -5961,51 +5961,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell* aPresShell,
|
||||
}
|
||||
// End of TREE CONSTRUCTION code here (there's more later on in the function)
|
||||
|
||||
// // TOOLBAR CONSTRUCTION
|
||||
// else if (aTag == nsXULAtoms::toolbox) {
|
||||
// processChildren = PR_TRUE;
|
||||
// rv = NS_NewToolboxFrame(aPresShell, &newFrame);
|
||||
|
||||
// const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
// aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// if (IsScrollable(aPresContext, display)) {
|
||||
|
||||
// // build the scrollframe
|
||||
// // set the top to be the newly created scrollframe
|
||||
// BuildScrollFrame(aPresShell, aPresContext, aState, aContent, aStyleContext, newFrame, aParentFrame,
|
||||
// topFrame, aStyleContext);
|
||||
|
||||
// // we have a scrollframe so the parent becomes the scroll frame.
|
||||
// newFrame->GetParent(&aParentFrame);
|
||||
// primaryFrameSet = PR_TRUE;
|
||||
|
||||
// frameHasBeenInitialized = PR_TRUE;
|
||||
|
||||
// }
|
||||
// }
|
||||
// else if (aTag == nsXULAtoms::toolbar) {
|
||||
|
||||
// processChildren = PR_TRUE;
|
||||
// rv = NS_NewToolbarFrame(aPresShell, &newFrame);
|
||||
|
||||
// const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
// aStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
|
||||
// if (IsScrollable(aPresContext, display)) {
|
||||
|
||||
// // set the top to be the newly created scrollframe
|
||||
// BuildScrollFrame(aPresShell, aPresContext, aState, aContent, aStyleContext, newFrame, aParentFrame,
|
||||
// topFrame, aStyleContext);
|
||||
|
||||
// // we have a scrollframe so the parent becomes the scroll frame.
|
||||
// newFrame->GetParent(&aParentFrame);
|
||||
// primaryFrameSet = PR_TRUE;
|
||||
|
||||
// frameHasBeenInitialized = PR_TRUE;
|
||||
|
||||
// }
|
||||
// }
|
||||
else if (aTag == nsXULAtoms::toolbaritem) {
|
||||
processChildren = PR_TRUE;
|
||||
rv = NS_NewToolbarItemFrame(aPresShell, &newFrame);
|
||||
|
Loading…
Reference in New Issue
Block a user