diff --git a/mozilla/layout/generic/nsLineBox.h b/mozilla/layout/generic/nsLineBox.h index 4e2d0ecc343..a6aaaf53155 100644 --- a/mozilla/layout/generic/nsLineBox.h +++ b/mozilla/layout/generic/nsLineBox.h @@ -29,6 +29,7 @@ #define LINE_TOP_MARGIN_IS_AUTO 0x10 #define LINE_BOTTOM_MARGIN_IS_AUTO 0x20 #define LINE_OUTSIDE_CHILDREN 0x40 +#define LINE_ISA_EMPTY_LINE 0x80 class nsISpaceManager; class nsLineBox; @@ -64,6 +65,17 @@ public: PRBool CheckIsBlock() const; #endif + PRBool IsEmptyLine() const { + return 0 != (mState & LINE_ISA_EMPTY_LINE); + } + + void SetIsEmptyLine(PRBool aSetting) { + if (aSetting) + mState |= aSetting; + else + mState &= ~aSetting; + } + //---------------------------------------------------------------------- // XXX old junk nsLineBox(nsIFrame* aFrame, PRInt32 aCount, PRUint16 flags); diff --git a/mozilla/layout/html/base/src/nsLineBox.h b/mozilla/layout/html/base/src/nsLineBox.h index 4e2d0ecc343..a6aaaf53155 100644 --- a/mozilla/layout/html/base/src/nsLineBox.h +++ b/mozilla/layout/html/base/src/nsLineBox.h @@ -29,6 +29,7 @@ #define LINE_TOP_MARGIN_IS_AUTO 0x10 #define LINE_BOTTOM_MARGIN_IS_AUTO 0x20 #define LINE_OUTSIDE_CHILDREN 0x40 +#define LINE_ISA_EMPTY_LINE 0x80 class nsISpaceManager; class nsLineBox; @@ -64,6 +65,17 @@ public: PRBool CheckIsBlock() const; #endif + PRBool IsEmptyLine() const { + return 0 != (mState & LINE_ISA_EMPTY_LINE); + } + + void SetIsEmptyLine(PRBool aSetting) { + if (aSetting) + mState |= aSetting; + else + mState &= ~aSetting; + } + //---------------------------------------------------------------------- // XXX old junk nsLineBox(nsIFrame* aFrame, PRInt32 aCount, PRUint16 flags);