XUL frame elements should not have the preferred size that HTML iframes do b=217477 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@158162 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
14d320aeed
commit
e6bcffa70c
@ -302,11 +302,12 @@ nsSubDocumentFrame::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize)
|
||||
{
|
||||
// <frame> processing does not use this routine, only <iframe>
|
||||
float p2t;
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
float p2t = 0;
|
||||
if (!mContent->IsContentOfType(nsIContent::eXUL))
|
||||
// If no width/height was specified, use 300/150.
|
||||
// This is for compatability with IE.
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
|
||||
// If no width/height was specified, use 300/150.
|
||||
// This is for compatability with IE.
|
||||
if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedWidth) {
|
||||
aDesiredSize.width = aReflowState.mComputedWidth;
|
||||
}
|
||||
|
||||
@ -302,11 +302,12 @@ nsSubDocumentFrame::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize)
|
||||
{
|
||||
// <frame> processing does not use this routine, only <iframe>
|
||||
float p2t;
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
float p2t = 0;
|
||||
if (!mContent->IsContentOfType(nsIContent::eXUL))
|
||||
// If no width/height was specified, use 300/150.
|
||||
// This is for compatability with IE.
|
||||
aPresContext->GetScaledPixelsToTwips(&p2t);
|
||||
|
||||
// If no width/height was specified, use 300/150.
|
||||
// This is for compatability with IE.
|
||||
if (NS_UNCONSTRAINEDSIZE != aReflowState.mComputedWidth) {
|
||||
aDesiredSize.width = aReflowState.mComputedWidth;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user