зеркало из https://github.com/mozilla/gecko-dev.git
Don't make floaters a margin root (that was a mistake)
This commit is contained in:
Родитель
7799a4ecc0
Коммит
c49f9d3f77
|
@ -2647,7 +2647,7 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPresCo
|
|||
(NS_STYLE_DISPLAY_INLINE == aDisplay->mDisplay) ||
|
||||
(NS_STYLE_DISPLAY_LIST_ITEM == aDisplay->mDisplay))) {
|
||||
// Create an area frame
|
||||
NS_NewAreaFrame(newFrame, NS_BLOCK_SHRINK_WRAP|NS_BLOCK_MARGIN_ROOT);
|
||||
NS_NewAreaFrame(newFrame, NS_BLOCK_SHRINK_WRAP);
|
||||
|
||||
// Initialize the frame
|
||||
newFrame->Init(*aPresContext, aContent, aParentFrame, aStyleContext, nsnull);
|
||||
|
|
|
@ -2647,7 +2647,7 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPresCo
|
|||
(NS_STYLE_DISPLAY_INLINE == aDisplay->mDisplay) ||
|
||||
(NS_STYLE_DISPLAY_LIST_ITEM == aDisplay->mDisplay))) {
|
||||
// Create an area frame
|
||||
NS_NewAreaFrame(newFrame, NS_BLOCK_SHRINK_WRAP|NS_BLOCK_MARGIN_ROOT);
|
||||
NS_NewAreaFrame(newFrame, NS_BLOCK_SHRINK_WRAP);
|
||||
|
||||
// Initialize the frame
|
||||
newFrame->Init(*aPresContext, aContent, aParentFrame, aStyleContext, nsnull);
|
||||
|
|
Загрузка…
Ссылка в новой задаче