зеркало из https://github.com/mozilla/pjs.git
Bug 189295 nsTextFrame.cpp: The variable isWhitespace has not yet been assigned a value.
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rbs sr=roc+moz
This commit is contained in:
Родитель
1d38d9f953
Коммит
c8d3c14c64
|
@ -4827,6 +4827,9 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
|||
wordLen = start;
|
||||
#endif // IBMBIDI
|
||||
|
||||
bp2 = aTx.GetNextWord(aTextData.mInWord, &wordLen, &contentLen, &isWhitespace,
|
||||
&wasTransformed, textRun.mNumSegments == 0);
|
||||
|
||||
// We need to set aTextData.mCanBreakBefore to true after 1st word. But we can't set
|
||||
// aTextData.mCanBreakBefore without seeing the 2nd word. That's because this frame
|
||||
// may only contain part of one word, the other part is in next frame.
|
||||
|
@ -4835,8 +4838,6 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
|||
firstWordDone = PR_TRUE;
|
||||
}
|
||||
|
||||
bp2 = aTx.GetNextWord(aTextData.mInWord, &wordLen, &contentLen, &isWhitespace,
|
||||
&wasTransformed, textRun.mNumSegments == 0);
|
||||
#ifdef IBMBIDI
|
||||
if (nextBidi) {
|
||||
mContentLength -= contentLen;
|
||||
|
|
|
@ -4827,6 +4827,9 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
|||
wordLen = start;
|
||||
#endif // IBMBIDI
|
||||
|
||||
bp2 = aTx.GetNextWord(aTextData.mInWord, &wordLen, &contentLen, &isWhitespace,
|
||||
&wasTransformed, textRun.mNumSegments == 0);
|
||||
|
||||
// We need to set aTextData.mCanBreakBefore to true after 1st word. But we can't set
|
||||
// aTextData.mCanBreakBefore without seeing the 2nd word. That's because this frame
|
||||
// may only contain part of one word, the other part is in next frame.
|
||||
|
@ -4835,8 +4838,6 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
|||
firstWordDone = PR_TRUE;
|
||||
}
|
||||
|
||||
bp2 = aTx.GetNextWord(aTextData.mInWord, &wordLen, &contentLen, &isWhitespace,
|
||||
&wasTransformed, textRun.mNumSegments == 0);
|
||||
#ifdef IBMBIDI
|
||||
if (nextBidi) {
|
||||
mContentLength -= contentLen;
|
||||
|
|
Загрузка…
Ссылка в новой задаче