зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1613732 Part 2 - Remove unused ReflowChildFlags::NoVisibility. r=dholbert
This bit is set, but no function uses it. Differential Revision: https://phabricator.services.mozilla.com/D61886 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e50292bfb5
Коммит
bb0d044a16
|
@ -439,7 +439,6 @@ void nsComboboxControlFrame::ReflowDropdown(nsPresContext* aPresContext,
|
|||
// dropped down
|
||||
ReflowChildFlags flags = mDroppedDown ? ReflowChildFlags::Default
|
||||
: ReflowChildFlags::NoMoveFrame |
|
||||
ReflowChildFlags::NoVisibility |
|
||||
ReflowChildFlags::NoSizeView;
|
||||
|
||||
// XXX Can this be different from the dropdown's writing mode?
|
||||
|
|
|
@ -2585,16 +2585,13 @@ class nsIFrame : public nsQueryFrame {
|
|||
// Don't size the frame's view.
|
||||
NoSizeView = 1 << 2,
|
||||
|
||||
// TODO: This flag is not used. Will be removed.
|
||||
NoVisibility = 1 << 3,
|
||||
|
||||
// Only applies to ReflowChild; if true, don't delete the next-in-flow, even
|
||||
// if the reflow is fully complete.
|
||||
NoDeleteNextInFlowChild = 1 << 4,
|
||||
NoDeleteNextInFlowChild = 1 << 3,
|
||||
|
||||
// Only applies to FinishReflowChild. Tell it to call
|
||||
// ApplyRelativePositioning.
|
||||
ApplyRelativePositioning = 1 << 5
|
||||
ApplyRelativePositioning = 1 << 4,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -213,8 +213,7 @@ nsDeckFrame::DoXULLayout(nsBoxLayoutState& aState) {
|
|||
// Make sure we tweak the state so it does not resize our children.
|
||||
// We will do that.
|
||||
ReflowChildFlags oldFlags = aState.LayoutFlags();
|
||||
aState.SetLayoutFlags(ReflowChildFlags::NoSizeView |
|
||||
ReflowChildFlags::NoVisibility);
|
||||
aState.SetLayoutFlags(ReflowChildFlags::NoSizeView);
|
||||
|
||||
// do a normal layout
|
||||
nsresult rv = nsBoxFrame::DoXULLayout(aState);
|
||||
|
|
|
@ -989,8 +989,7 @@ void nsMenuPopupFrame::HidePopup(bool aDeselectMenu, nsPopupState aNewState) {
|
|||
}
|
||||
|
||||
nsIFrame::ReflowChildFlags nsMenuPopupFrame::GetXULLayoutFlags() {
|
||||
return ReflowChildFlags::NoSizeView | ReflowChildFlags::NoMoveView |
|
||||
ReflowChildFlags::NoVisibility;
|
||||
return ReflowChildFlags::NoSizeView | ReflowChildFlags::NoMoveView;
|
||||
}
|
||||
|
||||
nsPoint nsMenuPopupFrame::AdjustPositionForAnchorAlign(nsRect& anchorRect,
|
||||
|
|
Загрузка…
Ссылка в новой задаче