nsFontFaceUtils.h 734 B

123456789101112131415161718192021222324
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. // vim:cindent:ts=2:et:sw=2:
  3. /* This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. /* helper utilities for working with downloadable fonts */
  7. #ifndef nsFontFaceUtils_h_
  8. #define nsFontFaceUtils_h_
  9. class gfxUserFontEntry;
  10. class nsIFrame;
  11. class nsFontFaceUtils
  12. {
  13. public:
  14. // mark dirty frames affected by a downloadable font
  15. static void MarkDirtyForFontChange(nsIFrame* aSubtreeRoot,
  16. const gfxUserFontEntry* aFont);
  17. };
  18. #endif /* !defined(nsFontFaceUtils_h_) */