Bug 1795661 - Fix typo fixed in the following patch of the bug that causes orange.

MANUAL PUSH: Orange fix CLOSED TREE.
This commit is contained in:
Emilio Cobos Álvarez
2022-10-18 17:26:25 +02:00
parent 79159f9829
commit d23aabedbe

View File

@@ -3776,7 +3776,7 @@ bool PresShell::ScrollFrameIntoView(
// bounds of all our continuations relative to it. We shouldn't jump out of
// our nearest scrollable frame, and that's an ok reference frame, so try to
// use that, or the root frame if there's nothing to scroll in this document.
nsIFrame* container = nsLayoutUtils::GetClosestFrameOfType(
container = nsLayoutUtils::GetClosestFrameOfType(
aTargetFrame->GetParent(), LayoutFrameType::Scroll);
if (!container) {
container = aTargetFrame->PresShell()->GetRootFrame();