зеркало из https://github.com/mozilla/pjs.git
Use new body ctor api
This commit is contained in:
Родитель
71bc0b2f0a
Коммит
d8aa105bd8
|
@ -194,7 +194,7 @@ nsHTMLContainerFrame::CreateWrapperFrame(nsIPresContext& aPresContext,
|
|||
content->CanContainChildren(isContainer);
|
||||
if (isContainer) {
|
||||
// Wrap the floated element in a BODY frame.
|
||||
NS_NewBodyFrame(content, this, aWrapperFrame, PR_FALSE);
|
||||
NS_NewBodyFrame(content, this, aWrapperFrame, NS_BODY_SHRINK_WRAP);/* XXX auto margins? */
|
||||
|
||||
// The body wrapper frame gets the original style context, and the floated
|
||||
// frame gets a pseudo style context
|
||||
|
|
|
@ -194,7 +194,7 @@ nsHTMLContainerFrame::CreateWrapperFrame(nsIPresContext& aPresContext,
|
|||
content->CanContainChildren(isContainer);
|
||||
if (isContainer) {
|
||||
// Wrap the floated element in a BODY frame.
|
||||
NS_NewBodyFrame(content, this, aWrapperFrame, PR_FALSE);
|
||||
NS_NewBodyFrame(content, this, aWrapperFrame, NS_BODY_SHRINK_WRAP);/* XXX auto margins? */
|
||||
|
||||
// The body wrapper frame gets the original style context, and the floated
|
||||
// frame gets a pseudo style context
|
||||
|
|
Загрузка…
Ссылка в новой задаче