mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 712937 - Null-check aRange. r=bzbarsky
This commit is contained in:
parent
0fc5b748c2
commit
2ab972acef
@ -4336,8 +4336,12 @@ nsTypedSelection::SelectAllFramesForContent(nsIContentIterator *aInnerIter,
|
||||
nsresult
|
||||
nsTypedSelection::selectFrames(nsPresContext* aPresContext, nsIRange *aRange, bool aFlags)
|
||||
{
|
||||
if (!mFrameSelection || !aPresContext || !aPresContext->GetPresShell())
|
||||
if (!mFrameSelection || !aPresContext || !aPresContext->GetPresShell()) {
|
||||
return NS_OK; // nothing to do
|
||||
}
|
||||
if (!aRange) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
if (mFrameSelection->GetTableCellSelection()) {
|
||||
nsINode* node = aRange->GetCommonAncestor();
|
||||
|
Loading…
Reference in New Issue
Block a user