summaryrefslogtreecommitdiff
path: root/layout/xul/nsMenuPopupFrame.cpp
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2022-06-17 16:05:57 +0800
committerJob Bautista <jobbautista9@protonmail.com>2022-06-17 16:05:57 +0800
commitb3cacb2c3ac849f70a2746b252fe0874ffe41e33 (patch)
treec3c1d0fa9665c5050b958d1c3dc3b4c60abd970e /layout/xul/nsMenuPopupFrame.cpp
parent5652238ba898931d9705c9df37259284bb76619e (diff)
downloaduxp-b3cacb2c3ac849f70a2746b252fe0874ffe41e33.tar.gz
Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class.
Backported from Mozilla bug 1571250.
Diffstat (limited to 'layout/xul/nsMenuPopupFrame.cpp')
-rw-r--r--layout/xul/nsMenuPopupFrame.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/layout/xul/nsMenuPopupFrame.cpp b/layout/xul/nsMenuPopupFrame.cpp
index 378d719d44..73e7d2fa55 100644
--- a/layout/xul/nsMenuPopupFrame.cpp
+++ b/layout/xul/nsMenuPopupFrame.cpp
@@ -531,7 +531,7 @@ nsMenuPopupFrame::LayoutPopup(nsBoxLayoutState& aState, nsIFrame* aParentMenu,
}
viewManager->SetViewVisibility(view, nsViewVisibility_kShow);
- nsContainerFrame::SyncFrameViewProperties(pc, this, nullptr, view, 0);
+ nsContainerFrame::SyncFrameViewProperties(pc, this, nullptr, view);
}
// finally, if the popup just opened, send a popupshown event
@@ -993,10 +993,9 @@ nsMenuPopupFrame::HidePopup(bool aDeselectMenu, nsPopupState aNewState)
}
}
-uint32_t
-nsMenuPopupFrame::GetXULLayoutFlags()
-{
- return NS_FRAME_NO_SIZE_VIEW | NS_FRAME_NO_MOVE_VIEW | NS_FRAME_NO_VISIBILITY;
+nsIFrame::ReflowChildFlags nsMenuPopupFrame::GetXULLayoutFlags() {
+ return ReflowChildFlags::NoSizeView | ReflowChildFlags::NoMoveView |
+ ReflowChildFlags::NoVisibility;
}
///////////////////////////////////////////////////////////////////////////////