Skip to content

Commit

Permalink
Bug 1635822 - Early-exit in GetVisualToLayoutTransform() if the conte…
Browse files Browse the repository at this point in the history
…nt element has no frame. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D74071
  • Loading branch information
theres-waldo committed May 6, 2020
1 parent 55a58de commit 40bce5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/base/ViewportUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gfx::Matrix4x4Typed<Units, Units> ViewportUtils::GetVisualToLayoutTransform(
return {};
}
nsCOMPtr<nsIContent> content = nsLayoutUtils::FindContentFor(aScrollId);
if (!content) {
if (!content || !content->GetPrimaryFrame()) {
return {};
}

Expand Down

0 comments on commit 40bce5b

Please sign in to comment.