Remove LL_TEXTSTARTSWITHNBSP, since it's a partial and broken solution to the problem, and it's in the wrong place. b=187899 r+sr=roc

This commit is contained in:
dbaron@dbaron.org
2003-09-28 22:56:08 +00:00
parent ae830a4ae5
commit f7edc2b9f3
6 changed files with 0 additions and 52 deletions

View File

@@ -4594,7 +4594,6 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
nscoord prevMaxWordWidth = 0, prevAscent = 0, prevDescent = 0;
PRInt32 lastWordLen = 0;
PRUnichar* lastWordPtr = nsnull;
PRBool textStartsWithNBSP = PR_FALSE;
PRBool endsInWhitespace = PR_FALSE;
PRBool endsInNewline = PR_FALSE;
PRBool justDidFirstLetter = PR_FALSE;
@@ -4813,12 +4812,6 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
} //(aTextData.mMeasureText)
}
else {
// See if the first thing in the section of text is a
// non-breaking space (html nbsp entity). If it is then make
// note of that fact for the line layout logic.
if (aTextData.mWrapping && firstThing && (firstChar == ' ')) {
textStartsWithNBSP = PR_TRUE;
}
aTextData.mSkipWhitespace = PR_FALSE;
if (aTextData.mFirstLetterOK) {
@@ -5186,7 +5179,6 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
// effect the current setting of the ends-in-whitespace flag.
lineLayout.SetColumn(column);
lineLayout.SetUnderstandsWhiteSpace(PR_TRUE);
lineLayout.SetTextStartsWithNBSP(textStartsWithNBSP);
if (0 != aTextData.mX) {
lineLayout.SetEndsInWhiteSpace(endsInWhitespace);
}