mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 492760. Don't try to do a best-effort scroll to never-been-laid-out frames. r+sr=roc
This commit is contained in:
parent
b7ce1207f5
commit
e923e46de8
@ -4203,6 +4203,13 @@ PresShell::DoScrollContentIntoView(nsIContent* aContent,
|
||||
return;
|
||||
}
|
||||
|
||||
if (frame->GetStateBits() & NS_FRAME_FIRST_REFLOW) {
|
||||
// The reflow flush before this scroll got interrupted, and this frame's
|
||||
// coords and size are all zero, and it has no content showing anyway.
|
||||
// Don't bother scrolling to it. We'll try again when we finish up layout.
|
||||
return;
|
||||
}
|
||||
|
||||
// This is a two-step process.
|
||||
// Step 1: Find the bounds of the rect we want to scroll into view. For
|
||||
// example, for an inline frame we may want to scroll in the whole
|
||||
|
Loading…
Reference in New Issue
Block a user