mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 703241. Part 4: Don't let 'frame' be treated as its own container in PresShell::DoScrollContentIntoView. r=matspal
--HG-- extra : rebase_source : 1fba4feec8e6686d00c79bb2aea5d5ac0837c116
This commit is contained in:
parent
a8f23be047
commit
7ce96b9824
@ -3279,8 +3279,10 @@ PresShell::DoScrollContentIntoView()
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure we skip 'frame' ... if it's scrollable, we should use its
|
||||
// scrollable ancestor as the container.
|
||||
nsIFrame* container =
|
||||
nsLayoutUtils::GetClosestFrameOfType(frame, nsGkAtoms::scrollFrame);
|
||||
nsLayoutUtils::GetClosestFrameOfType(frame->GetParent(), nsGkAtoms::scrollFrame);
|
||||
if (!container) {
|
||||
// nothing can be scrolled
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user