зеркало из https://github.com/mozilla/pjs.git
Added NS_FRAME_IS_DIRTY flag to the frame state flags
This commit is contained in:
Родитель
79fe1cbfc7
Коммит
b2994f2d65
|
@ -130,6 +130,9 @@ typedef PRUint32 nsFrameState;
|
|||
// If this bit is set, then the frame reflects content that may be selected
|
||||
#define NS_FRAME_SELECTED_CONTENT 0x00000200
|
||||
|
||||
// If this bit is set, then the frame is dirty and needs to be reflowed
|
||||
#define NS_FRAME_IS_DIRTY 0x00000400
|
||||
|
||||
// The low 16 bits of the frame state word are reserved by this API.
|
||||
#define NS_FRAME_RESERVED 0x0000FFFF
|
||||
|
||||
|
|
|
@ -1037,7 +1037,7 @@ nsFrame::DidReflow(nsIPresContext& aPresContext,
|
|||
NS_FRAME_TRACE_MSG(NS_FRAME_TRACE_CALLS,
|
||||
("nsFrame::DidReflow: aStatus=%d", aStatus));
|
||||
if (NS_FRAME_REFLOW_FINISHED == aStatus) {
|
||||
mState &= ~(NS_FRAME_IN_REFLOW | NS_FRAME_FIRST_REFLOW);
|
||||
mState &= ~(NS_FRAME_IN_REFLOW | NS_FRAME_FIRST_REFLOW | NS_FRAME_IS_DIRTY);
|
||||
|
||||
// Size and position the view if requested
|
||||
if ((nsnull != mView) && (NS_FRAME_SYNC_FRAME_AND_VIEW & mState)) {
|
||||
|
|
|
@ -130,6 +130,9 @@ typedef PRUint32 nsFrameState;
|
|||
// If this bit is set, then the frame reflects content that may be selected
|
||||
#define NS_FRAME_SELECTED_CONTENT 0x00000200
|
||||
|
||||
// If this bit is set, then the frame is dirty and needs to be reflowed
|
||||
#define NS_FRAME_IS_DIRTY 0x00000400
|
||||
|
||||
// The low 16 bits of the frame state word are reserved by this API.
|
||||
#define NS_FRAME_RESERVED 0x0000FFFF
|
||||
|
||||
|
|
|
@ -1037,7 +1037,7 @@ nsFrame::DidReflow(nsIPresContext& aPresContext,
|
|||
NS_FRAME_TRACE_MSG(NS_FRAME_TRACE_CALLS,
|
||||
("nsFrame::DidReflow: aStatus=%d", aStatus));
|
||||
if (NS_FRAME_REFLOW_FINISHED == aStatus) {
|
||||
mState &= ~(NS_FRAME_IN_REFLOW | NS_FRAME_FIRST_REFLOW);
|
||||
mState &= ~(NS_FRAME_IN_REFLOW | NS_FRAME_FIRST_REFLOW | NS_FRAME_IS_DIRTY);
|
||||
|
||||
// Size and position the view if requested
|
||||
if ((nsnull != mView) && (NS_FRAME_SYNC_FRAME_AND_VIEW & mState)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче