mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1024966 - Check mResultContent before using it. r=roc
This commit is contained in:
parent
1716725017
commit
e6c58de728
@ -469,7 +469,8 @@ SelectionCarets::UpdateSelectionCarets()
|
||||
false);
|
||||
startFrame->PeekOffset(&pos);
|
||||
nsCOMPtr<nsIContent> endContent = do_QueryInterface(range->GetEndParent());
|
||||
if (nsLayoutUtils::CompareTreePosition(pos.mResultContent, endContent) > 0 ||
|
||||
if ((pos.mResultContent &&
|
||||
nsLayoutUtils::CompareTreePosition(pos.mResultContent, endContent) > 0) ||
|
||||
(pos.mResultContent == endContent &&
|
||||
pos.mContentOffset >= range->EndOffset())) {
|
||||
isTilt = true;
|
||||
|
Loading…
Reference in New Issue
Block a user