mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Wrap created frames in a view if necessary
This commit is contained in:
parent
a749574762
commit
bdcfe7d55f
@ -30,6 +30,7 @@
|
||||
#include "nsCRT.h"
|
||||
#include "nsReflowCommand.h"
|
||||
#include "nsIFontMetrics.h"
|
||||
#include "nsHTMLFrame.h"
|
||||
|
||||
#undef NOISY_REFLOW
|
||||
|
||||
@ -1399,6 +1400,14 @@ nsLineLayout::CreateFrameFor(nsIContent* aKid)
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
if (NS_OK == rv) {
|
||||
// Wrap the frame in a view if necessary
|
||||
rv = nsHTMLFrame::CreateViewForFrame(mPresContext, kidFrame, kidSC,
|
||||
PR_FALSE);
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
mState.mKidFrame = kidFrame;
|
||||
mNewFrames++;
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "nsCRT.h"
|
||||
#include "nsReflowCommand.h"
|
||||
#include "nsIFontMetrics.h"
|
||||
#include "nsHTMLFrame.h"
|
||||
|
||||
#undef NOISY_REFLOW
|
||||
|
||||
@ -1399,6 +1400,14 @@ nsLineLayout::CreateFrameFor(nsIContent* aKid)
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
if (NS_OK == rv) {
|
||||
// Wrap the frame in a view if necessary
|
||||
rv = nsHTMLFrame::CreateViewForFrame(mPresContext, kidFrame, kidSC,
|
||||
PR_FALSE);
|
||||
if (NS_OK != rv) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
mState.mKidFrame = kidFrame;
|
||||
mNewFrames++;
|
||||
|
Loading…
Reference in New Issue
Block a user