summaryrefslogtreecommitdiff
path: root/layout/xul/nsBoxLayoutState.h
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/nsBoxLayoutState.h
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/nsBoxLayoutState.h')
-rw-r--r--layout/xul/nsBoxLayoutState.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/layout/xul/nsBoxLayoutState.h b/layout/xul/nsBoxLayoutState.h
index b857ad9c09..91c99def2d 100644
--- a/layout/xul/nsBoxLayoutState.h
+++ b/layout/xul/nsBoxLayoutState.h
@@ -15,6 +15,7 @@
#include "nsCOMPtr.h"
#include "nsPresContext.h"
+#include "nsIFrame.h"
#include "nsIPresShell.h"
class nsRenderingContext;
@@ -38,8 +39,10 @@ public:
nsPresContext* PresContext() const { return mPresContext; }
nsIPresShell* PresShell() const { return mPresContext->PresShell(); }
- uint32_t LayoutFlags() const { return mLayoutFlags; }
- void SetLayoutFlags(uint32_t aFlags) { mLayoutFlags = aFlags; }
+ nsIFrame::ReflowChildFlags LayoutFlags() const { return mLayoutFlags; }
+ void SetLayoutFlags(nsIFrame::ReflowChildFlags aFlags) {
+ mLayoutFlags = aFlags;
+ }
// if true no one under us will paint during reflow.
void SetPaintingDisabled(bool aDisable) { mPaintingDisabled = aDisable; }
@@ -68,7 +71,7 @@ private:
RefPtr<nsPresContext> mPresContext;
nsRenderingContext *mRenderingContext;
const ReflowInput *mOuterReflowInput;
- uint32_t mLayoutFlags;
+ nsIFrame::ReflowChildFlags mLayoutFlags;
uint16_t mReflowDepth;
bool mPaintingDisabled;
};