Added WasDirty for debugging incremental reflow

This commit is contained in:
kipp%netscape.com 1999-04-27 22:12:53 +00:00
Родитель 9601073f8b
Коммит 725fe7b033
2 изменённых файлов: 34 добавлений и 8 удалений

Просмотреть файл

@ -25,6 +25,7 @@
// bits in nsLineBox.mFlags
#define LINE_IS_DIRTY 0x1
#define LINE_IS_BLOCK 0x2
#define LINE_WAS_DIRTY 0x4
#define LINE_NEED_DID_REFLOW 0x8
#define LINE_TOP_MARGIN_IS_AUTO 0x10
#define LINE_BOTTOM_MARGIN_IS_AUTO 0x20
@ -125,6 +126,22 @@ public:
mState &= ~LINE_IS_DIRTY;
}
PRBool IsDirty() const {
return 0 != (LINE_IS_DIRTY & mState);
}
void ClearWasDirty() {
mState &= ~LINE_WAS_DIRTY;
}
void MarkWasDirty() {
mState |= LINE_WAS_DIRTY;
}
PRBool WasDirty() const {
return 0 != (LINE_WAS_DIRTY & mState);
}
void SetNeedDidReflow() {
mState |= LINE_NEED_DID_REFLOW;
}
@ -137,10 +154,6 @@ public:
return 0 != (LINE_NEED_DID_REFLOW & mState);
}
PRBool IsDirty() const {
return 0 != (LINE_IS_DIRTY & mState);
}
#ifdef XXX_need_line_outside_children
void SetOutsideChildren() {
mState |= LINE_OUTSIDE_CHILDREN;

Просмотреть файл

@ -25,6 +25,7 @@
// bits in nsLineBox.mFlags
#define LINE_IS_DIRTY 0x1
#define LINE_IS_BLOCK 0x2
#define LINE_WAS_DIRTY 0x4
#define LINE_NEED_DID_REFLOW 0x8
#define LINE_TOP_MARGIN_IS_AUTO 0x10
#define LINE_BOTTOM_MARGIN_IS_AUTO 0x20
@ -125,6 +126,22 @@ public:
mState &= ~LINE_IS_DIRTY;
}
PRBool IsDirty() const {
return 0 != (LINE_IS_DIRTY & mState);
}
void ClearWasDirty() {
mState &= ~LINE_WAS_DIRTY;
}
void MarkWasDirty() {
mState |= LINE_WAS_DIRTY;
}
PRBool WasDirty() const {
return 0 != (LINE_WAS_DIRTY & mState);
}
void SetNeedDidReflow() {
mState |= LINE_NEED_DID_REFLOW;
}
@ -137,10 +154,6 @@ public:
return 0 != (LINE_NEED_DID_REFLOW & mState);
}
PRBool IsDirty() const {
return 0 != (LINE_IS_DIRTY & mState);
}
#ifdef XXX_need_line_outside_children
void SetOutsideChildren() {
mState |= LINE_OUTSIDE_CHILDREN;