Added set/get empty line methods (currently unused)

git-svn-id: svn://10.0.0.236/trunk@16587 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-12-17 18:54:40 +00:00
parent 5a88b6edb8
commit 59fd0fcd5b
2 changed files with 24 additions and 0 deletions

View File

@ -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);

View File

@ -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);