Search completed in 1.16 seconds.
10 results for "nsipresshell":
nsIAccessibilityService
accessible/public/nsIAccessibilityService.idlScriptable Please add a summary to this article. ...
...sIAccessible createHTMLTableCellAccessible(in nsISupports aFrame); nsIAccessible createHTMLTableHeadAccessible(in nsIDOMNode aDOMNode); nsIAccessible createHTMLTextAccessible(in nsISupports aFrame); nsIAccessible createHTMLTextFieldAccessible(in nsISupports aFrame); nsIAccessible createHTMLCaptionAccessible(in nsISupports aFrame); nsIAccessible getAccessible(in nsIDOMNode aNode, in
nsIPresShell aPresShell, in nsIWeakReference aWeakShell, inout nsIFrame frameHint, out boolean aIsHidden); nsIAccessible addNativeRootAccessible(in voidPtr aAtkAccessible); void removeNativeRootAccessible(in nsIAccessible aRootAccessible); void invalidateSubtreeFor(in
nsIPresShell aPresShell, in nsIContent aChangedContent, in PRUint32 aEvent); Methods removeNativeRootAccessible() void removeNat...
...oid removeNativeRootAccessible( in nsIAccessible aRootAccessible ); invalidateSubtreeFor() Invalidate the accessibility cache associated with aPresShell, for accessibles that were generated for aContainerContent and it's subtree. The container content node for the change is passed in, rather than the changed presentation for the content node itself. void invalidateSubtreeFor( in
nsIPresShell aPresShell, in nsIContent aChangedContent, in PRUint32 aEvent ); Parameters <tt>aPresShell</tt> The presShell where changes occured. <tt>aChangedContent</tt> The affected DOM content. <tt>aEvent</tt> The event from nsIAccessibleEvent that caused the change. Must be one of: EVENT_REORDER (change) EVENT_SHOW (make visible or create) or EVENT_HIDE (destroy or hide) ...
Notes on HTML Reflow - Archive of obsolete content
ric information for each frame object that requires it. Reflow may have the side-effect of creating new continuation frames, for example, for a text frame when the text must be wrapped. Some reflows are immediate in response to user or script actions; for example, resizing the window or changing the document's default font. These are dispatched directly from the presentation shell (e.g.,
nsIPresShell::StyleChangeReflow), and affect the entire frame tree. Other reflows are incremental and are dealt with asynchronously; for example, when content streams in from the network. Incremental reflows are queued by the presentation shell for batched dispatch. Reflow State The reflow state object, nsHTMLReflowState, is used to pass constraining information "down" from parent frames to ...
... targeted at an individual frame in the frame hierarchy. A frame requests a Incremental reflow (or one is requested on a frame's behalf) when something about the frame itself has changed. Scheduling. To request (or schedule ) an incremental reflow (e.g., in response to a change in the content model), a reflow command object is created and passed to the presentation shell via the
nsIPresShell::AppendReflowCommand method. The presentation shell does not process the command immediately. Instead, it queues the command, and processes it asynchronously along with other queued reflow commands en masse . Coalescing. As described below, the reflow command has a type and a target frame . Multiple reflow commands with the same type and target frame are coalesce...
Space Manager Detailed Design - Archive of obsolete content
module (nor does it need to be). It is not a general purpose class, and is not intended to be subclasses . Here is the class declaration, taken from the source file as of 01.08.02 /** * Class for dealing with bands of available space. The space manager * defines a coordinate space with an origin at (0, 0) that grows down * and to the right. */ class nsSpaceManager { public: nsSpaceManager(
nsIPresShell* aPresShell, nsIFrame* aFrame); ~nsSpaceManager(); void* operator new(size_t aSize); void operator delete(void* aPtr, size_t aSize); static void Shutdown(); /* * Get the frame that's associated with the space manager. This frame * created the space manager, and the world coordinate space is * relative to this frame. * * You can use QueryInterface() on this frame to get...
...nsSpaceManager(const nsSpaceManager&); // no implementation void operator=(const nsSpaceManager&); // no implementation }; Public API Life Cycle The Constructor requires a Presentation Shell, used for arena allocations mostly, and a frame that this Space Manager is rooted on. The coordinate space of this Space Manager is relative to the frame passed in to the constructor. nsSpaceManager(
nsIPresShell* aPresShell, nsIFrame* aFrame); ~nsSpaceManager(); Operators 'new' and 'delete' are overridden to support a recycler. Space Manager instances come and go pretty frequently, and this recycler prevents excessive heap allocations and the performance penalties associated with it. The #define NS_SPACE_MANAGER_CACHE_SIZE is used to control the number of Space Manager instances that can be present in t...
Choosing the right memory allocator
subtree of the source code. Also, all consumers of the JSAPI must use these routines for allocating memory they plan to pass to the JavaScript runtime. See JSAPI Reference for further information. JS_malloc() JS_realloc() JS_free() JS_strdup() Arena allocators NSPR exposes arena allocators that can be used to efficiently allocate lots of small, uniformly sized objects. PresShell arena
nsIPresShell::AllocateFrame() and nsPresContext::AllocateFromShell() can be used to allocate memory from an arena maintained by the PresShell. These should only be used to allocate objects that are guaranteed to have a shorter lifetime than the PresShell in question (typically layout data structures), because the PresShell destructor will wipe out the arena, leaving any pointers to memory allocated from it da...
...eFromShell() can be used to allocate memory from an arena maintained by the PresShell. These should only be used to allocate objects that are guaranteed to have a shorter lifetime than the PresShell in question (typically layout data structures), because the PresShell destructor will wipe out the arena, leaving any pointers to memory allocated from it dangling. The corresponding deallocators are
nsIPresShell::FreeFrame() and nsPresContext::FreeToShell(). Notes Memory that is allocated with the C standard library (malloc() and free()) should not be passed between shared libraries. These memory buffers may be used within a single shared library or program. For data structures being passed across XPCOM boundaries, use NS_Alloc() instead. ...
nsIAccessibleRetrieval
ibleRetrieval.idlScriptable An interface for in-process accessibility clients wishing to get an nsIAccessible or nsIAccessNode for a given DOM node. ...
...); Parameters aNode The DOM node to get an accessible for. Return value The nsIAccessible for the given DOM node. getAccessibleInShell() Return an nsIAccessible for a DOM node in the given pres shell. Create a new accessible of the appropriate type if necessary, or use one from the accessibility cache if it already exists. nsIAccessible getAccessibleInShell( in nsIDOMNode aNode, in
nsIPresShell aPresShell ); Parameters aNode The DOM node to get an accessible for. aPresShell The presentation shell which contains layout info for the DOM node. Return value The nsIAccessible for the given DOM node. getAccessibleInWeakShell() Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Return an nsIAccessible for a DOM node in the given ...
nsIDocShell
after OnLocationChange fires. Read only. documentCharsetInfo nsIDocumentCharsetInfo The document character set info. This is used by a load to determine priorities for charset detection and so on. Obsolete since Gecko 12.0 Note: The properties of the old nsIDocumentCharsetInfo interface were merged into nsIDocShell in Gecko 12.0. eldestPresShell
nsIPresShell Presentation shell for the oldest document, if this docshell is currently transitioning between documents. Read only. Native code only! forcedCharset nsIAtom A character set to override the page's default character set while processing; this is tried before using any other character set during page loads. Note: Prior to Gecko 12.0, this attribute was part of a se...
...terface. parentURIContentListener nsIURIContentListener URI content listener parent. This is not refcounted and is assumed to be nulled out by the parent when the parent is going away. Obsolete since Gecko 1.8 presContext nsPresContext Presentation context for the currently loaded document. This may be null. Read only. Native code only! presShell
nsIPresShell Presentation shell for the currently loaded document. This may be null. Read only. Native code only! previousTransIndex long Keeps track of the previous SHTransaction index and the current SHTransaction index at the time that the doc shell begins to load. Used for ContentViewer eviction. Read only. printPreview nsIWebBrowserPrint If the current content viewer is ...
nsISelectionPrivate
code only! Obsolete since Gecko 12.0 long getTableSelectionType(in nsIDOMRange range); void removeSelectionListener(in nsISelectionListener listenerToRemove); void scrollIntoView(in short aRegion, in boolean aIsSynchronous, in short aVPercent, in short aHPercent); void setAncestorLimiter(in nsIContent aContent); Native code only! void setPresShell(in
nsIPresShell aPresShell); Native code only! void setTextRangeStyle(in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle); Native code only! void startBatchChanges(); wstring toStringWithFormat(in string formatType, in unsigned long flags, in PRInt32 wrapColumn); Attributes Attribute Type Description canCacheFrameOffset boolean Fr...
...tally . A value of -1 means move the frame the minimum amount necessary in order for the entire frame to be visible horizontally (if possible). Native code only!setAncestorLimiter void setAncestorLimiter( in nsIContent aContent ); Parameters aContent Native code only!setPresShell Internal utility method to set the pres shell on a newly created selection. void setPresShell( in
nsIPresShell aPresShell ); Parameters aPresShell Native code only!setTextRangeStyle Set the painting style for the range. The range must be a range in the selection. The textRangeStyle will be used by text frame when it is painting the selection. void setTextRangeStyle( in nsIDOMRange range, in constTextRangeStyleRef textRangeStyle ); Parameters range textRangeStyle startBatchC...
nsIContentViewer
the history entry that this viewer will save itself into when destroyed. Can return null. Read only. isTabModalPromptAllowed boolean Read only. presContext nsPresContextPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. presShell
nsIPresShellPtr Read only. Native code only! Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of nsIDocumentViewer. previousViewer nsIContentViewer The previous content viewer, which has been closed but not destroyed. Native code only! sticky boolean Methods clearHistoryEntry() Clears the current h...
nsIDOMWindowUtils
windows. Cannot be accessed from unprivileged context (not content-accessible). Will throw a DOM security error if called without UniversalXPConnect privileges. void disableNonTestMouseEvents( in boolean aDisable ); Parameters aDisable If true, disable all non synthetic test mouse events on all windows. Otherwise, enable them. dispatchDOMEventViaPresShell() Dispatches aEvent via the
nsIPresShell object of the window's document. The event is dispatched to aTarget, which should be an object which implements nsIContent interface (#element, #text, etc). Cannot be accessed from unprivileged context (not content-accessible) Will throw a DOM security error if called without UniversalXPConnect privileges. Note: Event handlers won't get aEvent as parameter, but a similar event. Also, aEvent sho...
nsIEditor
nsISelection Read only. The selection/caret for this editor. In the case of a design mode document, this is the same as the window's selection. selectionController nsISelectionController Read only. The selection controller for the current presentation. Methods Native code only!init Initializes the editor's services. [noscript] void init( in nsIDOMDocument doc, in
nsIPresShellPtr shell, Obsolete since Gecko 5 in nsIContent aRoot, in nsISelectionController aSelCon, in unsigned long aFlags ); Parameters doc The document to observe. shell Obsolete since Gecko 5.0 The
nsIPresShellPtr representing the presentation shell displaying the document. This parameter was removed in Gecko 5.0 (Firefox 5.0 / Thunderbird 5.0 / SeaMonkey 2.2). aRoot The root of the edita...