dom/xul/nsXULContentUtils.h
author Ryan Hunt <rhunt@eqrion.net>
Fri, 11 Jan 2019 12:21:09 -0600
changeset 453610 717a8fb8b842276af0a62b021ac3cf42833659ca
parent 452446 f0a91d36587266d7454a450c6044d573664fbed5
permissions -rw-r--r--
Bug 1519468 - Consistently check if a frame has content in ScrollAnchorContainer. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D16336

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

/*

  A package of routines shared by the XUL content code.

 */

#ifndef nsXULContentUtils_h__
#define nsXULContentUtils_h__

#include "nsISupports.h"

class nsAtom;
class nsICollation;
class nsIContent;

namespace mozilla {
namespace dom {
class Element;
}
}  // namespace mozilla

class nsXULContentUtils {
 protected:
  static nsICollation* gCollation;

  static bool gDisableXULCache;

  static int DisableXULCacheChangedCallback(const char* aPrefName,
                                            void* aClosure);

 public:
  static nsresult Finish();

  static nsresult FindChildByTag(nsIContent* aElement, int32_t aNameSpaceID,
                                 nsAtom* aTag, mozilla::dom::Element** aResult);

  static nsICollation* GetCollation();
};

#endif  // nsXULContentUtils_h__