mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
set reflow reason properly for incremental changes
This commit is contained in:
parent
5eb5883901
commit
60b2bd4053
@ -532,7 +532,14 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext& aPresContext,
|
||||
if (this == targetFrame) {
|
||||
Invalidate(nsRect(0,0,mRect.width,mRect.height), PR_FALSE);
|
||||
|
||||
reflowState.reason = eReflowReason_Resize;
|
||||
nsIReflowCommand::ReflowType reflowType;
|
||||
aReflowState.reflowCommand->GetType(reflowType);
|
||||
if (nsIReflowCommand::StyleChanged == reflowType) {
|
||||
reflowState.reason = eReflowReason_StyleChange;
|
||||
}
|
||||
else {
|
||||
reflowState.reason = eReflowReason_Resize;
|
||||
}
|
||||
} else {
|
||||
nsIFrame* nextFrame;
|
||||
|
||||
|
@ -532,7 +532,14 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext& aPresContext,
|
||||
if (this == targetFrame) {
|
||||
Invalidate(nsRect(0,0,mRect.width,mRect.height), PR_FALSE);
|
||||
|
||||
reflowState.reason = eReflowReason_Resize;
|
||||
nsIReflowCommand::ReflowType reflowType;
|
||||
aReflowState.reflowCommand->GetType(reflowType);
|
||||
if (nsIReflowCommand::StyleChanged == reflowType) {
|
||||
reflowState.reason = eReflowReason_StyleChange;
|
||||
}
|
||||
else {
|
||||
reflowState.reason = eReflowReason_Resize;
|
||||
}
|
||||
} else {
|
||||
nsIFrame* nextFrame;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user