From b9d43dc313aac8ba274826b2cb999550238c36f4 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Mon, 1 Feb 1999 17:32:49 +0000 Subject: [PATCH] Implement TreatFrameAsBlock --- layout/generic/nsLineLayout.cpp | 10 ++++++++++ layout/html/base/src/nsLineLayout.cpp | 10 ++++++++++ 2 files changed, 20 insertions(+) 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,