mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
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:
parent
1c077a78b2
commit
2f46ba2ee2
@ -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!)???
|
||||
|
@ -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!)???
|
||||
|
@ -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!)???
|
||||
|
Loading…
Reference in New Issue
Block a user