зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #13497. Made sure to use NS_BLOCK_MARGIN_ROOT flag when creating
the area frame for a scrolled block element
This commit is contained in:
Родитель
aae43526fb
Коммит
fa27198a6d
|
@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
|
|||
{
|
||||
// Create an area container for the frame
|
||||
nsIFrame* scrolledFrame;
|
||||
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP);
|
||||
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT);
|
||||
|
||||
|
||||
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,
|
||||
|
|
|
@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
|
|||
{
|
||||
// Create an area container for the frame
|
||||
nsIFrame* scrolledFrame;
|
||||
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP);
|
||||
NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT);
|
||||
|
||||
|
||||
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,
|
||||
|
|
Загрузка…
Ссылка в новой задаче