зеркало из https://github.com/mozilla/gecko-dev.git
Removed cruft; added IsHTMLParagraph method
This commit is contained in:
Родитель
c5e839c1a3
Коммит
60a2733104
|
@ -64,18 +64,6 @@ public:
|
|||
nsRect& aInFlowBounds,
|
||||
nsRect& aCombinedRect);
|
||||
|
||||
//XXX nscoord GetCollapsedTopMargin() const {
|
||||
//XXX return mTopMargin;
|
||||
//XXX }
|
||||
|
||||
//XXX nscoord GetCollapsedBottomMargin() const {
|
||||
//XXX return mBottomMargin;
|
||||
//XXX }
|
||||
|
||||
//XXX nscoord GetCarriedOutTopMargin() const {
|
||||
//XXX return mMetrics.mCarriedOutTopMargin;
|
||||
//XXX }
|
||||
|
||||
nscoord GetCarriedOutBottomMargin() const {
|
||||
return mMetrics.mCarriedOutBottomMargin;
|
||||
}
|
||||
|
@ -84,12 +72,6 @@ public:
|
|||
return mMaxElementSize;
|
||||
}
|
||||
|
||||
static void ComputeMarginsFor(nsIPresContext& aPresContext,
|
||||
nsIFrame* aFrame,
|
||||
const nsStyleSpacing* aSpacing,
|
||||
const nsHTMLReflowState& aParentRS,
|
||||
nsMargin& aResult);
|
||||
|
||||
static void CollapseMargins(const nsMargin& aMargin,
|
||||
nscoord aCarriedOutTopMargin,
|
||||
nscoord aCarriedOutBottomMargin,
|
||||
|
@ -98,6 +80,8 @@ public:
|
|||
nscoord& aTopMarginResult,
|
||||
nscoord& aBottomMarginResult);
|
||||
|
||||
// Compute the largest of two adjacent vertical margins, as per the
|
||||
// CSS2 spec section 8.3.1
|
||||
static nscoord MaxMargin(nscoord a, nscoord b) {
|
||||
if (a < 0) {
|
||||
if (b < 0) {
|
||||
|
@ -113,6 +97,8 @@ public:
|
|||
return b;
|
||||
}
|
||||
|
||||
static PRBool IsHTMLParagraph(nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
nsStyleUnit GetRealMarginLeftUnit();
|
||||
nsStyleUnit GetRealMarginRightUnit();
|
||||
|
@ -131,9 +117,7 @@ protected:
|
|||
nsMargin mMargin;
|
||||
nscoord mX, mY;
|
||||
nsHTMLReflowMetrics mMetrics;
|
||||
//XXX nscoord mSpeculativeTopMargin;
|
||||
//XXX nscoord mTopMargin;
|
||||
//XXX nscoord mBottomMargin;
|
||||
nscoord mTopMargin;
|
||||
nsSize mMaxElementSize;
|
||||
PRBool mIsTable;
|
||||
|
||||
|
|
|
@ -64,18 +64,6 @@ public:
|
|||
nsRect& aInFlowBounds,
|
||||
nsRect& aCombinedRect);
|
||||
|
||||
//XXX nscoord GetCollapsedTopMargin() const {
|
||||
//XXX return mTopMargin;
|
||||
//XXX }
|
||||
|
||||
//XXX nscoord GetCollapsedBottomMargin() const {
|
||||
//XXX return mBottomMargin;
|
||||
//XXX }
|
||||
|
||||
//XXX nscoord GetCarriedOutTopMargin() const {
|
||||
//XXX return mMetrics.mCarriedOutTopMargin;
|
||||
//XXX }
|
||||
|
||||
nscoord GetCarriedOutBottomMargin() const {
|
||||
return mMetrics.mCarriedOutBottomMargin;
|
||||
}
|
||||
|
@ -84,12 +72,6 @@ public:
|
|||
return mMaxElementSize;
|
||||
}
|
||||
|
||||
static void ComputeMarginsFor(nsIPresContext& aPresContext,
|
||||
nsIFrame* aFrame,
|
||||
const nsStyleSpacing* aSpacing,
|
||||
const nsHTMLReflowState& aParentRS,
|
||||
nsMargin& aResult);
|
||||
|
||||
static void CollapseMargins(const nsMargin& aMargin,
|
||||
nscoord aCarriedOutTopMargin,
|
||||
nscoord aCarriedOutBottomMargin,
|
||||
|
@ -98,6 +80,8 @@ public:
|
|||
nscoord& aTopMarginResult,
|
||||
nscoord& aBottomMarginResult);
|
||||
|
||||
// Compute the largest of two adjacent vertical margins, as per the
|
||||
// CSS2 spec section 8.3.1
|
||||
static nscoord MaxMargin(nscoord a, nscoord b) {
|
||||
if (a < 0) {
|
||||
if (b < 0) {
|
||||
|
@ -113,6 +97,8 @@ public:
|
|||
return b;
|
||||
}
|
||||
|
||||
static PRBool IsHTMLParagraph(nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
nsStyleUnit GetRealMarginLeftUnit();
|
||||
nsStyleUnit GetRealMarginRightUnit();
|
||||
|
@ -131,9 +117,7 @@ protected:
|
|||
nsMargin mMargin;
|
||||
nscoord mX, mY;
|
||||
nsHTMLReflowMetrics mMetrics;
|
||||
//XXX nscoord mSpeculativeTopMargin;
|
||||
//XXX nscoord mTopMargin;
|
||||
//XXX nscoord mBottomMargin;
|
||||
nscoord mTopMargin;
|
||||
nsSize mMaxElementSize;
|
||||
PRBool mIsTable;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче