nsresult nsMathMLmfencedFrame::ChildListChanged(PRInt32 aModType) { RemoveFencesAndSeparators(); CreateFencesAndSeparators(PresContext()); return nsMathMLContainerFrame::ChildListChanged(aModType); }
NS_IMETHODIMP nsMathMLmfencedFrame::AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType) { RemoveFencesAndSeparators(); CreateFencesAndSeparators(PresContext()); return nsMathMLContainerFrame:: AttributeChanged(aNameSpaceID, aAttribute, aModType); }
nsresult nsMathMLmfencedFrame::AttributeChanged(int32_t aNameSpaceID, nsIAtom* aAttribute, int32_t aModType) { RemoveFencesAndSeparators(); CreateFencesAndSeparators(PresContext()); return nsMathMLContainerFrame:: AttributeChanged(aNameSpaceID, aAttribute, aModType); }
NS_IMETHODIMP nsMathMLmfencedFrame::InheritAutomaticData(nsIFrame* aParent) { // let the base class get the default from our parent nsMathMLContainerFrame::InheritAutomaticData(aParent); mPresentationData.flags |= NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY; RemoveFencesAndSeparators(); CreateFencesAndSeparators(PresContext()); return NS_OK; }
NS_IMETHODIMP nsMathMLmfencedFrame::SetInitialChildList(nsIAtom* aListName, nsFrameList& aChildList) { // First, let the base class do its work nsresult rv = nsMathMLContainerFrame::SetInitialChildList(aListName, aChildList); if (NS_FAILED(rv)) return rv; // InheritAutomaticData will not get called if our parent is not a mathml // frame, so initialize NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY for // GetPreferredStretchSize() from Reflow(). mPresentationData.flags |= NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY; // No need to track the style contexts given to our MathML chars. // The Style System will use Get/SetAdditionalStyleContext() to keep them // up-to-date if dynamic changes arise. CreateFencesAndSeparators(PresContext()); return NS_OK; }