зеркало из https://github.com/mozilla/gecko-dev.git
Added set/get empty line methods (currently unused)
This commit is contained in:
Родитель
0a7f47b0de
Коммит
61e5ececd9
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче