Bug 11762: Create a webshell for an iframe even if size is 0x0. r=evaughan a=chofmann
This commit is contained in:
@@ -856,8 +856,9 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext* aPresContext,
|
|||||||
nsAutoString url;
|
nsAutoString url;
|
||||||
PRBool hasURL = GetURL(content, url);
|
PRBool hasURL = GetURL(content, url);
|
||||||
|
|
||||||
// if the size is not 0 and there is a src, create the web shell
|
// if there is a src, create the web shell
|
||||||
if ((aReflowState.availableWidth >= 0) && (aReflowState.availableHeight >= 0) && hasURL) {
|
// we do this even if the size is not positive (bug 11762)
|
||||||
|
if (hasURL) {
|
||||||
if (!mWebShell) {
|
if (!mWebShell) {
|
||||||
nsSize maxSize(aReflowState.availableWidth, aReflowState.availableHeight);
|
nsSize maxSize(aReflowState.availableWidth, aReflowState.availableHeight);
|
||||||
rv = CreateWebShell(aPresContext, maxSize);
|
rv = CreateWebShell(aPresContext, maxSize);
|
||||||
|
|||||||
@@ -856,8 +856,9 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext* aPresContext,
|
|||||||
nsAutoString url;
|
nsAutoString url;
|
||||||
PRBool hasURL = GetURL(content, url);
|
PRBool hasURL = GetURL(content, url);
|
||||||
|
|
||||||
// if the size is not 0 and there is a src, create the web shell
|
// if there is a src, create the web shell
|
||||||
if ((aReflowState.availableWidth >= 0) && (aReflowState.availableHeight >= 0) && hasURL) {
|
// we do this even if the size is not positive (bug 11762)
|
||||||
|
if (hasURL) {
|
||||||
if (!mWebShell) {
|
if (!mWebShell) {
|
||||||
nsSize maxSize(aReflowState.availableWidth, aReflowState.availableHeight);
|
nsSize maxSize(aReflowState.availableWidth, aReflowState.availableHeight);
|
||||||
rv = CreateWebShell(aPresContext, maxSize);
|
rv = CreateWebShell(aPresContext, maxSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user