mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-23 12:53:07 +09:00
Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class.
Backported from Mozilla bug 1571250.
This commit is contained in:
parent
9cc1870b9f
commit
0423d83560
51 changed files with 365 additions and 303 deletions
|
|
@ -6583,9 +6583,9 @@ nsIFrame::UpdateOverflow()
|
|||
if (FinishAndStoreOverflow(overflowAreas, GetSize())) {
|
||||
nsView* view = GetView();
|
||||
if (view) {
|
||||
uint32_t flags = GetXULLayoutFlags();
|
||||
ReflowChildFlags flags = GetXULLayoutFlags();
|
||||
|
||||
if ((flags & NS_FRAME_NO_SIZE_VIEW) == 0) {
|
||||
if (!(flags & ReflowChildFlags::NoSizeView)) {
|
||||
// Make sure the frame's view is properly sized.
|
||||
nsViewManager* vm = view->GetViewManager();
|
||||
vm->ResizeView(view, overflowAreas.VisualOverflow(), true);
|
||||
|
|
@ -9820,9 +9820,10 @@ nsFrame::BoxReflow(nsBoxLayoutState& aState,
|
|||
|
||||
NS_ASSERTION(NS_FRAME_IS_COMPLETE(status), "bad status");
|
||||
|
||||
uint32_t layoutFlags = aState.LayoutFlags();
|
||||
ReflowChildFlags layoutFlags = aState.LayoutFlags();
|
||||
nsContainerFrame::FinishReflowChild(this, aPresContext, aDesiredSize,
|
||||
&reflowInput, aX, aY, layoutFlags | NS_FRAME_NO_MOVE_FRAME);
|
||||
&reflowInput, aX, aY, layoutFlags |
|
||||
ReflowChildFlags::NoMoveFrame);
|
||||
|
||||
// Save the ascent. (bug 103925)
|
||||
if (IsXULCollapsed()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue