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:
parent
5a88b6edb8
commit
59fd0fcd5b
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user