Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsListControlFrame Class Reference

#include <nsListControlFrame.h>

Inheritance diagram for nsListControlFrame:

nsHTMLScrollFrame nsIFormControlFrame nsIListControlFrame nsISelectControlFrame nsIAnonymousContentCreator nsISupports nsISupports nsISupports nsContainerFrame nsISupports nsISupports nsISupports nsFrame nsIFrame nsISupports

List of all members.


Detailed Description

Frame-based listbox.

Definition at line 75 of file nsListControlFrame.h.


Public Types

enum  { DISPLAY_CHILD_FORCE_PSEUDO_STACKING_CONTEXT = 0x01, DISPLAY_CHILD_FORCE_STACKING_CONTEXT = 0x02, DISPLAY_CHILD_INLINE = 0x04 }
enum  {
  eMathML = 1 << 0, eSVG = 1 << 1, eSVGForeignObject = 1 << 2, eBidiInlineContainer = 1 << 3,
  eReplaced = 1 << 4, eReplacedContainsBlock = 1 << 5, eLineParticipant = 1 << 6, eXULBox = 1 << 7,
  eCanContainOverflowContainers = 1 << 8, eBlockFrame = 1 << 9, eDEBUGAllFrames = 1 << 30, eDEBUGNoFrames = 1 << 31
}
enum  Halignment { hAlign_Left, hAlign_Right, hAlign_Center }
typedef
nsPresContext::ScrollbarStyles 
ScrollbarStyles
enum  SpecialStateID { eNoID = 0, eDocumentScrollState }
enum  Valignment { vAlign_Top, vAlign_Middle, vAlign_BaseLine, vAlign_Bottom }

Public Member Functions

virtual void AboutToDropDown ()
virtual void AboutToRollup ()
void AddBorderAndPadding (nsSize &aSize)
virtual nsresult AddFrames (nsIFrame *aFrameList, nsIFrame *aPrevSibling)
virtual void AddInlineMinWidth (nsIRenderingContext *aRenderingContext, InlineMinWidthData *aData)
virtual void AddInlinePrefWidth (nsIRenderingContext *aRenderingContext, InlinePrefWidthData *aData)
void AddMargin (nsSize &aSize)
NS_IMETHOD AddOption (nsPresContext *aPresContext, PRInt32 index)
void AddStateBits (nsFrameState aBits)
virtual void AdjustOffsetsForBidi (PRInt32 aStart, PRInt32 aEnd)
NS_IMETHOD AppendFrames (nsIAtom *aListName, nsIFrame *aFrameList)
void ApplySkipSides (nsMargin &aMargin) const
virtual PRBool AreAncestorViewsVisible () const
NS_IMETHOD AttributeChanged (PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType)
PRBool BreakWordBetweenPunctuation (const PeekWordState *aState, PRBool aForward, PRBool aPunctAfter, PRBool aWhitespaceAfter, PRBool aIsKeyboardSelect)
NS_IMETHOD BuildDisplayList (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists)
nsresult BuildDisplayListForChild (nsDisplayListBuilder *aBuilder, nsIFrame *aChild, const nsRect &aDirtyRect, const nsDisplayListSet &aLists, PRUint32 aFlags=0)
nsresult BuildDisplayListForStackingContext (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, nsDisplayList *aList)
virtual PRBool CachedIsEmpty ()
virtual ContentOffsets CalcContentOffsetsFromFramePoint (nsPoint aPoint)
nscoord CalcHeightOfARow ()
virtual PRBool CanContinueTextRun () const
NS_IMETHOD CaptureMouse (nsPresContext *aPresContext, PRBool aGrabMouseEvents)
virtual void CaptureMouseEvents (PRBool aGrabMouseEvents)
NS_IMETHOD CharacterDataChanged (nsPresContext *aPresContext, nsIContent *aChild, PRBool aAppend)
void CheckInvalidateSizeChange (nsPresContext *aPresContext, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState)
NS_IMETHOD CheckVisibility (nsPresContext *aContext, PRInt32 aStartIndex, PRInt32 aEndIndex, PRBool aRecurse, PRBool *aFinished, PRBool *_retval)
virtual void ChildIsDirty (nsIFrame *aChild)
virtual PRBool ChildrenMustHaveWidgets () const
nsresult Clip (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aFromSet, const nsDisplayListSet &aToSet, const nsRect &aClipRect)
virtual void ComboboxFinish (PRInt32 aIndex)
virtual nsSize ComputeAutoSize (nsIRenderingContext *aRenderingContext, nsSize aCBSize, nscoord aAvailableWidth, nsSize aMargin, nsSize aBorder, nsSize aPadding, PRBool aShrinkWrap)
nsRect ComputeSimpleTightBounds (gfxContext *aContext) const
virtual nsSize ComputeSize (nsIRenderingContext *aRenderingContext, nsSize aCBSize, nscoord aAvailableWidth, nsSize aMargin, nsSize aBorder, nsSize aPadding, PRBool aShrinkWrap)
virtual PRBool ComputesOwnOverflowArea ()
virtual nsRect ComputeTightBounds (gfxContext *aContext) const
void ConsiderChildOverflow (nsRect &aOverflowArea, nsIFrame *aChildFrame)
void CoordNeedsRecalc (nscoord &aCoord)
virtual nsresult CreateAnonymousContent (nsTArray< nsIContent * > &aElements)
virtual nsIFrameCreateFrameFor (nsIContent *aContent)
virtual nsresult CreateWidgetForView (nsIView *aView)
virtual void CurPosAttributeChanged (nsIContent *aChild, PRInt32 aModType)
virtual void DeleteNextInFlowChild (nsPresContext *aPresContext, nsIFrame *aNextInFlow)
virtual void Destroy ()
PRBool DidHistoryRestore ()
NS_IMETHOD DidReflow (nsPresContext *aPresContext, const nsHTMLReflowState *aReflowState, nsDidReflowStatus aStatus)
nsresult DisplayBorderBackgroundOutline (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aLists, PRBool aForceBackground=PR_FALSE)
nsresult DisplayCaret (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists)
nsresult DisplayOutline (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aLists)
nsresult DisplayOutlineUnconditional (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aLists)
void DisplayOverflowContainers (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists)
nsresult DisplayTextDecorations (nsDisplayListBuilder *aBuilder, nsDisplayList *aBelowTextDecorations, nsDisplayList *aAboveTextDecorations, nsLineBox *aLine)
virtual PRBool DoesClipChildren ()
PRBool DoesNeedRecalc (nscoord aCoord)
PRBool DoesNeedRecalc (const nsSize &aSize)
nsresult DoGetParentStyleContextFrame (nsPresContext *aPresContext, nsIFrame **aProviderFrame, PRBool *aIsChild)
void DoInlineIntrinsicWidth (nsIRenderingContext *aRenderingContext, InlineIntrinsicWidthData *aData, nsLayoutUtils::IntrinsicWidthType aType)
NS_IMETHOD DoneAddingChildren (PRBool aIsDone)
nsresult DragMove (nsIDOMEvent *aMouseEvent)
void FinishAndStoreOverflow (nsHTMLReflowMetrics *aMetrics)
void FinishAndStoreOverflow (nsRect *aOverflowArea, nsSize aNewSize)
virtual void FireOnChange ()
PRBool GetAbsPosClipRect (const nsStyleDisplay *aDisp, nsRect *aRect, const nsSize &aSize)
virtual nsMargin GetActualScrollbarSizes () const
virtual nsIAtom * GetAdditionalChildListName (PRInt32 aIndex) const
virtual nsStyleContext * GetAdditionalStyleContext (PRInt32 aIndex) const
nsIFrameGetAncestorWithView () const
virtual nsIFrameGetAncestorWithViewExternal () const
virtual nscoord GetBaseline () const
NS_IMETHOD GetBorder (nsMargin &aBorderAndPadding)
NS_IMETHOD GetBorderAndPadding (nsMargin &aBorderAndPadding)
virtual nscoord GetBoxAscent (nsBoxLayoutState &aBoxLayoutState)
nsIBox * GetChildBox () const
NS_IMETHOD GetChildFrameContainingOffset (PRInt32 inContentOffset, PRBool inHint, PRInt32 *outFrameContentOffset, nsIFrame **outChildFrame)
nsIViewGetClosestView (nsPoint *aOffset=nsnull) const
const nsFrameSelectionGetConstFrameSelection ()
nsIContentGetContent () const
NS_IMETHOD GetContentForEvent (nsPresContext *aPresContext, nsEvent *aEvent, nsIContent **aContent)
virtual nsIFrameGetContentInsertionFrame ()
ContentOffsets GetContentOffsetsFromPoint (nsPoint aPoint, PRBool aIgnoreSelectionStyle=PR_FALSE)
virtual ContentOffsets GetContentOffsetsFromPointExternal (nsPoint aPoint, PRBool aIgnoreSelectionStyle=PR_FALSE)
nsRect GetContentRect () const
NS_IMETHOD GetCursor (const nsPoint &aPoint, nsIFrame::Cursor &aCursor)
virtual nsMargin GetDesiredScrollbarSizes (nsPresContext *aPresContext, nsIRenderingContext *aRC)
virtual nsMargin GetDesiredScrollbarSizes (nsBoxLayoutState *aState)
nsPeekOffsetStruct GetExtremeCaretPosition (PRBool aStart)
virtual nsIFrameGetFirstChild (nsIAtom *aListName) const
virtual nsIFrameGetFirstContinuation () const
virtual nsIFrameGetFirstInFlow () const
virtual nscoord GetFlex (nsBoxLayoutState &aBoxLayoutState)
virtual nsresult GetFormProperty (nsIAtom *aName, nsAString &aValue) const
nsresult GetFrameFromDirection (nsDirection aDirection, PRBool aVisual, PRBool aJumpLines, PRBool aScrollViewStop, nsIFrame **aOutFrame, PRInt32 *aOutOffset, PRBool *aOutJumpedLine)
already_AddRefed
< nsFrameSelection
GetFrameSelection ()
virtual Halignment GetHAlign () const
virtual nscoord GetHeightOfARow ()
virtual nsSize GetIntrinsicRatio ()
virtual IntrinsicSize GetIntrinsicSize ()
nscoord GetIntrinsicVScrollbarWidth (nsIRenderingContext *aRenderingContext)
virtual nsIFrameGetLastContinuation () const
virtual nsIFrameGetLastInFlow () const
NS_IMETHOD GetLayoutManager (nsIBoxLayout **aLayout)
NS_IMETHOD GetMargin (nsMargin &aMargin)
nsRect GetMarginRect () const
virtual nsSize GetMaxSize (nsBoxLayoutState &aBoxLayoutState)
virtual nsSize GetMinSize (nsBoxLayoutState &aBoxLayoutState)
virtual nsSize GetMinSizeForScrollArea (nsBoxLayoutState &aBoxLayoutState)
virtual nscoord GetMinWidth (nsIRenderingContext *aRenderingContext)
virtual nsIViewGetMouseCapturer () const
virtual PRBool GetMouseThrough () const
nsIBox * GetNextBox () const
virtual nsIFrameGetNextContinuation () const
nsIFrameGetNextInFlow () const
virtual nsIFrameGetNextInFlowVirtual () const
nsIFrameGetNextSibling () const
virtual PRInt32 GetNumberOfOptions ()
NS_IMETHOD GetOffsetFromView (nsPoint &aOffset, nsIView **aView) const
NS_IMETHOD GetOffsets (PRInt32 &aStart, PRInt32 &aEnd) const
nsPoint GetOffsetTo (const nsIFrame *aOther) const
virtual nsPoint GetOffsetToExternal (const nsIFrame *aOther) const
NS_IMETHOD GetOptionSelected (PRInt32 aIndex, PRBool *aValue)
virtual void GetOptionText (PRInt32 aIndex, nsAString &aStr)
PRUint32 GetOrdinal (nsBoxLayoutState &aBoxLayoutState)
NS_IMETHOD GetOriginToViewOffset (nsPoint &aOffset, nsIView **aView) const
nsRect GetOverflowRect () const
NS_IMETHOD GetPadding (nsMargin &aPadding)
nsRect GetPaddingRect () const
nsIFrameGetParent () const
nsIBox * GetParentBox () const
NS_IMETHOD GetParentStyleContextFrame (nsPresContext *aPresContext, nsIFrame **aProviderFrame, PRBool *aIsChild)
virtual nsIViewGetParentViewForChildFrame (nsIFrame *aFrame) const
NS_IMETHOD GetPointFromOffset (PRInt32 inOffset, nsPoint *outPoint)
nsPoint GetPosition () const
nsPoint GetPositionIgnoringScrolling ()
virtual nsPoint GetPositionOfChildIgnoringScrolling (nsIFrame *aChild)
virtual nsSize GetPrefSize (nsBoxLayoutState &aBoxLayoutState)
virtual nscoord GetPrefWidth (nsIRenderingContext *aRenderingContext)
virtual nsIFrameGetPrevContinuation () const
nsIFrameGetPrevInFlow () const
virtual nsIFrameGetPrevInFlowVirtual () const
nsRect GetRect () const
nsPoint GetRelativeOffset (const nsStyleDisplay *aDisplay=nsnull) const
virtual nsresult GetRenderedText (nsAString *aAppendToString=nsnull, gfxSkipChars *aSkipChars=nsnull, gfxSkipCharsIterator *aSkipIter=nsnull, PRUint32 aSkippedStartOffset=0, PRUint32 aSkippedMaxLength=PR_UINT32_MAX)
nsIntRect GetScreenRect () const
virtual nsIntRect GetScreenRectExternal () const
virtual nsIScrollableViewGetScrollableView ()
virtual nsIBox * GetScrollbarBox (PRBool aVertical)
virtual
nsGfxScrollFrameInner::ScrollbarStyles 
GetScrollbarStyles () const
virtual nsIFrameGetScrolledFrame () const
virtual nsPoint GetScrollPosition () const
NS_IMETHOD GetSelected (PRBool *aSelected) const
virtual PRInt32 GetSelectedIndex ()
NS_IMETHOD GetSelectionController (nsPresContext *aPresContext, nsISelectionController **aSelCon)
nsSize GetSize () const
virtual PRIntn GetSkipSides () const
virtual nsSplittableType GetSplittableType () const
nsFrameState GetStateBits () const
nsStyleContext * GetStyleContext () const
virtual const void * GetStyleDataExternal (nsStyleStructID aSID) const
nsIFrameGetTailContinuation ()
virtual nsIAtom * GetType () const
virtual nsMargin GetUsedBorder () const
nsMargin GetUsedBorderAndPadding () const
virtual nsMargin GetUsedMargin () const
virtual nsMargin GetUsedPadding () const
virtual Valignment GetVAlign () const
nsIViewGetView () const
virtual nsIViewGetViewExternal () const
virtual nsIWidgetGetWindow () const
NS_IMETHOD HandleDrag (nsPresContext *aPresContext, nsGUIEvent *aEvent, nsEventStatus *aEventStatus)
NS_IMETHOD HandleEvent (nsPresContext *aPresContext, nsGUIEvent *aEvent, nsEventStatus *aEventStatus)
NS_IMETHOD HandleMultiplePress (nsPresContext *aPresContext, nsGUIEvent *aEvent, nsEventStatus *aEventStatus)
NS_IMETHOD HandlePress (nsPresContext *aPresContext, nsGUIEvent *aEvent, nsEventStatus *aEventStatus)
NS_IMETHOD HandleRelease (nsPresContext *aPresContext, nsGUIEvent *aEvent, nsEventStatus *aEventStatus)
virtual PRBool HasTerminalNewline () const
PRBool HasView () const
virtual PRBool HonorPrintBackgroundSettings ()
NS_IMETHOD Init (nsIContent *aContent, nsIFrame *aParent, nsIFrame *aPrevInFlow)
NS_IMETHOD InsertFrames (nsIAtom *aListName, nsIFrame *aPrevFrame, nsIFrame *aFrameList)
virtual IntrinsicWidthOffsetData IntrinsicWidthOffsets (nsIRenderingContext *aRenderingContext)
void Invalidate (const nsRect &aDamageRect, PRBool aImmediate=PR_FALSE)
void InvalidateFocus ()
virtual void InvalidateInternal (const nsRect &aDamageRect, nscoord aX, nscoord aY, nsIFrame *aForChild, PRBool aImmediate)
void InvalidateOverflowRect ()
void InvalidateRectDifference (const nsRect &aR1, const nsRect &aR2)
PRBool IsBoxFrame () const
PRBool IsBoxWrapped () const
virtual PRBool IsCollapsed (nsBoxLayoutState &aBoxLayoutState)
virtual PRBool IsContainingBlock () const
virtual PRBool IsEmpty ()
virtual PRBool IsFloatContainingBlock () const
virtual PRBool IsFocusable (PRInt32 *aTabIndex=nsnull, PRBool aWithMouse=PR_FALSE)
PRBool IsFocused ()
virtual PRBool IsFrameOfType (PRUint32 aFlags) const
PRBool IsFrameTreeTooDeep (const nsHTMLReflowState &aReflowState, nsHTMLReflowMetrics &aMetrics)
PRBool IsGeneratedContentFrame ()
PRBool IsHorizontal () const
PRBool IsInDropDownMode () const
virtual PRBool IsLeaf () const
PRBool IsMouseCaptured (nsPresContext *aPresContext)
PRBool IsNormalDirection () const
PRBool IsPseudoFrame (nsIContent *aParentContent)
PRBool IsPseudoStackingContextFromStyle ()
NS_IMETHOD IsSelectable (PRBool *aIsSelectable, PRUint8 *aSelectStyle) const
virtual PRBool IsSelfEmpty ()
PRBool IsThemed (const nsStyleDisplay *aDisp)
PRBool IsThemed ()
PRBool IsVisibleForPainting ()
PRBool IsVisibleForPainting (nsDisplayListBuilder *aBuilder)
virtual PRBool IsVisibleInSelection (nsISelection *aSelection)
PRBool IsVisibleInSelection (nsDisplayListBuilder *aBuilder)
PRBool IsVisibleOrCollapsedForPainting (nsDisplayListBuilder *aBuilder)
nsresult KeyPress (nsIDOMEvent *aKeyEvent)
virtual void MarkIntrinsicWidthsDirty ()
PRBool MightNeedSecondPass () const
nsresult MouseDown (nsIDOMEvent *aMouseEvent)
nsresult MouseMove (nsIDOMEvent *aMouseEvent)
nsresult MouseUp (nsIDOMEvent *aMouseEvent)
virtual PRBool NeedsView ()
 NS_HIDDEN_ (nsresult) DeleteProperty(nsIAtom *aPropertyName) const
 NS_HIDDEN_ (void *) GetProperty(nsIAtom *aPropertyName
 NS_HIDDEN_ (nsresult) SyncLayout(nsBoxLayoutState &aBoxLayoutState)
virtual void OnContentReset ()
NS_IMETHOD OnOptionSelected (nsPresContext *aPresContext, PRInt32 aIndex, PRBool aSelected)
NS_IMETHOD OnSetSelectedIndex (PRInt32 aOldIndex, PRInt32 aNewIndex)
void operator delete (void *aPtr, size_t sz)
void * operator new (size_t sz, nsIPresShell *aPresShell) CPP_THROW_NEW
nsresult OverflowClip (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aFromSet, const nsDisplayListSet &aToSet, const nsRect &aClipRect, PRBool aClipBorderBackground=PR_FALSE, PRBool aClipAll=PR_FALSE)
void PaintFocus (nsIRenderingContext &aRC, nsPoint aPt)
NS_IMETHOD PeekBackwardAndForward (nsSelectionAmount aAmountBack, nsSelectionAmount aAmountForward, PRInt32 aStartPos, nsPresContext *aPresContext, PRBool aJumpLines)
NS_IMETHOD PeekOffset (nsPeekOffsetStruct *aPos)
virtual PRBool PeekOffsetCharacter (PRBool aForward, PRInt32 *aOffset)
virtual PRBool PeekOffsetNoAmount (PRBool aForward, PRInt32 *aOffset)
virtual PRBool PeekOffsetWord (PRBool aForward, PRBool aWordSelectEatSpace, PRBool aIsKeyboardSelect, PRInt32 *aOffset, PeekWordState *aState)
void PlaceScrollArea (const ScrollReflowState &aState)
virtual void PostCreateFrames ()
nsPresContext * PresContext () const
NS_IMETHOD QueryInterface (const nsIID &aIID, void **aInstancePtr)
NS_IMETHOD Reflow (nsPresContext *aCX, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState, nsReflowStatus &aStatus)
nsresult ReflowChild (nsIFrame *aKidFrame, nsPresContext *aPresContext, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState, nscoord aX, nscoord aY, PRUint32 aFlags, nsReflowStatus &aStatus, nsOverflowContinuationTracker *aTracker=nsnull)
nsresult ReflowContents (ScrollReflowState *aState, const nsHTMLReflowMetrics &aDesiredSize)
nsresult ReflowOverflowContainerChildren (nsPresContext *aPresContext, const nsHTMLReflowState &aReflowState, nsRect &aOverflowRect, PRUint32 aFlags, nsReflowStatus &aStatus)
nsresult ReflowScrolledFrame (ScrollReflowState *aState, PRBool aAssumeHScroll, PRBool aAssumeVScroll, nsHTMLReflowMetrics *aMetrics, PRBool aFirstPass)
NS_IMETHOD RelayoutChildAtOrdinal (nsBoxLayoutState &aState, nsIBox *aChild)
virtual void RemovedAsPrimaryFrame ()
NS_IMETHOD RemoveFrame (nsIAtom *aListName, nsIFrame *aOldFrame)
NS_IMETHOD RemoveOption (nsPresContext *aPresContext, PRInt32 index)
void RemoveStateBits (nsFrameState aBits)
NS_IMETHOD RestoreState (nsPresState *aState)
NS_IMETHOD SaveState (SpecialStateID aStateID, nsPresState **aState)
PRBool ScrolledContentDependsOnHeight (ScrollReflowState *aState)
virtual void ScrollTo (nsPoint aScrollPosition, PRUint32 aFlags)
virtual void ScrollToRestoredPosition ()
virtual void SetAdditionalStyleContext (PRInt32 aIndex, nsStyleContext *aStyleContext)
virtual void SetBounds (nsBoxLayoutState &aBoxLayoutState, const nsRect &aRect, PRBool aRemoveOverflowArea=PR_FALSE)
virtual void SetComboboxFrame (nsIFrame *aComboboxFrame)
virtual void SetFocus (PRBool aOn=PR_TRUE, PRBool aRepaint=PR_FALSE)
virtual nsresult SetFormProperty (nsIAtom *aName, const nsAString &aValue)
NS_IMETHOD SetInitialChildList (nsIAtom *aListName, nsIFrame *aChildList)
NS_IMETHOD SetLayoutManager (nsIBoxLayout *aLayout)
NS_IMETHOD SetNextContinuation (nsIFrame *)
NS_IMETHOD SetNextInFlow (nsIFrame *)
void SetNextSibling (nsIFrame *aNextSibling)
NS_IMETHOD SetParent (const nsIFrame *aParent)
void SetPosition (const nsPoint &aPt)
NS_IMETHOD SetPrevContinuation (nsIFrame *)
NS_IMETHOD SetPrevInFlow (nsIFrame *)
void SetRect (const nsRect &aRect)
virtual void SetScrollbarVisibility (PRBool aVerticalVisible, PRBool aHorizontalVisible)
NS_IMETHOD SetSelected (nsPresContext *aPresContext, nsIDOMRange *aRange, PRBool aSelected, nsSpread aSpread)
void SetSize (const nsSize &aSize)
void SetStyleContext (nsStyleContext *aContext)
void SetStyleContextWithoutNotification (nsStyleContext *aContext)
void SetSuppressScrollbarUpdate (PRBool aSuppress)
nsresult SetView (nsIView *aView)
virtual PRBool ShouldPropagateComputedHeightToScrolledContent () const
nscoord ShrinkWidthToFit (nsIRenderingContext *aRenderingContext, nscoord aWidthInCB)
void SizeNeedsRecalc (nsSize &aSize)
virtual nsresult StealFrame (nsPresContext *aPresContext, nsIFrame *aChild, PRBool aForceNormal=PR_FALSE)
virtual PRBool SupportsVisibilityHidden ()
virtual void SyncViewWithFrame ()
PRBool TryLayout (ScrollReflowState *aState, nsHTMLReflowMetrics *aKidMetrics, PRBool aAssumeVScroll, PRBool aAssumeHScroll, PRBool aForce, nsresult *aResult)
NS_IMETHOD WillReflow (nsPresContext *aPresContext)
Methods
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static void AddBorderAndPadding (nsIBox *aBox, nsSize &aSize)
static PRBool AddCSSCollapsed (nsBoxLayoutState &aState, nsIBox *aBox, PRBool &aCollapsed)
static PRBool AddCSSFlex (nsBoxLayoutState &aState, nsIBox *aBox, nscoord &aFlex)
static PRBool AddCSSMaxSize (nsBoxLayoutState &aState, nsIBox *aBox, nsSize &aSize)
static PRBool AddCSSMinSize (nsBoxLayoutState &aState, nsIBox *aBox, nsSize &aSize)
static PRBool AddCSSOrdinal (nsBoxLayoutState &aState, nsIBox *aBox, PRUint32 &aOrdinal)
static PRBool AddCSSPrefSize (nsBoxLayoutState &aState, nsIBox *aBox, nsSize &aSize)
static void AddMargin (nsSize &aSize, const nsMargin &aMargin)
static void AddMargin (nsIBox *aChild, nsSize &aSize)
static nscoord BoundsCheck (nscoord aMinSize, nscoord aPrefSize, nscoord aMaxSize)
static nsSize BoundsCheck (const nsSize &aMinSize, const nsSize &aPrefSize, const nsSize &aMaxSize)
static nsSize BoundsCheckMinMax (const nsSize &aMinSize, const nsSize &aMaxSize)
static void BreakFromPrevFlow (nsIFrame *aFrame)
static void ComboboxFocusSet ()
static nsIFrameCorrectStyleParentFrame (nsIFrame *aProspectiveParent, nsIAtom *aChildPseudo)
static nsresult CreateNextInFlow (nsPresContext *aPresContext, nsIFrame *aOuterFrame, nsIFrame *aFrame, nsIFrame *&aNextInFlowResult)
static nsresult CreateViewForFrame (nsIFrame *aFrame, nsIFrame *aContentParentFrame, PRBool aForce)
static nsresult FinishReflowChild (nsIFrame *aKidFrame, nsPresContext *aPresContext, const nsHTMLReflowState *aReflowState, const nsHTMLReflowMetrics &aDesiredSize, nscoord aX, nscoord aY, PRUint32 aFlags)
static PRBool FrameNeedsView (nsIFrame *aFrame)
static void GetFirstLeaf (nsPresContext *aPresContext, nsIFrame **aFrame)
static void GetLastLeaf (nsPresContext *aPresContext, nsIFrame **aFrame)
static PRInt32 GetLineNumber (nsIFrame *aFrame, nsIFrame **aContainingBlock=nsnull)
static nsIFrameGetNearestCapturingFrame (nsIFrame *aFrame)
static nsresult GetNextPrevLineFromeBlockFrame (nsPresContext *aPresContext, nsPeekOffsetStruct *aPos, nsIFrame *aBlockFrame, PRInt32 aLineStart, PRInt8 aOutSideLimit)
static already_AddRefed
< nsIDOMHTMLOptionElement
GetOption (nsIDOMHTMLOptionsCollection *aOptions, PRInt32 aIndex)
static already_AddRefed
< nsIContent
GetOptionAsContent (nsIDOMHTMLOptionsCollection *aCollection, PRInt32 aIndex)
static already_AddRefed
< nsIDOMHTMLOptionsCollection
GetOptions (nsIContent *aContent)
static PRInt32 LengthOf (nsIFrame *aFrameList)
static void PositionChildViews (nsIFrame *aFrame)
static void PositionFrameView (nsIFrame *aKidFrame)
static void RemoveFromFlow (nsIFrame *aFrame)
static nsresult ReparentFrameView (nsPresContext *aPresContext, nsIFrame *aChildFrame, nsIFrame *aOldParentFrame, nsIFrame *aNewParentFrame)
static nsresult ReparentFrameViewList (nsPresContext *aPresContext, nsIFrame *aChildFrameList, nsIFrame *aOldParentFrame, nsIFrame *aNewParentFrame)
static void Shutdown ()
static void SyncFrameViewAfterReflow (nsPresContext *aPresContext, nsIFrame *aFrame, nsIView *aView, const nsRect *aCombinedArea, PRUint32 aFlags=0)
static void SyncFrameViewProperties (nsPresContext *aPresContext, nsIFrame *aFrame, nsStyleContext *aStyleContext, nsIView *aView, PRUint32 aFlags=0)

Public Attributes

void NSPropertyDtorFunc aDestructor = nsnull
void NSPropertyDtorFunc void * aDtorData = nsnull)
const nsRect PRBool aImmediate = PR_FALSE)
const nsRect * aRect = nsnull
nsresult * aStatus = nsnull) const
void * aValue
virtual nsresult *aStatus const

