/** * Initialize us. This is a good time to get the alignment of the box */ NS_IMETHODIMP nsLeafBoxFrame::Init(nsPresContext* aPresContext, nsIContent* aContent, nsIFrame* aParent, nsStyleContext* aContext, nsIFrame* aPrevInFlow) { nsresult rv = nsLeafFrame::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow); NS_ENSURE_SUCCESS(rv, rv); // see if we need a widget if (aParent && aParent->IsBoxFrame()) { PRBool needsWidget = PR_FALSE; aParent->ChildrenMustHaveWidgets(needsWidget); if (needsWidget) { rv = nsHTMLContainerFrame::CreateViewForFrame(this, nsnull, PR_TRUE); NS_ENSURE_SUCCESS(rv, rv); nsIView* view = GetView(); if (!view->HasWidget()) view->CreateWidget(kWidgetCID); } } mMouseThrough = unset; UpdateMouseThrough(); return rv; }
nsresult nsLeafBoxFrame::AttributeChanged(int32_t aNameSpaceID, nsIAtom* aAttribute, int32_t aModType) { nsresult rv = nsLeafFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType); if (aAttribute == nsGkAtoms::mousethrough) UpdateMouseThrough(); return rv; }
/** * Initialize us. This is a good time to get the alignment of the box */ void nsLeafBoxFrame::Init(nsIContent* aContent, nsContainerFrame* aParent, nsIFrame* aPrevInFlow) { nsLeafFrame::Init(aContent, aParent, aPrevInFlow); if (GetStateBits() & NS_FRAME_FONT_INFLATION_CONTAINER) { AddStateBits(NS_FRAME_FONT_INFLATION_FLOW_ROOT); } UpdateMouseThrough(); }
/** * Initialize us. This is a good time to get the alignment of the box */ NS_IMETHODIMP nsLeafBoxFrame::Init( nsIContent* aContent, nsIFrame* aParent, nsIFrame* aPrevInFlow) { nsresult rv = nsLeafFrame::Init(aContent, aParent, aPrevInFlow); NS_ENSURE_SUCCESS(rv, rv); UpdateMouseThrough(); return rv; }
NS_IMETHODIMP nsLeafBoxFrame::AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType) { nsresult rv = nsLeafFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType); if (aAttribute == nsGkAtoms::mousethrough) UpdateMouseThrough(); return rv; }
/** * Initialize us. This is a good time to get the alignment of the box */ NS_IMETHODIMP nsLeafBoxFrame::Init( nsIContent* aContent, nsIFrame* aParent, nsIFrame* aPrevInFlow) { nsresult rv = nsLeafFrame::Init(aContent, aParent, aPrevInFlow); NS_ENSURE_SUCCESS(rv, rv); if (GetStateBits() & NS_FRAME_FONT_INFLATION_CONTAINER) { AddStateBits(NS_FRAME_FONT_INFLATION_FLOW_ROOT); } UpdateMouseThrough(); return rv; }
nsTitleBarFrame::nsTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) :nsBoxFrame(aPresShell, aContext, false) { mTrackingMouseMove = false; UpdateMouseThrough(); }