mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 661746 - Part of part 2: Introduce a const AsElement(). r=bzbarsky
This commit is contained in:
parent
d91f9e40f3
commit
df2d9e3aea
@ -265,4 +265,10 @@ inline mozilla::dom::Element* nsINode::AsElement()
|
||||
return static_cast<mozilla::dom::Element*>(this);
|
||||
}
|
||||
|
||||
inline const mozilla::dom::Element* nsINode::AsElement() const
|
||||
{
|
||||
MOZ_ASSERT(IsElement());
|
||||
return static_cast<const mozilla::dom::Element*>(this);
|
||||
}
|
||||
|
||||
#endif // mozilla_dom_Element_h__
|
||||
|
@ -373,6 +373,7 @@ public:
|
||||
* for which IsElement() is true. This is defined inline in Element.h.
|
||||
*/
|
||||
mozilla::dom::Element* AsElement();
|
||||
const mozilla::dom::Element* AsElement() const;
|
||||
|
||||
/**
|
||||
* Return this node as nsIContent. Should only be used for nodes for which
|
||||
|
Loading…
Reference in New Issue
Block a user