eliminate some build warnings. See bug 187117.
git-svn-id: svn://10.0.0.236/trunk@136426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -105,11 +105,9 @@ NS_METHOD nsSplittableFrame::SetNextInFlow(nsIFrame* aFrame)
|
||||
|
||||
nsIFrame* nsSplittableFrame::GetFirstInFlow() const
|
||||
{
|
||||
nsSplittableFrame* firstInFlow;
|
||||
nsSplittableFrame* prevInFlow = (nsSplittableFrame*)this;
|
||||
while (prevInFlow) {
|
||||
firstInFlow = prevInFlow;
|
||||
prevInFlow = (nsSplittableFrame*)firstInFlow->mPrevInFlow;
|
||||
nsSplittableFrame* firstInFlow = (nsSplittableFrame*)this;
|
||||
while (firstInFlow->mPrevInFlow) {
|
||||
firstInFlow = (nsSplittableFrame*)firstInFlow->mPrevInFlow;
|
||||
}
|
||||
NS_POSTCONDITION(firstInFlow, "illegal state in flow chain.");
|
||||
return firstInFlow;
|
||||
@@ -117,11 +115,9 @@ nsIFrame* nsSplittableFrame::GetFirstInFlow() const
|
||||
|
||||
nsIFrame* nsSplittableFrame::GetLastInFlow() const
|
||||
{
|
||||
nsSplittableFrame* lastInFlow;
|
||||
nsSplittableFrame* nextInFlow = (nsSplittableFrame*)this;
|
||||
while (nextInFlow) {
|
||||
lastInFlow = nextInFlow;
|
||||
nextInFlow = (nsSplittableFrame*)lastInFlow->mNextInFlow;
|
||||
nsSplittableFrame* lastInFlow = (nsSplittableFrame*)this;
|
||||
while (lastInFlow->mNextInFlow) {
|
||||
lastInFlow = (nsSplittableFrame*)lastInFlow->mNextInFlow;
|
||||
}
|
||||
NS_POSTCONDITION(lastInFlow, "illegal state in flow chain.");
|
||||
return lastInFlow;
|
||||
|
||||
Reference in New Issue
Block a user