small fixes for BR frames getting correct offset. also one case of textframe not returning proper location (simply a missed change of a regressed call in PeekOffset) nsCaret was also too stringent on the limitation of text frames as the only frames to get the caret position. these were reviewed by a few people and i just dont remember. r=simon,cmanske,akkana and hyatt?

git-svn-id: svn://10.0.0.236/trunk@54299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
1999-11-23 20:30:21 +00:00
parent 5a557d72ae
commit 43a63010d1
8 changed files with 106 additions and 42 deletions

View File

@@ -663,11 +663,10 @@ nsFrame::Paint(nsIPresContext& aPresContext,
if (NS_FAILED(result))
return result;
PRBool displaySelection;
//result = shell->GetDisplayNonTextSelection(&displaySelection);
//if (NS_FAILED(result))
//return result;
displaySelection = PR_TRUE;
PRBool displaySelection = PR_TRUE;
result = shell->GetDisplayNonTextSelection(&displaySelection);
if (NS_FAILED(result))
return result;
if (!displaySelection)
return NS_OK;
if (mContent) {