Bug 300105 The found link doesn't have pseudo-focus in FAYT on frame page r+sr=bzbarsky, a=asa

This commit is contained in:
masayuki%d-toybox.com 2005-07-13 16:03:57 +00:00
Родитель c4cf7d4988
Коммит 72a327c669
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -4501,11 +4501,12 @@ nsEventStateManager::GetDocSelectionLocation(nsIContent **aStartContent,
*aStartContent = *aEndContent = nsnull;
nsresult rv = NS_ERROR_FAILURE;
NS_ASSERTION(mPresContext, "mPresContent is null!!");
EnsureDocument(mPresContext);
if (!mDocument)
return rv;
nsIPresShell *shell = nsnull;
if (mPresContext)
shell = mPresContext->GetPresShell();
nsIPresShell *shell;
shell = mPresContext->GetPresShell();
nsIFrameSelection *frameSelection = nsnull;
if (shell)