mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
removed conditional calling of view->SetDimensions() in SizeTo().
This commit is contained in:
parent
22f96a82ef
commit
bf7e14549f
@ -273,7 +273,13 @@ NS_METHOD nsFrame::MoveTo(nscoord aX, nscoord aY)
|
||||
|
||||
NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight)
|
||||
{
|
||||
if ((aWidth != mRect.width) || (aHeight != mRect.height)) {
|
||||
//I have commented out this if test since we really need to
|
||||
//always pass the fact that a resize was attempted to the
|
||||
//view system. Today is 23-apr-98. If this change still looks
|
||||
//good on or after 23-may-98, I'll kill the commented code
|
||||
//altogether. Pretty scientific, huh? MMP
|
||||
|
||||
// if ((aWidth != mRect.width) || (aHeight != mRect.height)) {
|
||||
mRect.width = aWidth;
|
||||
mRect.height = aHeight;
|
||||
|
||||
@ -281,7 +287,7 @@ NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight)
|
||||
if (nsnull != mView) {
|
||||
mView->SetDimensions(aWidth, aHeight);
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user