Bug 357351. Assertion should be #ifdef MOZ_CAIRO_GFX only. Debug-only change.

This commit is contained in:
roc+%cs.cmu.edu 2006-12-11 00:09:50 +00:00
Родитель 511bb87f9c
Коммит 31f294932e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -5425,8 +5425,10 @@ nsTextFrame::MeasureText(nsPresContext* aPresContext,
PRInt32 measureChars = textRun.mTotalNumChars;
if (forcedOffset == -1) {
forcedOffset -= aTextData.mOffset;
#ifdef MOZ_CAIRO_GFX
NS_ASSERTION(forcedOffset >= 0,
"Overshot forced offset, we should have already exited");
#endif
if (forcedOffset >= 0 && forcedOffset < textRun.mTotalNumChars) {
// Only measure up to forcedOffset characters. We still need to measure
// to make sure we get the right text dimensions, even though we know