Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
nsIPresShell_MOZILLA_1_8_BRANCH2 Class Reference

#include <nsIPresShell.h>

Inheritance diagram for nsIPresShell_MOZILLA_1_8_BRANCH2:
Inheritance graph
[legend]
Collaboration diagram for nsIPresShell_MOZILLA_1_8_BRANCH2:
Collaboration graph
[legend]

List of all members.

Public Types

enum  GeneratedContentType { Before, After }
 Returns a content iterator to iterate the generated content nodes. More...

Public Member Functions

virtual void BlockFlushing ()=0
virtual void UnblockFlushing ()=0
virtual void AddObserver (nsIDocumentObserver *aObserver)=0
virtual PRBool RemoveObserver (nsIDocumentObserver *aObserver)=0
void AddWeakFrame (nsWeakFrame *aWeakFrame)
void RemoveWeakFrame (nsWeakFrame *aWeakFrame)
virtual void HidePopups ()=0
NS_IMETHOD Init (nsIDocument *aDocument, nsPresContext *aPresContext, nsIViewManager *aViewManager, nsStyleSet *aStyleSet, nsCompatibility aCompatMode)=0
NS_IMETHOD Destroy ()=0
 All callers are responsible for calling |Destroy| after calling |EndObservingDocument|.
virtual voidAllocateFrame (size_t aSize)=0
virtual void FreeFrame (size_t aSize, void *aFreeChunk)=0
NS_IMETHOD PushStackMemory ()=0
NS_IMETHOD PopStackMemory ()=0
NS_IMETHOD AllocateStackMemory (size_t aSize, void **aResult)=0
nsIDocumentGetDocument ()
nsPresContextGetPresContext ()
nsIViewManagerGetViewManager ()
NS_IMETHOD GetActiveAlternateStyleSheet (nsString &aSheetTitle)=0
NS_IMETHOD SelectAlternateStyleSheet (const nsString &aSheetTitle)=0
 NS_HIDDEN_ (void) SetAuthorStyleDisabled(PRBool aDisabled)
 NS_HIDDEN_ (PRBool) GetAuthorStyleDisabled()
virtual NS_HIDDEN_ (void) ReconstructStyleDataExternal()
 NS_HIDDEN_ (void) ReconstructStyleDataInternal()
virtual NS_HIDDEN_ (nsIFrame *) GetRootFrame() const
 This calls through to the frame manager to get the root frame.
void ReconstructStyleData ()
NS_IMETHOD SetPreferenceStyleRules (PRBool aForceReflow)=0
 Setup all style rules required to implement preferences.
NS_IMETHOD ListAlternateStyleSheets (nsStringArray &aTitleList)=0
 Gather titles of all selectable (alternate and preferred) style sheets fills void array with nsString* caller must free strings.
nsIFrameSelectionFrameSelection ()
 FrameSelection will return the Frame based selection API.
NS_IMETHOD BeginObservingDocument ()=0
NS_IMETHOD EndObservingDocument ()=0
NS_IMETHOD GetDidInitialReflow (PRBool *aDidInitialReflow)=0
 Determine if InitialReflow() was previously called.
NS_IMETHOD InitialReflow (nscoord aWidth, nscoord aHeight)=0
 Perform the initial reflow.
NS_IMETHOD ResizeReflow (nscoord aWidth, nscoord aHeight)=0
 Reflow the frame model into a new width and height.
NS_IMETHOD StyleChangeReflow ()=0
 Reflow the frame model with a reflow reason of eReflowReason_StyleChange.
NS_IMETHOD GetPageSequenceFrame (nsIPageSequenceFrame **aResult) const =0
 Returns the page sequence frame associated with the frame hierarchy.
NS_IMETHOD GetPrimaryFrameFor (nsIContent *aContent, nsIFrame **aPrimaryFrame) const =0
 Gets the primary frame associated with the content object.
NS_IMETHOD GetLayoutObjectFor (nsIContent *aContent, nsISupports **aResult) const =0
 Returns a layout object associated with the primary frame for the content object.
NS_IMETHOD GetPlaceholderFrameFor (nsIFrame *aFrame, nsIFrame **aPlaceholderFrame) const =0
 Gets the placeholder frame associated with the specified frame.
NS_IMETHOD AppendReflowCommand (nsIFrame *aTargetFrame, nsReflowType aReflowType, nsIAtom *aChildListName)=0
 Reflow commands.
NS_IMETHOD CancelReflowCommand (nsIFrame *aTargetFrame, nsReflowType *aCmdType)=0
NS_IMETHOD CancelAllReflowCommands ()=0
NS_IMETHOD RecreateFramesFor (nsIContent *aContent)=0
 Recreates the frames for a node.
NS_IMETHOD IsSafeToFlush (PRBool &aIsSafeToFlush)=0
 Determine if it is safe to flush all pending notifications.
NS_IMETHOD FlushPendingNotifications (mozFlushType aType)=0
 Flush pending notifications of the type specified.
NS_IMETHOD PostDOMEvent (nsIContent *aContent, nsEvent *aEvent)=0
 Post a request to handle a DOM event after Reflow has finished.
NS_IMETHOD PostAttributeChange (nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aName, const nsString &aValue, PRBool aNotify, nsAttributeChangeType aType)=0
 Post a request to set and attribute after reflow has finished.
NS_IMETHOD PostReflowCallback (nsIReflowCallback *aCallback)=0
NS_IMETHOD CancelReflowCallback (nsIReflowCallback *aCallback)=0
NS_IMETHOD BeginReflowBatching ()=0
 Reflow batching.
NS_IMETHOD EndReflowBatching (PRBool aFlushPendingReflows)=0
NS_IMETHOD GetReflowBatchingStatus (PRBool *aIsBatching)=0
NS_IMETHOD ClearFrameRefs (nsIFrame *aFrame)=0
NS_IMETHOD CreateRenderingContext (nsIFrame *aFrame, nsIRenderingContext **aContext)=0
 Given a frame, create a rendering context suitable for use with the frame.
NS_IMETHOD CantRenderReplacedElement (nsIFrame *aFrame)=0
 Notification that we were unable to render a replaced element.
NS_IMETHOD GoToAnchor (const nsAString &aAnchorName, PRBool aScroll)=0
 Informs the pres shell that the document is now at the anchor with the given name.
NS_IMETHOD ScrollFrameIntoView (nsIFrame *aFrame, PRIntn aVPercent, PRIntn aHPercent) const =0
 Scrolls the view of the document so that the frame is displayed at the top of the window.
NS_IMETHOD SetIgnoreFrameDestruction (PRBool aIgnore)=0
 Suppress notification of the frame manager that frames are being destroyed.
NS_IMETHOD NotifyDestroyingFrame (nsIFrame *aFrame)=0
 Notification sent by a frame informing the pres shell that it is about to be destroyed.
NS_IMETHOD DoCopy ()=0
 Notify the Clipboard that we have something to copy.
NS_IMETHOD GetSelectionForCopy (nsISelection **outSelection)=0
 Get the selection of the focussed element (either the page selection, or the selection for a text field).
NS_IMETHOD GetLinkLocation (nsIDOMNode *aNode, nsAString &aLocation)=0
 Get link location.
NS_IMETHOD DoGetContents (const nsACString &aMimeType, PRUint32 aFlags, PRBool aSelectionOnly, nsAString &outValue)=0
 Get the doc or the selection as text or html.
NS_IMETHOD GetCaret (nsICaret **aOutCaret)=0
 Get the caret, if it exists.
NS_IMETHOD SetSelectionFlags (PRInt16 aInEnable)=0
 Should the images have borders etc.
NS_IMETHOD GetSelectionFlags (PRInt16 *aOutEnabled)=0
 Gets the current state of non text selection effects.
NS_IMETHOD HandleEventWithTarget (nsEvent *aEvent, nsIFrame *aFrame, nsIContent *aContent, PRUint32 aFlags, nsEventStatus *aStatus)=0
 Interface to dispatch events via the presshell.
NS_IMETHOD HandleDOMEventWithTarget (nsIContent *aTargetContent, nsEvent *aEvent, nsEventStatus *aStatus)=0
 Dispatch event to content only (NOT full processing)
NS_IMETHOD GetEventTargetFrame (nsIFrame **aFrame)=0
 Gets the current target event frame from the PresShell.
NS_IMETHOD GetEventTargetContent (nsEvent *aEvent, nsIContent **aContent)=0
 Gets the current target event frame from the PresShell.
NS_IMETHOD CaptureHistoryState (nsILayoutHistoryState **aLayoutHistoryState, PRBool aLeavingPage=PR_FALSE)=0
 Get and set the history state for the current document.
NS_IMETHOD IsReflowLocked (PRBool *aIsLocked)=0
 Determine if reflow is currently locked.
NS_IMETHOD GetGeneratedContentIterator (nsIContent *aContent, GeneratedContentType aType, nsIContentIterator **aIterator) const =0
NS_IMETHOD SetAnonymousContentFor (nsIContent *aContent, nsISupportsArray *aAnonymousElements)=0
 Store the nsIAnonymousContentCreator-generated anonymous content that's associated with an element.
NS_IMETHOD GetAnonymousContentFor (nsIContent *aContent, nsISupportsArray **aAnonymousElements)=0
 Retrieve the nsIAnonymousContentCreator-generated anonymous content that's associated with an element.
NS_IMETHOD ReleaseAnonymousContent ()=0
 Release all nsIAnonymousContentCreator-generated anonymous content associated with the shell.
NS_IMETHOD IsPaintingSuppressed (PRBool *aResult)=0
 Called to find out if painting is suppressed for this presshell.
NS_IMETHOD UnsuppressPainting ()=0
 Unsuppress painting.
NS_IMETHOD DisableThemeSupport ()=0
 Called to disable nsITheme support in a specific presshell.
virtual PRBool IsThemeSupportEnabled ()=0
 Indicates whether theme support is enabled.
virtual nsresult GetAgentStyleSheets (nsCOMArray< nsIStyleSheet > &aSheets)=0
 Get the set of agent style sheets for this presentation.
virtual nsresult SetAgentStyleSheets (const nsCOMArray< nsIStyleSheet > &aSheets)=0
 Replace the set of agent style sheets.
virtual nsresult AddOverrideStyleSheet (nsIStyleSheet *aSheet)=0
 Add an override style sheet for this presentation.
virtual nsresult RemoveOverrideStyleSheet (nsIStyleSheet *aSheet)=0
 Remove an override style sheet.
virtual nsresult ReconstructFrames ()=0
 Reconstruct frames for all elements in the document.
PRBool IsAccessibilityActive ()
virtual void Freeze ()=0
 Stop all active elements (plugins and the caret) in this presentation and in the presentations of subdocuments.
virtual void Thaw ()=0
 Restarts active elements (plugins) in this presentation and in the presentations of subdocuments, then do a full invalidate of the content area.
void SetForwardingContainer (nsWeakPtr aContainer)
 When this shell is disconnected from its containing docshell, we lose our container pointer.

Static Public Member Functions

static PRBool GetVerifyReflowEnable ()
 See if reflow verification is enabled.
static void SetVerifyReflowEnable (PRBool aEnabled)
 Set the verify-reflow enable flag.
static PRInt32 GetVerifyReflowFlags ()
 Get the flags associated with the VerifyReflow debug tool.

Protected Attributes

nsWeakFramemWeakFrames
nsIDocumentmDocument
nsPresContextmPresContext
nsStyleSetmStyleSet
nsCSSFrameConstructormFrameConstructor
nsIViewManagermViewManager
nsIFrameSelectionmSelection
nsFrameManagerBase mFrameManager
nsWeakPtr mForwardingContainer
PRPackedBool mStylesHaveChanged
PRPackedBool mIsAccessibilityActive
PRPackedBool mDidInitialReflow

Detailed Description

Definition at line 781 of file nsIPresShell.h.


Member Enumeration Documentation

Returns a content iterator to iterate the generated content nodes.

You must specify whether you want to iterate the "before" generated content or the "after" generated content. If there is no generated content of the specified type for the promary frame associated with with the content object then NULL is returned

Enumerator:
Before 
After 

Definition at line 556 of file nsIPresShell.h.


Member Function Documentation

Implemented in PresShell.

virtual nsresult nsIPresShell::AddOverrideStyleSheet ( nsIStyleSheet aSheet) [pure virtual, inherited]

Add an override style sheet for this presentation.

Implemented in PresShell.

Definition at line 1683 of file nsPresShell.cpp.

{
  if (aWeakFrame->GetFrame()) {
    aWeakFrame->GetFrame()->AddStateBits(NS_FRAME_EXTERNAL_REFERENCE);
  }
  aWeakFrame->SetPreviousWeakFrame(mWeakFrames);
  mWeakFrames = aWeakFrame;
}

Here is the call graph for this function:

virtual void* nsIPresShell::AllocateFrame ( size_t  aSize) [pure virtual, inherited]

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::AllocateStackMemory ( size_t  aSize,
void **  aResult 
) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::AppendReflowCommand ( nsIFrame aTargetFrame,
nsReflowType  aReflowType,
nsIAtom aChildListName 
) [pure virtual, inherited]

