Bug 541618 - fix solaris bustage

This commit is contained in:
Alexander Surkov 2010-06-11 18:54:18 +09:00
parent 1ad04a6449
commit 86123c4733

View File

@ -1653,7 +1653,7 @@ PRInt32 nsHyperTextAccessible::GetCaretLineNumber()
PRInt32 lineNumber = 1;
nsAutoLineIterator lineIterForCaret;
nsIContent *hyperTextContent = IsContent() ? mContent : nsnull;
nsIContent *hyperTextContent = IsContent() ? mContent.get() : nsnull;
while (caretFrame) {
if (hyperTextContent == caretFrame->GetContent()) {
return lineNumber; // Must be in a single line hyper text, there is no line iterator