зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
8d1bfcdda9
Коммит
661cec2ff4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче