Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
CantRenderReplacedElementEvent Struct Reference
Inheritance diagram for CantRenderReplacedElementEvent:
Inheritance graph
[legend]
Collaboration diagram for CantRenderReplacedElementEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CantRenderReplacedElementEvent (PresShell *aPresShell, nsIFrame *aFrame) NS_HIDDEN
 ~CantRenderReplacedElementEvent ()
 NS_HIDDEN_ (void) AddLoadGroupRequest()
 NS_HIDDEN_ (void) RemoveLoadGroupRequest()
 NS_HIDDEN_ (PresShell *) OurPresShell()
void HandleEvent ()

Public Attributes

nsIFramemFrame
CantRenderReplacedElementEventmNext
nsCOMPtr< nsIRequestmDummyLayoutRequest
PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
voidowner
voidsynchronousResult
PRLocklock
PRCondVarcondVar
PRBool handled

Detailed Description

Definition at line 4047 of file nsPresShell.cpp.


Constructor & Destructor Documentation

Definition at line 4089 of file nsPresShell.cpp.

                                                                                  :
  mFrame(aFrame)
{
  PL_InitEvent(this, aPresShell,
               ::HandleCantRenderReplacedElementEvent,
               ::DestroyCantRenderReplacedElementEvent);

  // XXXbz why only for object frames?
  if (nsLayoutAtoms::objectFrame == aFrame->GetType()) {
    AddLoadGroupRequest();
  }
}

Here is the call graph for this function:

Definition at line 4050 of file nsPresShell.cpp.

                                    {
    RemoveLoadGroupRequest();
  }

Member Function Documentation

Definition at line 4193 of file nsPresShell.cpp.

{
  // Remove ourselves from the linked list
  PresShell* presShell = OurPresShell();
  CantRenderReplacedElementEvent** events = &presShell->mPostedReplaces;
  while (*events) {
    if (*events == this) {
      *events = (*events)->mNext;
      break;
    }
    events = &(*events)->mNext;
    NS_ASSERTION(*events, "event not in queue");
  }

  // Make sure to prevent reflow while we're messing with frames
  ++presShell->mChangeNestCount;
  presShell->FrameConstructor()->CantRenderReplacedElement(mFrame);
  --presShell->mChangeNestCount;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 4060 of file nsPresShell.cpp.

                                        {
    return NS_STATIC_CAST(PresShell*, owner);
  }

Member Data Documentation

PRCondVar * PLEvent::condVar [inherited]

Definition at line 514 of file nsIEventQueueService.idl.

Definition at line 510 of file nsIEventQueueService.idl.

PRBool PLEvent::handled [inherited]

Definition at line 515 of file nsIEventQueueService.idl.

Definition at line 509 of file nsIEventQueueService.idl.

PRCList PLEvent::link [inherited]

Definition at line 508 of file nsIEventQueueService.idl.

PRLock * PLEvent::lock [inherited]

Definition at line 513 of file nsIEventQueueService.idl.

Definition at line 4068 of file nsPresShell.cpp.

Definition at line 4066 of file nsPresShell.cpp.

Definition at line 4067 of file nsPresShell.cpp.

void * PLEvent::owner [inherited]

Definition at line 511 of file nsIEventQueueService.idl.

Definition at line 512 of file nsIEventQueueService.idl.


The documentation for this struct was generated from the following file: