r=mkaply, a=asa for drivers
OS/2 only - back out OS/2 specific fix to fix regression
I'm checking this in now so I can make our automatic daily build on OS/2
This commit is contained in:
mkaply%us.ibm.com 2001-12-12 23:14:55 +00:00
parent 6790f0e7f5
commit 3bc695d956
2 changed files with 2 additions and 10 deletions

View File

@ -4399,16 +4399,12 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
PRBool endsInNewline = PR_FALSE;
PRBool justDidFirstLetter = PR_FALSE;
nsTextDimensions dimensions, lastWordDimensions;
#if defined(_WIN32)
#if defined(_WIN32) || defined(XP_OS2)
PRBool measureTextRuns = !aTextData.mComputeMaxWordWidth && !aTs.mPreformatted &&
!aTs.mSmallCaps && !aTs.mWordSpacing && !aTs.mLetterSpacing &&
aTextData.mWrapping;
// Don't measure text runs with letter spacing active, it doesn't work
// it also doesn't work if we are not word-wrapping (bug 42832)
#elif defined(XP_OS2)
PRBool measureTextRuns = !aTextData.mComputeMaxWordWidth && !aTs.mSmallCaps &&
!aTs.mWordSpacing && !aTs.mLetterSpacing &&
aTextData.mWrapping;
#else
PRBool measureTextRuns = PR_FALSE;
#endif

View File

@ -4399,16 +4399,12 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
PRBool endsInNewline = PR_FALSE;
PRBool justDidFirstLetter = PR_FALSE;
nsTextDimensions dimensions, lastWordDimensions;
#if defined(_WIN32)
#if defined(_WIN32) || defined(XP_OS2)
PRBool measureTextRuns = !aTextData.mComputeMaxWordWidth && !aTs.mPreformatted &&
!aTs.mSmallCaps && !aTs.mWordSpacing && !aTs.mLetterSpacing &&
aTextData.mWrapping;
// Don't measure text runs with letter spacing active, it doesn't work
// it also doesn't work if we are not word-wrapping (bug 42832)
#elif defined(XP_OS2)
PRBool measureTextRuns = !aTextData.mComputeMaxWordWidth && !aTs.mSmallCaps &&
!aTs.mWordSpacing && !aTs.mLetterSpacing &&
aTextData.mWrapping;
#else
PRBool measureTextRuns = PR_FALSE;
#endif