Fix regression bug 197823 -- scrolling state restoration broken during history

navigation if URL includes anchor name.  Remove unnecessary and deleterious
flush. r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-03-18 04:09:24 +00:00
Родитель 08f8ee6185
Коммит 8c4fcee132
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -4344,7 +4344,9 @@ HTMLContentSink::ScrollToRef(PRBool aReallyScroll)
mDocument->GetShellAt(i, getter_AddRefs(shell));
if (shell) {
// Scroll to the anchor
if (aReallyScroll) {
shell->FlushPendingNotifications(PR_FALSE);
}
// Check an empty string which might be caused by the UTF-8 conversion
if (!ref.IsEmpty()) {

Просмотреть файл

@ -352,7 +352,9 @@ nsXMLContentSink::ScrollToRef(PRBool aReallyScroll)
mDocument->GetShellAt(i, getter_AddRefs(shell));
if (shell) {
// Scroll to the anchor
if (aReallyScroll) {
shell->FlushPendingNotifications(PR_FALSE);
}
// Check an empty string which might be caused by the UTF-8 conversion
if (!ref.IsEmpty())