зеркало из https://github.com/mozilla/gecko-dev.git
fixes a crasher triggered by test case of bug #5194.
This commit is contained in:
Родитель
5a5d7a4d0a
Коммит
b07fa8c481
|
@ -1366,7 +1366,7 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
|
|||
|
||||
// XXX Deal with the case where there is a scrolled element, e.g., a
|
||||
// DIV in the middle...
|
||||
while (closestView != scrolledView) {
|
||||
while ((closestView != nsnull) && (closestView != scrolledView)) {
|
||||
nscoord x, y;
|
||||
|
||||
// Update the offset
|
||||
|
|
|
@ -1366,7 +1366,7 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
|
|||
|
||||
// XXX Deal with the case where there is a scrolled element, e.g., a
|
||||
// DIV in the middle...
|
||||
while (closestView != scrolledView) {
|
||||
while ((closestView != nsnull) && (closestView != scrolledView)) {
|
||||
nscoord x, y;
|
||||
|
||||
// Update the offset
|
||||
|
|
Загрузка…
Ссылка в новой задаче