PresShell is now observing the document always instead of just when a new PresContext is NOT created. r=troy b=25406

This commit is contained in:
attinasi%netscape.com 2000-02-11 01:21:50 +00:00
parent 1c077a78b2
commit 2f46ba2ee2
3 changed files with 12 additions and 6 deletions

View File

@ -444,7 +444,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
getter_AddRefs(mPresShell));
NS_RELEASE(styleSet);
if (NS_FAILED(rv)) return rv;
mPresShell->BeginObservingDocument();
// Initialize our view manager
nsRect bounds;
mWindow->GetBounds(bounds);
@ -459,7 +460,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
if (!makeCX) {
// Make shell an observer for next time
mPresShell->BeginObservingDocument();
// XXX - we observe the docuement always, see above after preshell is created
// mPresShell->BeginObservingDocument();
//XXX I don't think this should be done *here*; and why paint nothing
//(which turns out to cause black flashes!)???

View File

@ -444,7 +444,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
getter_AddRefs(mPresShell));
NS_RELEASE(styleSet);
if (NS_FAILED(rv)) return rv;
mPresShell->BeginObservingDocument();
// Initialize our view manager
nsRect bounds;
mWindow->GetBounds(bounds);
@ -459,7 +460,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
if (!makeCX) {
// Make shell an observer for next time
mPresShell->BeginObservingDocument();
// XXX - we observe the docuement always, see above after preshell is created
// mPresShell->BeginObservingDocument();
//XXX I don't think this should be done *here*; and why paint nothing
//(which turns out to cause black flashes!)???

View File

@ -444,7 +444,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
getter_AddRefs(mPresShell));
NS_RELEASE(styleSet);
if (NS_FAILED(rv)) return rv;
mPresShell->BeginObservingDocument();
// Initialize our view manager
nsRect bounds;
mWindow->GetBounds(bounds);
@ -459,7 +460,8 @@ DocumentViewerImpl::Init(nsNativeWidget aNativeParent,
if (!makeCX) {
// Make shell an observer for next time
mPresShell->BeginObservingDocument();
// XXX - we observe the docuement always, see above after preshell is created
// mPresShell->BeginObservingDocument();
//XXX I don't think this should be done *here*; and why paint nothing
//(which turns out to cause black flashes!)???