зеркало из https://github.com/mozilla/gecko-dev.git
Fix build bustage by moving CantRenderReplacedElementEvent class decl earlier
in the file
This commit is contained in:
Родитель
d0ffefd09a
Коммит
906eb8273c
|
@ -1055,6 +1055,35 @@ ReflowCommandHashMatchEntry(PLDHashTable *table, const PLDHashEntryHdr *entry,
|
|||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// A CantRenderReplacedElementEvent has a weak pointer to the presshell and the
|
||||
// presshell has a weak pointer to the event. The event queue owns the event
|
||||
// and the presshell will delete the event if it's going to go away.
|
||||
struct CantRenderReplacedElementEvent : public PLEvent {
|
||||
CantRenderReplacedElementEvent(PresShell* aPresShell,
|
||||
nsIFrame* aFrame) NS_HIDDEN;
|
||||
~CantRenderReplacedElementEvent() {
|
||||
RemoveLoadGroupRequest();
|
||||
}
|
||||
|
||||
// XXXldb Should the pres shell maintain a reference count on a single
|
||||
// dummy layout request instead of doing creation of a separate one
|
||||
// here (and per-event!)?
|
||||
// XXXbz absolutely! Should be a per-document counter, actually....
|
||||
NS_HIDDEN_(void) AddLoadGroupRequest();
|
||||
NS_HIDDEN_(void) RemoveLoadGroupRequest();
|
||||
NS_HIDDEN_(PresShell*) OurPresShell() {
|
||||
return NS_STATIC_CAST(PresShell*, owner);
|
||||
}
|
||||
|
||||
void HandleEvent();
|
||||
|
||||
nsIFrame* mFrame; // the frame that can't be rendered
|
||||
CantRenderReplacedElementEvent* mNext; // next event in the list
|
||||
nsCOMPtr<nsIRequest> mDummyLayoutRequest; // load group request
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class PresShell : public nsIPresShell, public nsIViewObserver,
|
||||
public nsStubDocumentObserver,
|
||||
public nsISelectionController, public nsIObserver,
|
||||
|
@ -3902,33 +3931,6 @@ PresShell::CreateRenderingContext(nsIFrame *aFrame,
|
|||
return rv;
|
||||
}
|
||||
|
||||
// A CantRenderReplacedElementEvent has a weak pointer to the presshell and the
|
||||
// presshell has a weak pointer to the event. The event queue owns the event
|
||||
// and the presshell will delete the event if it's going to go away.
|
||||
struct CantRenderReplacedElementEvent : public PLEvent {
|
||||
CantRenderReplacedElementEvent(PresShell* aPresShell,
|
||||
nsIFrame* aFrame) NS_HIDDEN;
|
||||
~CantRenderReplacedElementEvent() {
|
||||
RemoveLoadGroupRequest();
|
||||
}
|
||||
|
||||
// XXXldb Should the pres shell maintain a reference count on a single
|
||||
// dummy layout request instead of doing creation of a separate one
|
||||
// here (and per-event!)?
|
||||
// XXXbz absolutely! Should be a per-document counter, actually....
|
||||
NS_HIDDEN_(void) AddLoadGroupRequest();
|
||||
NS_HIDDEN_(void) RemoveLoadGroupRequest();
|
||||
NS_HIDDEN_(PresShell*) OurPresShell() {
|
||||
return NS_STATIC_CAST(PresShell*, owner);
|
||||
}
|
||||
|
||||
void HandleEvent();
|
||||
|
||||
nsIFrame* mFrame; // the frame that can't be rendered
|
||||
CantRenderReplacedElementEvent* mNext; // next event in the list
|
||||
nsCOMPtr<nsIRequest> mDummyLayoutRequest; // load group request
|
||||
};
|
||||
|
||||
PR_STATIC_CALLBACK(void*)
|
||||
HandleCantRenderReplacedElementEvent(PLEvent* aEvent)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче