diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index a4385606f42..12c520e37ba 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -354,6 +354,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent, // Make shell an observer for next time mPresShell->BeginObservingDocument(); +//XXX I don't think this should be done *here*; and why paint nothing +//(which turns out to cause black flashes!)??? // Resize-reflow this time mPresShell->InitialReflow(width, height); diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index a4385606f42..12c520e37ba 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -354,6 +354,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent, // Make shell an observer for next time mPresShell->BeginObservingDocument(); +//XXX I don't think this should be done *here*; and why paint nothing +//(which turns out to cause black flashes!)??? // Resize-reflow this time mPresShell->InitialReflow(width, height); diff --git a/mozilla/layout/base/src/nsDocumentViewer.cpp b/mozilla/layout/base/src/nsDocumentViewer.cpp index a4385606f42..12c520e37ba 100644 --- a/mozilla/layout/base/src/nsDocumentViewer.cpp +++ b/mozilla/layout/base/src/nsDocumentViewer.cpp @@ -354,6 +354,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent, // Make shell an observer for next time mPresShell->BeginObservingDocument(); +//XXX I don't think this should be done *here*; and why paint nothing +//(which turns out to cause black flashes!)??? // Resize-reflow this time mPresShell->InitialReflow(width, height);