mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +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
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue