Loading layout/base/public/nsIFrame.h +13 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,19 @@ public: NS_IMETHOD MoveTo(nscoord aX, nscoord aY) = 0; NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight) = 0; /** * Used to iterate the list of additional child list names. Returns the atom * name for the additional child list at the specified 0-based index, or a * NULL pointer if there are no more named child lists. * * Note that the list is only the additional named child lists and does not * include the unnamed principal child list. * * @return NS_ERROR_INVALID_ARG if the index is < 0 and NS_OK otherwise */ NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const = 0; /** * Get the first child frame from the specified child list. * Loading layout/generic/nsFrame.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,14 @@ NS_IMETHODIMP nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) // Child frame enumeration NS_IMETHODIMP nsFrame::GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const { NS_PRECONDITION(aIndex >= 0, "invalid index number"); aListName = nsnull; return aIndex < 0 ? NS_ERROR_INVALID_ARG : NS_OK; } NS_IMETHODIMP nsFrame::FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const { aFirstChild = nsnull; Loading layout/generic/nsFrame.h +1 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,7 @@ public: NS_IMETHOD SetRect(const nsRect& aRect); NS_IMETHOD MoveTo(nscoord aX, nscoord aY); NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight); NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const; NS_IMETHOD FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const; NS_IMETHOD Paint(nsIPresContext& aPresContext, nsIRenderingContext& aRenderingContext, Loading layout/generic/nsIFrame.h +13 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,19 @@ public: NS_IMETHOD MoveTo(nscoord aX, nscoord aY) = 0; NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight) = 0; /** * Used to iterate the list of additional child list names. Returns the atom * name for the additional child list at the specified 0-based index, or a * NULL pointer if there are no more named child lists. * * Note that the list is only the additional named child lists and does not * include the unnamed principal child list. * * @return NS_ERROR_INVALID_ARG if the index is < 0 and NS_OK otherwise */ NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const = 0; /** * Get the first child frame from the specified child list. * Loading layout/html/base/src/nsFrame.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,14 @@ NS_IMETHODIMP nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) // Child frame enumeration NS_IMETHODIMP nsFrame::GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const { NS_PRECONDITION(aIndex >= 0, "invalid index number"); aListName = nsnull; return aIndex < 0 ? NS_ERROR_INVALID_ARG : NS_OK; } NS_IMETHODIMP nsFrame::FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const { aFirstChild = nsnull; Loading Loading
layout/base/public/nsIFrame.h +13 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,19 @@ public: NS_IMETHOD MoveTo(nscoord aX, nscoord aY) = 0; NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight) = 0; /** * Used to iterate the list of additional child list names. Returns the atom * name for the additional child list at the specified 0-based index, or a * NULL pointer if there are no more named child lists. * * Note that the list is only the additional named child lists and does not * include the unnamed principal child list. * * @return NS_ERROR_INVALID_ARG if the index is < 0 and NS_OK otherwise */ NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const = 0; /** * Get the first child frame from the specified child list. * Loading
layout/generic/nsFrame.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,14 @@ NS_IMETHODIMP nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) // Child frame enumeration NS_IMETHODIMP nsFrame::GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const { NS_PRECONDITION(aIndex >= 0, "invalid index number"); aListName = nsnull; return aIndex < 0 ? NS_ERROR_INVALID_ARG : NS_OK; } NS_IMETHODIMP nsFrame::FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const { aFirstChild = nsnull; Loading
layout/generic/nsFrame.h +1 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,7 @@ public: NS_IMETHOD SetRect(const nsRect& aRect); NS_IMETHOD MoveTo(nscoord aX, nscoord aY); NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight); NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const; NS_IMETHOD FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const; NS_IMETHOD Paint(nsIPresContext& aPresContext, nsIRenderingContext& aRenderingContext, Loading
layout/generic/nsIFrame.h +13 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,19 @@ public: NS_IMETHOD MoveTo(nscoord aX, nscoord aY) = 0; NS_IMETHOD SizeTo(nscoord aWidth, nscoord aHeight) = 0; /** * Used to iterate the list of additional child list names. Returns the atom * name for the additional child list at the specified 0-based index, or a * NULL pointer if there are no more named child lists. * * Note that the list is only the additional named child lists and does not * include the unnamed principal child list. * * @return NS_ERROR_INVALID_ARG if the index is < 0 and NS_OK otherwise */ NS_IMETHOD GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const = 0; /** * Get the first child frame from the specified child list. * Loading
layout/html/base/src/nsFrame.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -524,6 +524,14 @@ NS_IMETHODIMP nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) // Child frame enumeration NS_IMETHODIMP nsFrame::GetAdditionalChildListName(PRInt32 aIndex, nsIAtom*& aListName) const { NS_PRECONDITION(aIndex >= 0, "invalid index number"); aListName = nsnull; return aIndex < 0 ? NS_ERROR_INVALID_ARG : NS_OK; } NS_IMETHODIMP nsFrame::FirstChild(nsIAtom* aListName, nsIFrame*& aFirstChild) const { aFirstChild = nsnull; Loading