2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef __inDOMUtils_h__
|
|
|
|
#define __inDOMUtils_h__
|
|
|
|
|
|
|
|
#include "inIDOMUtils.h"
|
|
|
|
|
2009-08-10 15:52:29 -07:00
|
|
|
class nsRuleNode;
|
2009-11-24 21:35:55 -08:00
|
|
|
class nsStyleContext;
|
2011-05-05 14:12:04 -07:00
|
|
|
class nsIAtom;
|
2013-11-11 00:00:41 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class Element;
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2009-08-10 15:52:29 -07:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class inDOMUtils final : public inIDOMUtils
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_INIDOMUTILS
|
|
|
|
|
|
|
|
inDOMUtils();
|
|
|
|
|
2009-08-10 15:52:29 -07:00
|
|
|
private:
|
2014-06-23 15:40:01 -07:00
|
|
|
virtual ~inDOMUtils();
|
|
|
|
|
2009-11-24 21:35:55 -08:00
|
|
|
// aStyleContext must be released by the caller once he's done with aRuleNode.
|
2013-11-11 00:00:41 -08:00
|
|
|
static nsresult GetRuleNodeForElement(mozilla::dom::Element* aElement,
|
2011-05-05 14:12:04 -07:00
|
|
|
nsIAtom* aPseudo,
|
2009-11-24 21:35:55 -08:00
|
|
|
nsStyleContext** aStyleContext,
|
2009-08-10 15:52:29 -07:00
|
|
|
nsRuleNode** aRuleNode);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2011-06-15 23:31:36 -07:00
|
|
|
// {0a499822-a287-4089-ad3f-9ffcd4f40263}
|
2007-03-22 10:30:00 -07:00
|
|
|
#define IN_DOMUTILS_CID \
|
2011-06-15 23:31:36 -07:00
|
|
|
{0x0a499822, 0xa287, 0x4089, {0xad, 0x3f, 0x9f, 0xfc, 0xd4, 0xf4, 0x02, 0x63}}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#endif // __inDOMUtils_h__
|