Reflow commands.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::BeginObservingDocument ( ) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::BeginReflowBatching ( ) [pure virtual, inherited]

Reflow batching.

Implemented in PresShell.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::CancelAllReflowCommands ( ) [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::CancelReflowCallback ( nsIReflowCallback aCallback) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::CancelReflowCommand ( nsIFrame aTargetFrame,
nsReflowType aCmdType 
) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::CantRenderReplacedElement ( nsIFrame aFrame) [pure virtual, inherited]

Notification that we were unable to render a replaced element.

Called when the replaced element can not be rendered, and we should instead render the element's contents. The content object associated with aFrame should either be a IMG element, an OBJECT element, or an APPLET element

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::CaptureHistoryState ( nsILayoutHistoryState **  aLayoutHistoryState,
PRBool  aLeavingPage = PR_FALSE 
) [pure virtual, inherited]

Get and set the history state for the current document.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::ClearFrameRefs ( nsIFrame aFrame) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::CreateRenderingContext ( nsIFrame aFrame,
nsIRenderingContext **  aContext 
) [pure virtual, inherited]

Given a frame, create a rendering context suitable for use with the frame.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::Destroy ( ) [pure virtual, inherited]

All callers are responsible for calling |Destroy| after calling |EndObservingDocument|.

It needs to be separate only because form controls incorrectly store their data in the frames rather than the content model and printing calls |EndObservingDocument| multiple times to make form controls behave nicely when printed.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::DisableThemeSupport ( ) [pure virtual, inherited]

Called to disable nsITheme support in a specific presshell.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::DoCopy ( ) [pure virtual, inherited]

Notify the Clipboard that we have something to copy.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::DoGetContents ( const nsACString &  aMimeType,
PRUint32  aFlags,
PRBool  aSelectionOnly,
nsAString &  outValue 
) [pure virtual, inherited]

Get the doc or the selection as text or html.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::EndObservingDocument ( ) [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::EndReflowBatching ( PRBool  aFlushPendingReflows) [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::FlushPendingNotifications ( mozFlushType  aType) [pure virtual, inherited]

Flush pending notifications of the type specified.

This method will not affect the content model; it'll just affect style and frames. Callers that actually want up-to-date presentation (other than the document itself) should probably be calling nsIDocument::FlushPendingNotifications.

Parameters:
aTypethe type of notifications to flush

Implemented in PresShell.

Here is the caller graph for this function:

FrameSelection will return the Frame based selection API.

You cannot go back and forth anymore with QI between nsIDOM sel and nsIFrame sel.

Definition at line 251 of file nsIPresShell.h.

{ return mSelection; }

Here is the caller graph for this function:

virtual void nsIPresShell::FreeFrame ( size_t  aSize,
void aFreeChunk 
) [pure virtual, inherited]

Here is the caller graph for this function:

virtual void nsIPresShell::Freeze ( ) [pure virtual, inherited]

Stop all active elements (plugins and the caret) in this presentation and in the presentations of subdocuments.

Resets painting to a suppressed state. XXX this should include image animations

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetActiveAlternateStyleSheet ( nsString aSheetTitle) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

virtual nsresult nsIPresShell::GetAgentStyleSheets ( nsCOMArray< nsIStyleSheet > &  aSheets) [pure virtual, inherited]

Get the set of agent style sheets for this presentation.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetAnonymousContentFor ( nsIContent aContent,
nsISupportsArray **  aAnonymousElements 
) [pure virtual, inherited]

Retrieve the nsIAnonymousContentCreator-generated anonymous content that's associated with an element.

Parameters:
aContentthe element for which to retrieve the associated anonymous content
aAnonymousElementsan array of nsIContent objects, or null to indicate that there are no anonymous elements associated with aContent

Implemented in PresShell.

NS_IMETHOD nsIPresShell::GetCaret ( nsICaret **  aOutCaret) [pure virtual, inherited]

Get the caret, if it exists.

AddRefs it.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetDidInitialReflow ( PRBool aDidInitialReflow) [pure virtual, inherited]

Determine if InitialReflow() was previously called.

Parameters:
aDidInitialReflowPR_TRUE if InitalReflow() was previously called, PR_FALSE otherwise.

Implemented in PresShell.

Here is the caller graph for this function:

nsIDocument* nsIPresShell::GetDocument ( ) [inline, inherited]

Definition at line 175 of file nsIPresShell.h.

{ return mDocument; }

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetEventTargetContent ( nsEvent aEvent,
nsIContent **  aContent 
) [pure virtual, inherited]

Gets the current target event frame from the PresShell.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetEventTargetFrame ( nsIFrame **  aFrame) [pure virtual, inherited]

Gets the current target event frame from the PresShell.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetGeneratedContentIterator ( nsIContent aContent,
GeneratedContentType  aType,
nsIContentIterator **  aIterator 
) const [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::GetLayoutObjectFor ( nsIContent aContent,
nsISupports **  aResult 
) const [pure virtual, inherited]

Returns a layout object associated with the primary frame for the content object.

Parameters:
aContentthe content object for which we seek a layout object
aResultthe resulting layout object as an nsISupports, if found. Refcounted.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetLinkLocation ( nsIDOMNode aNode,
nsAString &  aLocation 
) [pure virtual, inherited]

Get link location.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::GetPageSequenceFrame ( nsIPageSequenceFrame **  aResult) const [pure virtual, inherited]

Returns the page sequence frame associated with the frame hierarchy.

Returns NULL if not a paginated view.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetPlaceholderFrameFor ( nsIFrame aFrame,
nsIFrame **  aPlaceholderFrame 
) const [pure virtual, inherited]

Gets the placeholder frame associated with the specified frame.

This is a helper frame that forwards the request to the frame manager.

Implemented in PresShell.

Here is the caller graph for this function:

nsPresContext* nsIPresShell::GetPresContext ( ) [inline, inherited]

Definition at line 177 of file nsIPresShell.h.

{ return mPresContext; }
NS_IMETHOD nsIPresShell::GetPrimaryFrameFor ( nsIContent aContent,
nsIFrame **  aPrimaryFrame 
) const [pure virtual, inherited]

Gets the primary frame associated with the content object.

This is a helper function that just forwards the request to the frame manager.

The primary frame is the frame that is most closely associated with the content. A frame is more closely associated with the content that another frame if the one frame contains directly or indirectly the other frame (e.g., when a frame is scrolled there is a scroll frame that contains the frame being scrolled). The primary frame is always the first-in-flow.

In the case of absolutely positioned elements and floated elements, the primary frame is the frame that is out of the flow and not the placeholder frame.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::GetReflowBatchingStatus ( PRBool aIsBatching) [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::GetSelectionFlags ( PRInt16 aOutEnabled) [pure virtual, inherited]

Gets the current state of non text selection effects.

Parameters:
aEnabled[OUT] set to the current state of non text selection, as set by SetDisplayNonTextSelection
Returns:
if aOutEnabled==null, returns NS_ERROR_INVALID_ARG else NS_OK

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GetSelectionForCopy ( nsISelection **  outSelection) [pure virtual, inherited]

Get the selection of the focussed element (either the page selection, or the selection for a text field).

Implemented in PresShell.

See if reflow verification is enabled.

To enable reflow verification add "verifyreflow:1" to your NSPR_LOG_MODULES environment variable (any non-zero debug level will work). Or, call SetVerifyReflowEnable with PR_TRUE.

Definition at line 1599 of file nsPresShell.cpp.

{
#ifdef NS_DEBUG
  static PRBool firstTime = PR_TRUE;
  if (firstTime) {
    firstTime = PR_FALSE;
    char* flags = PR_GetEnv("GECKO_VERIFY_REFLOW_FLAGS");
    if (flags) {
      PRBool error = PR_FALSE;

      for (;;) {
        char* comma = PL_strchr(flags, ',');
        if (comma)
          *comma = '\0';

        PRBool found = PR_FALSE;
        const VerifyReflowFlags* flag = gFlags;
        const VerifyReflowFlags* limit = gFlags + NUM_VERIFY_REFLOW_FLAGS;
        while (flag < limit) {
          if (PL_strcasecmp(flag->name, flags) == 0) {
            gVerifyReflowFlags |= flag->bit;
            found = PR_TRUE;
            break;
          }
          ++flag;
        }

        if (! found)
          error = PR_TRUE;

        if (! comma)
          break;

        *comma = ',';
        flags = comma + 1;
      }

      if (error)
        ShowVerifyReflowFlags();
    }

    if (VERIFY_REFLOW_ON & gVerifyReflowFlags) {
      gVerifyReflowEnabled = PR_TRUE;
    }
    printf("Note: verifyreflow is %sabled",
           gVerifyReflowEnabled ? "en" : "dis");
    if (VERIFY_REFLOW_NOISY & gVerifyReflowFlags) {
      printf(" (noisy)");
    }
    if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) {
      printf(" (all)");
    }
    if (VERIFY_REFLOW_DUMP_COMMANDS & gVerifyReflowFlags) {
      printf(" (show reflow commands)");
    }
    if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {
      printf(" (noisy reflow commands)");
      if (VERIFY_REFLOW_REALLY_NOISY_RC & gVerifyReflowFlags) {
        printf(" (REALLY noisy reflow commands)");
      }
    }
    printf("\n");
  }
#endif
  return gVerifyReflowEnabled;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Get the flags associated with the VerifyReflow debug tool.

Definition at line 1673 of file nsPresShell.cpp.

{
#ifdef NS_DEBUG
  return gVerifyReflowFlags;
#else
  return 0;
#endif
}

Here is the caller graph for this function:

nsIViewManager* nsIPresShell::GetViewManager ( ) [inline, inherited]

Definition at line 179 of file nsIPresShell.h.

{ return mViewManager; }

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::GoToAnchor ( const nsAString &  aAnchorName,
PRBool  aScroll 
) [pure virtual, inherited]

Informs the pres shell that the document is now at the anchor with the given name.

If |aScroll| is true, scrolls the view of the document so that the anchor with the specified name is displayed at the top of the window. If |aAnchorName| is empty, then this informs the pres shell that there is no current target, and |aScroll| must be false.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::HandleDOMEventWithTarget ( nsIContent aTargetContent,
nsEvent aEvent,
nsEventStatus aStatus 
) [pure virtual, inherited]

Dispatch event to content only (NOT full processing)

Note:
The caller must have a strong reference to the PresShell.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::HandleEventWithTarget ( nsEvent aEvent,
nsIFrame aFrame,
nsIContent aContent,
PRUint32  aFlags,
nsEventStatus aStatus 
) [pure virtual, inherited]

Interface to dispatch events via the presshell.

Note:
The caller must have a strong reference to the PresShell.

Implemented in PresShell.

virtual void nsIPresShell_MOZILLA_1_8_BRANCH::HidePopups ( ) [pure virtual, inherited]

Implemented in PresShell.

NS_IMETHOD nsIPresShell::Init ( nsIDocument aDocument,
nsPresContext aPresContext,
nsIViewManager aViewManager,
nsStyleSet aStyleSet,
nsCompatibility  aCompatMode 
) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::InitialReflow ( nscoord  aWidth,
nscoord  aHeight 
) [pure virtual, inherited]

Perform the initial reflow.

Constructs the frame for the root content object and then reflows the frame model into the specified width and height.

The coordinates for aWidth and aHeight must be in standard nscoord's.

Implemented in PresShell.

Here is the caller graph for this function:

Definition at line 698 of file nsIPresShell.h.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::IsPaintingSuppressed ( PRBool aResult) [pure virtual, inherited]

Called to find out if painting is suppressed for this presshell.

If it is suppressd, we don't allow the painting of any layer but the background, and we don't recur into our children.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::IsReflowLocked ( PRBool aIsLocked) [pure virtual, inherited]

Determine if reflow is currently locked.

Parameters:
aIsReflowLockedreturns PR_TRUE if reflow is locked, PR_FALSE otherwise

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::IsSafeToFlush ( PRBool aIsSafeToFlush) [pure virtual, inherited]

Determine if it is safe to flush all pending notifications.

Parameters:
aIsSafeToFlushPR_TRUE if it is safe, PR_FALSE otherwise.

Implemented in PresShell.

virtual PRBool nsIPresShell::IsThemeSupportEnabled ( ) [pure virtual, inherited]

Indicates whether theme support is enabled.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::ListAlternateStyleSheets ( nsStringArray &  aTitleList) [pure virtual, inherited]

Gather titles of all selectable (alternate and preferred) style sheets fills void array with nsString* caller must free strings.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::NotifyDestroyingFrame ( nsIFrame aFrame) [pure virtual, inherited]

Notification sent by a frame informing the pres shell that it is about to be destroyed.

This allows any outstanding references to the frame to be cleaned up

Implemented in PresShell.

Here is the caller graph for this function:

nsIPresShell::NS_HIDDEN_ ( void  ) [inherited]

Reimplemented in PresShell, and PresShell.

nsIPresShell::NS_HIDDEN_ ( PRBool  ) [inherited]
virtual nsIPresShell::NS_HIDDEN_ ( void  ) const [virtual, inherited]

Reimplemented in PresShell, and PresShell.

nsIPresShell::NS_HIDDEN_ ( void  ) const [inherited]

Reimplemented in PresShell, and PresShell.

virtual nsIPresShell::NS_HIDDEN_ ( nsIFrame ) const [virtual, inherited]

This calls through to the frame manager to get the root frame.

Callers inside of gklayout should use FrameManager()->GetRootFrame() instead, as it's more efficient.

NS_IMETHOD nsIPresShell::PopStackMemory ( ) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::PostAttributeChange ( nsIContent aContent,
PRInt32  aNameSpaceID,
nsIAtom aName,
const nsString aValue,
PRBool  aNotify,
nsAttributeChangeType  aType 
) [pure virtual, inherited]

Post a request to set and attribute after reflow has finished.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::PostDOMEvent ( nsIContent aContent,
nsEvent aEvent 
) [pure virtual, inherited]

Post a request to handle a DOM event after Reflow has finished.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::PostReflowCallback ( nsIReflowCallback aCallback) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::PushStackMemory ( ) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

virtual nsresult nsIPresShell::ReconstructFrames ( ) [pure virtual, inherited]

Reconstruct frames for all elements in the document.

Implemented in PresShell.

Here is the caller graph for this function:

void nsIPresShell::ReconstructStyleData ( ) [inline, inherited]

Definition at line 227 of file nsIPresShell.h.

{ ReconstructStyleDataExternal(); }
NS_IMETHOD nsIPresShell::RecreateFramesFor ( nsIContent aContent) [pure virtual, inherited]

Recreates the frames for a node.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::ReleaseAnonymousContent ( ) [pure virtual, inherited]

Release all nsIAnonymousContentCreator-generated anonymous content associated with the shell.

Implemented in PresShell.

Implemented in PresShell.

virtual nsresult nsIPresShell::RemoveOverrideStyleSheet ( nsIStyleSheet aSheet) [pure virtual, inherited]

Remove an override style sheet.

Implemented in PresShell.

Definition at line 1693 of file nsPresShell.cpp.

{
  if (mWeakFrames == aWeakFrame) {
    mWeakFrames = aWeakFrame->GetPreviousWeakFrame();
    return;
  }
  nsWeakFrame* nextWeak = mWeakFrames;
  while (nextWeak && nextWeak->GetPreviousWeakFrame() != aWeakFrame) {
    nextWeak = nextWeak->GetPreviousWeakFrame();
  }
  if (nextWeak) {
    nextWeak->SetPreviousWeakFrame(aWeakFrame->GetPreviousWeakFrame());
  }
}

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::ResizeReflow ( nscoord  aWidth,
nscoord  aHeight 
) [pure virtual, inherited]

Reflow the frame model into a new width and height.

The coordinates for aWidth and aHeight must be in standard nscoord's.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::ScrollFrameIntoView ( nsIFrame aFrame,
PRIntn  aVPercent,
PRIntn  aHPercent 
) const [pure virtual, inherited]

Scrolls the view of the document so that the frame is displayed at the top of the window.

Parameters:
aFrameThe frame to scroll into view
aVPercentHow to align the frame vertically. A value of 0 (NS_PRESSHELL_SCROLL_TOP) means the frame's upper edge is aligned with the top edge of the visible area. A value of 100 (NS_PRESSHELL_SCROLL_BOTTOM) means the frame's bottom edge is aligned with the bottom edge of the visible area. For values in between, the point "aVPercent" down the frame is placed at the point "aVPercent" down the visible area. A value of 50 (NS_PRESSHELL_SCROLL_CENTER) centers the frame vertically. A value of NS_PRESSHELL_SCROLL_ANYWHERE means move the frame the minimum amount necessary in order for the entire frame to be visible vertically (if possible)
aHPercentHow to align the frame horizontally. A value of 0 (NS_PRESSHELL_SCROLL_LEFT) means the frame's left edge is aligned with the left edge of the visible area. A value of 100 (NS_PRESSHELL_SCROLL_RIGHT) means the frame's right edge is aligned with the right edge of the visible area. For values in between, the point "aVPercent" across the frame is placed at the point "aVPercent" across the visible area. A value of 50 (NS_PRESSHELL_SCROLL_CENTER) centers the frame horizontally . A value of NS_PRESSHELL_SCROLL_ANYWHERE means move the frame the minimum amount necessary in order for the entire frame to be visible horizontally (if possible)

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::SelectAlternateStyleSheet ( const nsString aSheetTitle) [pure virtual, inherited]

Implemented in PresShell.

Here is the caller graph for this function:

virtual nsresult nsIPresShell::SetAgentStyleSheets ( const nsCOMArray< nsIStyleSheet > &  aSheets) [pure virtual, inherited]

Replace the set of agent style sheets.

Implemented in PresShell.

Here is the caller graph for this function:

NS_IMETHOD nsIPresShell::SetAnonymousContentFor ( nsIContent aContent,
nsISupportsArray aAnonymousElements 
) [pure virtual, inherited]

Store the nsIAnonymousContentCreator-generated anonymous content that's associated with an element.

The new anonymous content is added to whatever anonymous content might already be associated with the element.

Parameters:
aContentthe element with which the anonymous content is to be associated with
aAnonymousElementsan array of nsIContent objects, or null to indicate that any anonymous content should be dissociated from the aContent

Implemented in PresShell.

Here is the caller graph for this function:

void nsIPresShell::SetForwardingContainer ( nsWeakPtr  aContainer) [inline, inherited]

When this shell is disconnected from its containing docshell, we lose our container pointer.

However, we'd still like to be able to target user events at the docshell's parent. This pointer allows us to do that. It should not be used for any other purpose.

Definition at line 719 of file nsIPresShell.h.

  {
    mForwardingContainer = aContainer;
  }
NS_IMETHOD nsIPresShell::SetIgnoreFrameDestruction ( PRBool  aIgnore) [pure virtual, inherited]

Suppress notification of the frame manager that frames are being destroyed.

Implemented in PresShell.

NS_IMETHOD nsIPresShell::SetPreferenceStyleRules ( PRBool  aForceReflow) [pure virtual, inherited]

Setup all style rules required to implement preferences.

  • used for background/text/link colors and link underlining may be extended for any prefs that are implemented via style rules
  • aForceReflow argument is used to force a full reframe to make the rules show (only used when the current page needs to reflect changed pref rules)
  • initially created for bugs 31816, 20760, 22963

Implemented in PresShell.

NS_IMETHOD nsIPresShell::SetSelectionFlags ( PRInt16  aInEnable) [pure virtual, inherited]

Should the images have borders etc.

Actual visual effects are determined by the frames. Visual effects may not effect layout, only display. Takes effect on next repaint, does not force a repaint itself.

Parameters:
aEnabledif PR_TRUE, visual selection effects are enabled if PR_FALSE visual selection effects are disabled
Returns:
always NS_OK

Implemented in PresShell.

void nsIPresShell::SetVerifyReflowEnable ( PRBool  aEnabled) [static, inherited]

Set the verify-reflow enable flag.

Definition at line 1667 of file nsPresShell.cpp.

{
  gVerifyReflowEnabled = aEnabled;
}
NS_IMETHOD nsIPresShell::StyleChangeReflow ( ) [pure virtual, inherited]

Reflow the frame model with a reflow reason of eReflowReason_StyleChange.

Implemented in PresShell.

virtual void nsIPresShell::Thaw ( ) [pure virtual, inherited]

Restarts active elements (plugins) in this presentation and in the presentations of subdocuments, then do a full invalidate of the content area.

Implemented in PresShell.

Here is the caller graph for this function:

Implemented in PresShell.

NS_IMETHOD nsIPresShell::UnsuppressPainting ( ) [pure virtual, inherited]

Unsuppress painting.

Implemented in PresShell.


Member Data Documentation

Definition at line 755 of file nsIPresShell.h.

nsIDocument* nsIPresShell::mDocument [protected, inherited]

Definition at line 731 of file nsIPresShell.h.

Definition at line 738 of file nsIPresShell.h.

Definition at line 734 of file nsIPresShell.h.

Definition at line 737 of file nsIPresShell.h.

Definition at line 752 of file nsIPresShell.h.

nsPresContext* nsIPresShell::mPresContext [protected, inherited]

Definition at line 732 of file nsIPresShell.h.

Definition at line 736 of file nsIPresShell.h.

nsStyleSet* nsIPresShell::mStyleSet [protected, inherited]

Definition at line 733 of file nsIPresShell.h.

Definition at line 740 of file nsIPresShell.h.

nsIViewManager* nsIPresShell::mViewManager [protected, inherited]

Definition at line 735 of file nsIPresShell.h.

Definition at line 774 of file nsIPresShell.h.


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