Protected Types

enum  eMouseThrough { unset, never, always }

Protected Member Functions

void AdjustIndexForDisabledOpt (PRInt32 aStartIndex, PRInt32 &anNewIndex, PRInt32 aNumOptions, PRInt32 aDoAdjustInc, PRInt32 aDoAdjustIncNext)
nsBoxLayoutMetrics * BoxMetrics () const
nsresult BuildDisplayListForNonBlockChildren (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists, PRUint32 aFlags=0)
nscoord CalcFallbackRowHeight (PRInt32 aNumOptions)
nscoord CalcIntrinsicHeight (nscoord aHeightOfARow, PRInt32 aNumberOfOptions)
PRBool CheckIfAllFramesHere ()
NS_IMETHOD DidSetStyleContext ()
PRInt16 DisplaySelection (nsPresContext *aPresContext, PRBool isOkToTurnOn=PR_FALSE)
nsresult DisplaySelectionOverlay (nsDisplayListBuilder *aBuilder, const nsDisplayListSet &aLists, PRUint16 aContentType=nsISelectionDisplay::DISPLAY_FRAMES)
nsresult DisplayTextDecorationsAndChildren (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists)
NS_IMETHOD DoLayout (nsBoxLayoutState &aBoxLayoutState)
void DropDownToggleKey (nsIDOMEvent *aKeyEvent)
PRBool ExtendedSelection (PRInt32 aStartIndex, PRInt32 aEndIndex, PRBool aClearAll)
void FireDOMEvent (const nsAString &aDOMEventName, nsIContent *aContent=nsnull)
NS_IMETHOD GetDataForTableSelection (const nsFrameSelection *aFrameSelection, nsIPresShell *aPresShell, nsMouseEvent *aMouseEvent, nsIContent **aParentContent, PRInt32 *aContentOffset, PRInt32 *aTarget)
virtual PRBool GetDefaultFlex (PRInt32 &aFlex)
PRInt32 GetIndexFromContent (nsIContent *aContent)
nsresult GetIndexFromDOMEvent (nsIDOMEvent *aMouseEvent, PRInt32 &aCurIndex)
virtual void GetLayoutFlags (PRUint32 &aFlags)
PRBool GetMultiple (nsIDOMHTMLSelectElement *aSelect=nsnull) const
already_AddRefed< nsIContentGetOptionContent (PRInt32 aIndex) const
nsIContentGetOptionFromContent (nsIContent *aContent)
nsSelectsAreaFrameGetOptionsContainer () const
nsIFrameGetOverflowFrames (nsPresContext *aPresContext, PRBool aRemoveProperty) const
nsFrameListGetPropTableFrames (nsPresContext *aPresContext, nsIAtom *aPropID) const
nsSize GetScrollPortSize () const
nsresult GetSizeAttribute (PRInt32 *aSize)
void GetTextDecorations (nsPresContext *aPresContext, PRBool aIsBlock, PRUint8 &aDecorations, nscolor &aUnderColor, nscolor &aOverColor, nscolor &aStrikeColor)
virtual PRBool GetWasCollapsed (nsBoxLayoutState &aState)
PRBool GuessHScrollbarNeeded (const ScrollReflowState &aState)
PRBool GuessVScrollbarNeeded (const ScrollReflowState &aState)
PRBool HandleListSelection (nsIDOMEvent *aDOMEvent, PRInt32 selectedIndex)
PRBool HasBorder () const
nscoord HeightOfARow ()
PRBool IgnoreMouseEventForSelection (nsIDOMEvent *aEvent)
PRBool InInitialReflow () const
void InitBoxMetrics (PRBool aClear)
void InitSelectionRange (PRInt32 aClickedIndex)
void InvalidateRoot (const nsRect &aDamageRect, nscoord aOffsetX, nscoord aOffsetY, PRBool aImmediate)
PRBool IsContentSelected (nsIContent *aContent) const
PRBool IsContentSelectedByIndex (PRInt32 aIndex) const
PRBool IsLeftButton (nsIDOMEvent *aMouseEvent)
nsresult IsOptionDisabled (PRInt32 anIndex, PRBool &aIsDisabled)
PRBool IsOptionElement (nsIContent *aContent)
PRBool IsScrollbarUpdateSuppressed () const
PRBool MoveOverflowToChildList (nsPresContext *aPresContext)
 NS_HIDDEN_ (nsresult) EndLayout(nsBoxLayoutState &aState)
 NS_HIDDEN_ (nsresult) BeginLayout(nsBoxLayoutState &aState)
 nsListControlFrame (nsIPresShell *aShell, nsIDocument *aDocument, nsStyleContext *aContext)
