michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __inDOMUtils_h__ michael@0: #define __inDOMUtils_h__ michael@0: michael@0: #include "inIDOMUtils.h" michael@0: michael@0: class nsRuleNode; michael@0: class nsStyleContext; michael@0: class nsIAtom; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: class Element; michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: class inDOMUtils : public inIDOMUtils michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_INIDOMUTILS michael@0: michael@0: inDOMUtils(); michael@0: virtual ~inDOMUtils(); michael@0: michael@0: private: michael@0: // aStyleContext must be released by the caller once he's done with aRuleNode. michael@0: static nsresult GetRuleNodeForElement(mozilla::dom::Element* aElement, michael@0: nsIAtom* aPseudo, michael@0: nsStyleContext** aStyleContext, michael@0: nsRuleNode** aRuleNode); michael@0: }; michael@0: michael@0: // {0a499822-a287-4089-ad3f-9ffcd4f40263} michael@0: #define IN_DOMUTILS_CID \ michael@0: {0x0a499822, 0xa287, 0x4089, {0xad, 0x3f, 0x9f, 0xfc, 0xd4, 0xf4, 0x02, 0x63}} michael@0: michael@0: #endif // __inDOMUtils_h__