Added NS_FRAME_IS_DIRTY flag to the frame state flags
git-svn-id: svn://10.0.0.236/trunk@40547 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a27e4c657d
commit
afd55b77d6
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user