r=mkaply, sr=attinasi
OS/2 only - don't shortcut font computations for fixed with fonts


git-svn-id: svn://10.0.0.236/trunk@109393 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2001-11-30 22:47:57 +00:00
parent 3f17113145
commit 4defff2d32
2 changed files with 10 additions and 2 deletions

View File

@@ -4395,12 +4395,16 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
PRBool endsInNewline = PR_FALSE;
PRBool justDidFirstLetter = PR_FALSE;
nsTextDimensions dimensions, lastWordDimensions;
#if defined(_WIN32) || defined(XP_OS2)
#if defined(_WIN32)
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

@@ -4395,12 +4395,16 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
PRBool endsInNewline = PR_FALSE;
PRBool justDidFirstLetter = PR_FALSE;
nsTextDimensions dimensions, lastWordDimensions;
#if defined(_WIN32) || defined(XP_OS2)
#if defined(_WIN32)
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