2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-05-17 02:22:14 +00:00
|
|
|
|
|
|
|
#ifndef __inDOMUtils_h__
|
|
|
|
#define __inDOMUtils_h__
|
|
|
|
|
|
|
|
#include "inIDOMUtils.h"
|
|
|
|
|
2009-08-10 22:52:29 +00:00
|
|
|
class nsRuleNode;
|
2009-11-25 05:35:55 +00:00
|
|
|
class nsStyleContext;
|
2011-05-05 21:12:04 +00:00
|
|
|
class nsIAtom;
|
2013-11-11 08:00:41 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class Element;
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2009-08-10 22:52:29 +00:00
|
|
|
|
2006-05-17 02:22:14 +00:00
|
|
|
class inDOMUtils : public inIDOMUtils
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_INIDOMUTILS
|
2006-05-17 02:22:15 +00:00
|
|
|
|
|
|
|
inDOMUtils();
|
|
|
|
virtual ~inDOMUtils();
|
|
|
|
|
2009-08-10 22:52:29 +00:00
|
|
|
private:
|
2009-11-25 05:35:55 +00:00
|
|
|
// aStyleContext must be released by the caller once he's done with aRuleNode.
|
2013-11-11 08:00:41 +00:00
|
|
|
static nsresult GetRuleNodeForElement(mozilla::dom::Element* aElement,
|
2011-05-05 21:12:04 +00:00
|
|
|
nsIAtom* aPseudo,
|
2009-11-25 05:35:55 +00:00
|
|
|
nsStyleContext** aStyleContext,
|
2009-08-10 22:52:29 +00:00
|
|
|
nsRuleNode** aRuleNode);
|
2006-05-17 02:22:14 +00:00
|
|
|
};
|
|
|
|
|
2011-06-16 06:31:36 +00:00
|
|
|
// {0a499822-a287-4089-ad3f-9ffcd4f40263}
|
2006-05-19 18:59:39 +00:00
|
|
|
#define IN_DOMUTILS_CID \
|
2011-06-16 06:31:36 +00:00
|
|
|
{0x0a499822, 0xa287, 0x4089, {0xad, 0x3f, 0x9f, 0xfc, 0xd4, 0xf4, 0x02, 0x63}}
|
2006-05-19 18:59:39 +00:00
|
|
|
|
2006-05-17 02:22:14 +00:00
|
|
|
#endif // __inDOMUtils_h__
|