зеркало из https://github.com/mozilla/pjs.git
Bug 405951. Thunderbird newsgroup/feed messages coming up blank in virtual buffer. Hoping null checks will fix. r=surkov, a=blocking1.9
This commit is contained in:
Родитель
c87c4fddaa
Коммит
194e4e7c05
|
@ -88,6 +88,8 @@ nsresult nsCaretAccessible::ClearControlSelectionListener()
|
|||
|
||||
nsresult nsCaretAccessible::SetControlSelectionListener(nsIDOMNode *aCurrentNode)
|
||||
{
|
||||
NS_ENSURE_TRUE(mRootAccessible, NS_ERROR_FAILURE);
|
||||
|
||||
mCurrentControl = aCurrentNode;
|
||||
mLastTextAccessible = nsnull;
|
||||
|
||||
|
@ -248,6 +250,7 @@ nsCaretAccessible::GetCaretRect(nsIWidget **aOutWidget)
|
|||
nsRect caretRect;
|
||||
NS_ENSURE_TRUE(aOutWidget, caretRect);
|
||||
*aOutWidget = nsnull;
|
||||
NS_ENSURE_TRUE(mRootAccessible, caretRect);
|
||||
|
||||
if (!mLastTextAccessible) {
|
||||
return caretRect; // Return empty rect
|
||||
|
|
Загрузка…
Ссылка в новой задаче