зеркало из https://github.com/mozilla/gecko-dev.git
Removing commented out code.
This commit is contained in:
Родитель
3280667d72
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче