diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 0cbf5f128c8..3d9fc3b5b01 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -216,6 +216,16 @@ nsLineLayout::TreatFrameAsBlock(const nsStyleDisplay* aDisplay, return PR_FALSE; } +PRBool +nsLineLayout::TreatFrameAsBlock(nsIFrame* aFrame) +{ + const nsStyleDisplay* display; + const nsStylePosition* position; + aFrame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) display); + aFrame->GetStyleData(eStyleStruct_Position,(const nsStyleStruct*&) position); + return TreatFrameAsBlock(display, position); +} + void nsLineLayout::UpdateInlines(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight, diff --git a/layout/html/base/src/nsLineLayout.cpp b/layout/html/base/src/nsLineLayout.cpp index 0cbf5f128c8..3d9fc3b5b01 100644 --- a/layout/html/base/src/nsLineLayout.cpp +++ b/layout/html/base/src/nsLineLayout.cpp @@ -216,6 +216,16 @@ nsLineLayout::TreatFrameAsBlock(const nsStyleDisplay* aDisplay, return PR_FALSE; } +PRBool +nsLineLayout::TreatFrameAsBlock(nsIFrame* aFrame) +{ + const nsStyleDisplay* display; + const nsStylePosition* position; + aFrame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) display); + aFrame->GetStyleData(eStyleStruct_Position,(const nsStyleStruct*&) position); + return TreatFrameAsBlock(display, position); +} + void nsLineLayout::UpdateInlines(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight,