зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1670051 - Add a stack-capturing marker when calling ThemeChanged in the parent process. r=dholbert
This helps keep track down spurious ThemeChanged calls. Differential Revision: https://phabricator.services.mozilla.com/D92975
This commit is contained in:
Родитель
630b883088
Коммит
91e35e71fb
|
@ -1347,6 +1347,12 @@ nsITheme* nsPresContext::EnsureTheme() {
|
|||
}
|
||||
|
||||
void nsPresContext::ThemeChanged() {
|
||||
if (XRE_IsParentProcess()) {
|
||||
// NOTE(emilio): This ideally wouldn't need to be a _TEXT() marker, but
|
||||
// otherwise the stack is not captured, see bug 1670046.
|
||||
PROFILER_MARKER_TEXT("ThemeChanged", LAYOUT, MarkerStack::Capture(), ""_ns);
|
||||
}
|
||||
|
||||
if (!mPendingThemeChanged) {
|
||||
sLookAndFeelChanged = true;
|
||||
sThemeChanged = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче