mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6253dd3065
Set the MOZ_DEBUG_RESTYLE environment variable and every restyle will have detailed logging printed to stderr. By default, restyles for animations are not logged; you can include them by also setting MOZ_DEBUG_RESTYLE_ANIMATIONS. If you wish to limit restyle logging to a particular change, you can call nsPresContext::StartRestyleLogging() and nsPresContext::StopRestyleLogging() at appropriate points. (You might want to add a couple of helper methods temporarily on nsIDocument and then expose them to your page with Web IDL to make them easier to call.) You do not need to have set MOZ_DEBUG_RESTYLE for this to work.
24 lines
645 B
C
24 lines
645 B
C
/* -*- Mode: C++; tab-width: 2; 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/. */
|
|
|
|
#ifndef mozilla_RestyleTrackerInlines_h
|
|
#define mozilla_RestyleTrackerInlines_h
|
|
|
|
#ifdef RESTYLE_LOGGING
|
|
bool
|
|
mozilla::RestyleTracker::ShouldLogRestyle()
|
|
{
|
|
return mRestyleManager->ShouldLogRestyle();
|
|
}
|
|
|
|
int32_t&
|
|
mozilla::RestyleTracker::LoggingDepth()
|
|
{
|
|
return mRestyleManager->LoggingDepth();
|
|
}
|
|
#endif
|
|
|
|
#endif // !defined(mozilla_RestyleTrackerInlines_h)
|