layout/inspector/inDOMUtils.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/inspector/inDOMUtils.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef __inDOMUtils_h__
     1.9 +#define __inDOMUtils_h__
    1.10 +
    1.11 +#include "inIDOMUtils.h"
    1.12 +
    1.13 +class nsRuleNode;
    1.14 +class nsStyleContext;
    1.15 +class nsIAtom;
    1.16 +
    1.17 +namespace mozilla {
    1.18 +namespace dom {
    1.19 +class Element;
    1.20 +} // namespace dom
    1.21 +} // namespace mozilla
    1.22 +
    1.23 +class inDOMUtils : public inIDOMUtils
    1.24 +{
    1.25 +public:
    1.26 +  NS_DECL_ISUPPORTS
    1.27 +  NS_DECL_INIDOMUTILS
    1.28 +
    1.29 +  inDOMUtils();
    1.30 +  virtual ~inDOMUtils();
    1.31 +
    1.32 +private:
    1.33 +  // aStyleContext must be released by the caller once he's done with aRuleNode.
    1.34 +  static nsresult GetRuleNodeForElement(mozilla::dom::Element* aElement,
    1.35 +                                        nsIAtom* aPseudo,
    1.36 +                                        nsStyleContext** aStyleContext,
    1.37 +                                        nsRuleNode** aRuleNode);
    1.38 +};
    1.39 +
    1.40 +// {0a499822-a287-4089-ad3f-9ffcd4f40263}
    1.41 +#define IN_DOMUTILS_CID \
    1.42 +  {0x0a499822, 0xa287, 0x4089, {0xad, 0x3f, 0x9f, 0xfc, 0xd4, 0xf4, 0x02, 0x63}}
    1.43 +
    1.44 +#endif // __inDOMUtils_h__

mercurial