virtual void PaintTextDecorationLine (nsIRenderingContext &aRenderingContext, const nsPoint &aPt, nsLineBox *aLine, nscolor aColor, gfxFloat aOffset, gfxFloat aAscent, gfxFloat aSize, const PRUint8 aDecoration)
virtual PRBool ParentDisablesSelection () const
nsresult PeekOffsetParagraph (nsPeekOffsetStruct *aPos)
PRBool PerformSelection (PRInt32 aClickedIndex, PRBool aIsShift, PRBool aIsControl)
void PushChildren (nsPresContext *aPresContext, nsIFrame *aFromChild, nsIFrame *aPrevSibling)
nsresult ReflowAsDropdown (nsPresContext *aPresContext, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState, nsReflowStatus &aStatus)
PRBool RemovePropTableFrame (nsPresContext *aPresContext, nsIFrame *aFrame, nsIAtom *aPropID) const
nsFrameListRemovePropTableFrames (nsPresContext *aPresContext, nsIAtom *aPropID) const
virtual void ResetList (PRBool aAllowScrolling)
nsresult ScrollToFrame (nsIContent *aOptElement)
nsresult ScrollToIndex (PRInt32 anIndex)
void SetComboboxItem (PRInt32 aIndex)
PRBool SetOptionsSelectedFromFrame (PRInt32 aStartIndex, PRInt32 aEndIndex, PRBool aValue, PRBool aClearAll)
nsresult SetOverflowFrames (nsPresContext *aPresContext, nsIFrame *aOverflowFrames)
nsresult SetPropTableFrames (nsPresContext *aPresContext, nsFrameList *aFrameList, nsIAtom *aPropID) const
virtual void SetWasCollapsed (nsBoxLayoutState &aState, PRBool aWas)
PRBool SingleSelection (PRInt32 aClickedIndex, PRBool aDoToggle)
PRBool ToggleOptionSelectedFromFrame (PRInt32 aIndex)
void UpdateInListState (nsIDOMEvent *aEvent)
PRBool UpdateSelection ()

