Bug 1825212 [wpt PR 39266] - [@scope] Propagate proximity from SubResult, a=testonly
[gecko.git] / dom / xul / nsXULContentUtils.h
blobc996bcec2b146057db9d81faea8ddd854b9f5b7e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
8 A package of routines shared by the XUL content code.
12 #ifndef nsXULContentUtils_h__
13 #define nsXULContentUtils_h__
15 #include "nsISupports.h"
17 class nsAtom;
18 class nsIContent;
20 namespace mozilla::dom {
21 class Element;
23 namespace mozilla::intl {
24 class Collator;
27 class nsXULContentUtils {
28 protected:
29 const static mozilla::intl::Collator* gCollator;
31 static bool gDisableXULCache;
33 static int DisableXULCacheChangedCallback(const char* aPrefName,
34 void* aClosure);
36 public:
37 static nsresult Finish();
39 static nsresult FindChildByTag(nsIContent* aElement, int32_t aNameSpaceID,
40 nsAtom* aTag, mozilla::dom::Element** aResult);
42 static const mozilla::intl::Collator* GetCollator();
45 #endif // nsXULContentUtils_h__