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:
@@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
|
|||||||
{
|
{
|
||||||
// Create an area container for the frame
|
// Create an area container for the frame
|
||||||
nsIFrame* scrolledFrame;
|
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,
|
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,
|
||||||
|
|||||||
@@ -3987,7 +3987,7 @@ nsCSSFrameConstructor::BuildBlockScrollFrame (nsIPresContext* aPresC
|
|||||||
{
|
{
|
||||||
// Create an area container for the frame
|
// Create an area container for the frame
|
||||||
nsIFrame* scrolledFrame;
|
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,
|
nsresult rv = BuildScrollFrame(aPresContext, aState, aContent, scrolledFrame, aParentFrame,
|
||||||
|
|||||||
Reference in New Issue
Block a user