Commit 0becbd96 authored by Magnus Melin's avatar Magnus Melin
Browse files

Bug 1654620 - fix Crash in [@ nsTreeBodyFrame::GetSelectionRegion]. r=emilio, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D90082
parent 8225d049
......@@ -471,6 +471,10 @@ int32_t nsTreeBodyFrame::GetHorizontalPosition() const {
}
Maybe<CSSIntRegion> nsTreeBodyFrame::GetSelectionRegion() {
if (!mView) {
return Nothing();
}
nsCOMPtr<nsITreeSelection> selection;
mView->GetSelection(getter_AddRefs(selection));
if (!selection) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment