Skip to content

Commit

Permalink
Bug 1832260: Fallback to LocalAccessible::Bounds if we can't find a f…
Browse files Browse the repository at this point in the history
…rame in ComputeBoundsFromFrame. r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D178576
  • Loading branch information
MReschenberg committed May 23, 2023
1 parent ea2524d commit d23af61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accessible/base/TextLeafRange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ LayoutDeviceIntRect TextLeafPoint::ComputeBoundsFromFrame() const {
nsIFrame* frame = local->GetFrame();
MOZ_ASSERT(frame, "No frame found for acc!");

if (!frame->IsTextFrame()) {
if (!frame || !frame->IsTextFrame()) {
return local->Bounds();
}

Expand Down

0 comments on commit d23af61

Please sign in to comment.