Move GetFirstInFlow/GetLastInFlow up to nsIFrame. Bug 187117, r=roc+moz, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@136402 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -107,11 +107,11 @@ nsIFrame* nsSplittableFrame::GetFirstInFlow() const
|
||||
{
|
||||
nsSplittableFrame* firstInFlow;
|
||||
nsSplittableFrame* prevInFlow = (nsSplittableFrame*)this;
|
||||
while (nsnull!=prevInFlow) {
|
||||
while (prevInFlow) {
|
||||
firstInFlow = prevInFlow;
|
||||
prevInFlow = (nsSplittableFrame*)firstInFlow->mPrevInFlow;
|
||||
}
|
||||
NS_POSTCONDITION(nsnull!=firstInFlow, "illegal state in flow chain.");
|
||||
NS_POSTCONDITION(firstInFlow, "illegal state in flow chain.");
|
||||
return firstInFlow;
|
||||
}
|
||||
|
||||
@@ -119,11 +119,11 @@ nsIFrame* nsSplittableFrame::GetLastInFlow() const
|
||||
{
|
||||
nsSplittableFrame* lastInFlow;
|
||||
nsSplittableFrame* nextInFlow = (nsSplittableFrame*)this;
|
||||
while (nsnull!=nextInFlow) {
|
||||
while (nextInFlow) {
|
||||
lastInFlow = nextInFlow;
|
||||
nextInFlow = (nsSplittableFrame*)lastInFlow->mNextInFlow;
|
||||
}
|
||||
NS_POSTCONDITION(nsnull!=lastInFlow, "illegal state in flow chain.");
|
||||
NS_POSTCONDITION(lastInFlow, "illegal state in flow chain.");
|
||||
return lastInFlow;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user