diff --git a/mozilla/layout/base/public/nsIFrame.h b/mozilla/layout/base/public/nsIFrame.h index 5f817efe934..04b8e2b4fbe 100644 --- a/mozilla/layout/base/public/nsIFrame.h +++ b/mozilla/layout/base/public/nsIFrame.h @@ -478,6 +478,13 @@ public: */ NS_IMETHOD GetWindow(nsIWidget*&) const = 0; + /** + * Get the "type" of the frame. May return a NULL atom pointer + * + * @see nsLayoutAtoms + */ + NS_IMETHOD GetFrameType(nsIAtom*& aType) const = 0; + /** * Is this frame a "containing block"? */ diff --git a/mozilla/layout/generic/nsFrame.cpp b/mozilla/layout/generic/nsFrame.cpp index cd6325f4e7c..23a55c617ff 100644 --- a/mozilla/layout/generic/nsFrame.cpp +++ b/mozilla/layout/generic/nsFrame.cpp @@ -1501,6 +1501,13 @@ NS_IMETHODIMP nsFrame::GetWindow(nsIWidget*& aWindow) const return NS_OK; } +NS_IMETHODIMP +nsFrame::GetFrameType(nsIAtom*& aType) const +{ + aType = nsnull; + return NS_OK; +} + void nsFrame::Invalidate(const nsRect& aDamageRect, PRBool aImmediate) const diff --git a/mozilla/layout/generic/nsFrame.h b/mozilla/layout/generic/nsFrame.h index c3fc2d5bf95..e7a441416bf 100644 --- a/mozilla/layout/generic/nsFrame.h +++ b/mozilla/layout/generic/nsFrame.h @@ -191,6 +191,7 @@ public: NS_IMETHOD GetParentWithView(nsIFrame*& aParent) const; NS_IMETHOD GetOffsetFromView(nsPoint& aOffset, nsIView*& aView) const; NS_IMETHOD GetWindow(nsIWidget*&) const; + NS_IMETHOD GetFrameType(nsIAtom*& aType) const; NS_IMETHOD IsPercentageBase(PRBool& aBase) const; NS_IMETHOD GetAutoMarginSize(PRUint8 aSide, nscoord& aSize) const; NS_IMETHOD GetNextSibling(nsIFrame*& aNextSibling) const; diff --git a/mozilla/layout/generic/nsIFrame.h b/mozilla/layout/generic/nsIFrame.h index 5f817efe934..04b8e2b4fbe 100644 --- a/mozilla/layout/generic/nsIFrame.h +++ b/mozilla/layout/generic/nsIFrame.h @@ -478,6 +478,13 @@ public: */ NS_IMETHOD GetWindow(nsIWidget*&) const = 0; + /** + * Get the "type" of the frame. May return a NULL atom pointer + * + * @see nsLayoutAtoms + */ + NS_IMETHOD GetFrameType(nsIAtom*& aType) const = 0; + /** * Is this frame a "containing block"? */ diff --git a/mozilla/layout/html/base/src/nsFrame.cpp b/mozilla/layout/html/base/src/nsFrame.cpp index cd6325f4e7c..23a55c617ff 100644 --- a/mozilla/layout/html/base/src/nsFrame.cpp +++ b/mozilla/layout/html/base/src/nsFrame.cpp @@ -1501,6 +1501,13 @@ NS_IMETHODIMP nsFrame::GetWindow(nsIWidget*& aWindow) const return NS_OK; } +NS_IMETHODIMP +nsFrame::GetFrameType(nsIAtom*& aType) const +{ + aType = nsnull; + return NS_OK; +} + void nsFrame::Invalidate(const nsRect& aDamageRect, PRBool aImmediate) const diff --git a/mozilla/layout/html/base/src/nsFrame.h b/mozilla/layout/html/base/src/nsFrame.h index c3fc2d5bf95..e7a441416bf 100644 --- a/mozilla/layout/html/base/src/nsFrame.h +++ b/mozilla/layout/html/base/src/nsFrame.h @@ -191,6 +191,7 @@ public: NS_IMETHOD GetParentWithView(nsIFrame*& aParent) const; NS_IMETHOD GetOffsetFromView(nsPoint& aOffset, nsIView*& aView) const; NS_IMETHOD GetWindow(nsIWidget*&) const; + NS_IMETHOD GetFrameType(nsIAtom*& aType) const; NS_IMETHOD IsPercentageBase(PRBool& aBase) const; NS_IMETHOD GetAutoMarginSize(PRUint8 aSide, nscoord& aSize) const; NS_IMETHOD GetNextSibling(nsIFrame*& aNextSibling) const;