Static Protected Member Functions

static void FillCursorInformationFromStyle (const nsStyleUserInterface *ui, nsIFrame::Cursor &aCursor)

Protected Attributes

PRPackedBool mButtonDown:1
PRPackedBool mChangesSinceDragStart:1
nsIComboboxControlFramemComboboxFrame
nsIContentmContent
PRPackedBool mControlSelectMode:1
PRInt32 mEndSelectionIndex
nsRefPtr< nsListEventListener > mEventListener
nsFrameList mFrames
PRPackedBool mHasBeenInitialized:1
PRPackedBool mIsAllContentHere:1
PRPackedBool mIsAllFramesHere:1
PRPackedBool mItemSelectionStarted:1
nscoord mLastDropdownComputedHeight
PRPackedBool mMightNeedSecondPass:1
PRPackedBool mNeedToReset:1
nsIFramemNextContinuation
nsIFramemNextSibling
PRInt32 mNumDisplayRows
nsIFramemParent
PRPackedBool mPostChildrenLoadedReset:1
nsIFramemPrevContinuation
nsRect mRect
PRInt32 mStartSelectionIndex
nsFrameState mState
nsStyleContext * mStyleContext

Static Protected Attributes

static PRBool gGotTheme = PR_FALSE
static nsIThemegTheme = nsnull
static nsListControlFramemFocused = nsnull

Private Member Functions

 NS_IMETHOD_ (nsrefcnt) Release()
 NS_IMETHOD_ (nsrefcnt) AddRef()

Static Private Member Functions

static nsAStringGetIncrementalString ()

Static Private Attributes

static DOMTimeStamp gLastKeyTime = 0

Friends

nsIFrameNS_NewEmptyFrame (nsIPresShell *aShell, nsStyleContext *aContext)
nsIFrameNS_NewHTMLScrollFrame (nsIPresShell *aPresShell, nsStyleContext *aContext, PRBool aIsRoot)
nsIFrameNS_NewListControlFrame (nsIPresShell *aPresShell, nsStyleContext *aContext)
class nsDisplayTextDecoration
class nsIFrame
class nsOverflowContinuationTracker

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

Generated by  Doxygen 1.6.0   Back to index